Module: check_mk
Branch: master
Commit: 72fe79313735511542ed409ce6178211b8e263ae
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=72fe7931373551…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Dec 12 15:35:35 2014 +0100
kemp_loadmaster_realserver: remove bodus saveint()
That handles an empty state field like state 0. None nice.
---
checks/kemp_loadmaster_realserver | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/kemp_loadmaster_realserver b/checks/kemp_loadmaster_realserver
index 42cba11..98e144a 100644
--- a/checks/kemp_loadmaster_realserver
+++ b/checks/kemp_loadmaster_realserver
@@ -40,7 +40,7 @@ def check_kemp_loadmaster_realserver(item, _no_params, info):
for line in info:
if line[0] == item:
- state = saveint(line[1])
+ state = int(line[1])
message = "State: %s" % (states[state])
if state == 1:
return 0, message