Module: check_mk
Branch: master
Commit: 1ab91797485f71a09bf1341e343637691f4ca3f7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1ab91797485f71…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Wed Aug 26 15:24:51 2015 +0200
#1285 FIX blade_bx_powerfan: Fixed exception in case of fan failure
---
.werks/1285 | 10 ++++++++++
ChangeLog | 1 +
checks/blade_bx_powerfan | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/1285 b/.werks/1285
new file mode 100644
index 0000000..829f5b1
--- /dev/null
+++ b/.werks/1285
@@ -0,0 +1,10 @@
+Title: blade_bx_powerfan: Fixed exception in case of fan failure
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i3
+Date: 1440595471
+
+
diff --git a/ChangeLog b/ChangeLog
index c1fc112..1eff3c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -133,6 +133,7 @@
* 1280 FIX: check_mail_loop: It was not possible to use POP3 as protocol to fetch
mails
* 1282 FIX: win_printers: Not longer discover offline printers
* 1284 FIX: symantec_av_progstate: Now Supports the current version of Symantec AV
+ * 1285 FIX: blade_bx_powerfan: Fixed exception in case of fan failure
Multisite:
* 2385 SEC: Fixed possible reflected XSS on all GUI pages where users can produce
unhandled exceptions...
diff --git a/checks/blade_bx_powerfan b/checks/blade_bx_powerfan
index bb6be0d..40b1657 100644
--- a/checks/blade_bx_powerfan
+++ b/checks/blade_bx_powerfan
@@ -50,7 +50,7 @@ def check_blade_bx_powerfan(item, params, info):
if ctrlstate != "2":
return (2, "Fan not present or poweroff", perfdata)
elif status != "3":
- return (2, "Status not OK (Status %s)" % blade_bx_status(status) ,
perfdata)
+ return (2, "Status not OK (Status %s)" % blade_bx_status[status] ,
perfdata)
elif speedperc_int <= crit_perc:
return (2, "Speed at %d%% of max (crit at %d%%)" % (speedperc_int,
crit_perc), perfdata)
elif speedperc_int <= warn_perc: