Module: check_mk
Branch: master
Commit: 36f7918ce9df98a38b4683082d644926b07eb222
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=36f7918ce9df98…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Mar 27 13:27:00 2013 +0100
esx_vsphere_sensors: handle unknown sensor as warning
---
checks/esx_vsphere_sensors | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/checks/esx_vsphere_sensors b/checks/esx_vsphere_sensors
index 4947b9e..1f96016 100644
--- a/checks/esx_vsphere_sensors
+++ b/checks/esx_vsphere_sensors
@@ -43,6 +43,9 @@ def check_esx_vsphere_sensors(_no_item, _no_params, info):
if health_key == "yellow":
state = max(state, 1)
infos[-1] += "(!)"
+ elif health_key == "unknown":
+ state = max(state, 1)
+ infos[-1] += "(!)"
else:
state = 2
infos[-1] += "(!!)"