Module: check_mk
Branch: master
Commit: b0ecb2f218d434ab07bcaf527b6e65fe6e4095c3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b0ecb2f218d434…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Mar 6 14:21:11 2014 +0100
FIX esx_vsphere_hostsystem: fixed incorrect status label (not state)
The status label in the check output was incorrect when
the overallStatus of the hostsystem was grey or red.
---
.werks/729 | 9 +++++++++
ChangeLog | 1 +
checks/esx_vsphere_hostsystem | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/729 b/.werks/729
new file mode 100644
index 0000000..68bbdd3
--- /dev/null
+++ b/.werks/729
@@ -0,0 +1,9 @@
+Title: esx_vsphere_hostsystem: fixed incorrect status label (not state)
+Level: 1
+Component: checks
+Version: 1.2.5i1
+Date: 1394111987
+Class: fix
+
+The status label in the check output was incorrect when
+the overallStatus of the hostsystem was grey or red.
diff --git a/ChangeLog b/ChangeLog
index 03916a3..dfb73c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -197,6 +197,7 @@
* 0137 FIX: Fixed printer_pages...
* 0587 FIX: if64: problems resolved when running as a clustered service...
* 0563 FIX: windows agent: now able to process perl scripts...
+ * 0729 FIX: esx_vsphere_hostsystem: fixed incorrect status label (not state)...
Multisite:
* 0371 Added log class filter to hostsvcevents view
diff --git a/checks/esx_vsphere_hostsystem b/checks/esx_vsphere_hostsystem
index aec2a42..343d213 100644
--- a/checks/esx_vsphere_hostsystem
+++ b/checks/esx_vsphere_hostsystem
@@ -174,7 +174,7 @@ def check_esx_vsphere_hostsystem_state(item, params, info):
label['Status'] = "(!)"
elif overallStatus in [ "red", "gray"]:
state = 2
- label['Satus'] = "(!!)"
+ label['Status'] = "(!!)"
messages.append("Entity state: %s%s" % (overallStatus,
label['Status']))
label['powerState'] = ''