Module: check_mk
Branch: master
Commit: ae858ccc7fe80ccdbb1724c2ca384470f166c1f7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ae858ccc7fe80c…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Apr 29 17:06:44 2014 +0200
FIX brocade.power: fixed an error where the check reports an UNKNOWN on power supply
failure
Power supply failures now get reported as CRIT
---
.werks/910 | 9 +++++++++
ChangeLog | 1 +
checks/brocade | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/910 b/.werks/910
new file mode 100644
index 0000000..d01f6fa
--- /dev/null
+++ b/.werks/910
@@ -0,0 +1,9 @@
+Title: brocade.power: fixed an error where the check reports an UNKNOWN on power supply
failure
+Level: 1
+Component: checks
+Class: fix
+State: unknown
+Version: 1.2.5i3
+Date: 1398783896
+
+Power supply failures now get reported as CRIT
diff --git a/ChangeLog b/ChangeLog
index 23ef272..e0393e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -58,6 +58,7 @@
* 0155 FIX: mssql_counters: harded check agains odd agent output
* 0907 FIX: windows agent: register_service: fixed ImagePath registry entry...
* 0608 FIX: oracle_asm_diskgroup: check now also handles older oracle version 11.1.0
+ * 0910 FIX: brocade.power: fixed an error where the check reports an UNKNOWN on power
supply failure...
Multisite:
* 0779 Hostgroups (Summary): Empty hostgroups are no longer shown (can be re-enabled
by filter)
diff --git a/checks/brocade b/checks/brocade
index d71057d..eb4d659 100644
--- a/checks/brocade
+++ b/checks/brocade
@@ -37,7 +37,7 @@
def brocade_sensor_convert(info, what):
return_list = []
for state, name in info:
- if name.startswith(what) and saveint(state) > 0:
+ if name.startswith(what) and (saveint(state) > 0 or what ==
"Power"):
sensor_id = name.split('#')[-1]
return_list.append([sensor_id, name, state])
return return_list