Module: check_mk
Branch: master
Commit: ec2fb87a6a06f5a9fd14f3ec9abc61a99b63312c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ec2fb87a6a06f5…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Mon Mar 23 17:28:59 2015 +0100
ibm_imm_fan: FIX for other formats of the FAN rpms
---
checks/ibm_imm_fan | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/ibm_imm_fan b/checks/ibm_imm_fan
index 898567b..fe9d2a2 100644
--- a/checks/ibm_imm_fan
+++ b/checks/ibm_imm_fan
@@ -39,7 +39,7 @@ def check_ibm_imm_fan(item, _no_params, info):
return 2, "is offline"
# speed can be "34 %", or "34%", or "34 % of
maximum"
- rpm_perc = int(speed.replace("%", " ").split("
")[0])
+ rpm_perc = int(speed.replace("[\"%]", "
").split(" ")[0])
infotext = "%d%% of max rpm" % rpm_perc
warn, crit = (28, 25) # preliminary estimates of levels