Module: check_mk
Branch: master
Commit: ca18f8e22a025ceeac21e05b0e5481bf4226c3f0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ca18f8e22a025c…
Author: Lutz Helwing <lh(a)mathias-kettner.de>
Date: Tue Jan 27 11:20:11 2015 +0100
Improved interpretation of kemp_loadmaster_realserver states
---
checks/kemp_loadmaster_realserver | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/checks/kemp_loadmaster_realserver b/checks/kemp_loadmaster_realserver
index 9e95923..4886da2 100644
--- a/checks/kemp_loadmaster_realserver
+++ b/checks/kemp_loadmaster_realserver
@@ -51,11 +51,11 @@ def check_kemp_loadmaster_realserver(item, _no_params, info):
state = int(line[2])
message = "State: %s, IP: %s" % (states[state], line[0])
- if state in [ 1, 20 ]:
+ if state in [ 1 ]:
return 0, message
- elif state in [ 2, 3, 4 ]:
+ elif state in [ 2, 4 ]:
return 1, message
- elif state in [ 5, 6, 7 ]:
+ elif state in [ 3 ]:
return 2, message
else:
return 3, message