Module: check_mk
Branch: master
Commit: e5fc60fc70816f00563d6b710b47300f6409c397
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e5fc60fc70816f…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Oct 15 12:33:38 2013 +0200
esx_vsphere_hostsystem: fixed bug in params handling
---
ChangeLog | 1 +
checks/esx_vsphere_hostsystem | 1 +
2 files changed, 2 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 4b76ec7..7825bb1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,6 +27,7 @@
make WATO-configable
* check_sql: Database port can now be explicitly set
* FIX: esx_vsphere_counters: added missing ramdisk type upgradescratch
+ * FIX: esx_vsphere_hostsystem: fixed bug in handling of params
WATO:
* You can now have site-specific global settings when using
diff --git a/checks/esx_vsphere_hostsystem b/checks/esx_vsphere_hostsystem
index eaf55dd..aec2a42 100644
--- a/checks/esx_vsphere_hostsystem
+++ b/checks/esx_vsphere_hostsystem
@@ -257,6 +257,7 @@ def check_esx_vsphere_hostsystem_multipath(item, params, info):
standby_label = "(!)"
state = max(state_infos["standby"][1], state)
else:
+ state = 0
for state_name, state_values in state_infos.items():
if params.get(state_name):
warn, crit = params.get(state_name)