Module: check_mk
Branch: master
Commit: daf5482b2f421316a845225c7010cbc3d2b7c6ae
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=daf5482b2f4213…
Author: Götz Golla <gg(a)mathias-kettner.de>
Date: Wed Oct 23 18:32:46 2013 +0200
bugfix for last change in brocade check
---
checks/brocade | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/brocade b/checks/brocade
index 98d2757..255a240 100644
--- a/checks/brocade
+++ b/checks/brocade
@@ -71,10 +71,10 @@ def check_brocade_fan(item, params, info):
label = ""
value = saveint(value)
perf = [ ('fan', value, warn, crit) ]
- if value <= crit or ( uppercrit and value >= uppercrit ):
+ if value <= crit:
state = 2
label = "(Levels below: %d/%d)" % (warn, crit)
- elif value <= warn or ( upperwarn and value >= upperwarn ):
+ elif value <= warn:
state = 1
label = "(Levels below: %d/%d)" % (warn, crit)
elif uppercrit and value >= uppercrit: