Module: check_mk
Branch: master
Commit: 32b6fa72b0660a43d05d679f4a9adaba7dc181a8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=32b6fa72b0660a…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Oct 28 20:33:49 2010 +0200
cisco_fan: fixed check bug in critical state
---
ChangeLog | 1 +
checks/cisco_fan | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 703bab6..64eb7ac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,7 @@
* win_dhcp_pools: better handle invalid agent output
* hp_proliant_psu: Fixed multiple PSU detection on one system (Thanks to Andreas
Döhler)
* megaraid_pdisks: Fixed coding error
+ * cisco_fan: fixed check bug in case of critical state
Livestatus:
* Prohibit { and } in regular expressions. This avoids a segmentation
diff --git a/checks/cisco_fan b/checks/cisco_fan
index 48adbec..b2f522b 100644
--- a/checks/cisco_fan
+++ b/checks/cisco_fan
@@ -34,7 +34,7 @@ def check_cisco_fan(item, params, info):
if line[1] == "1":
return (0, "OK")
else:
- return (2, "CRITICAL (state is %ds" % line[1])
+ return (2, "CRITICAL (state is %s)" % line[1])
return (3, "UNKNOWN - item not found in snmp data")
check_info['cisco_fan'] = (check_cisco_fan, "FAN %s", 0,
inventory_cisco_fan)