Module: check_mk
Branch: master
Commit: 718b409871dfa13a8d283139157b362010c3e7de
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=718b409871dfa1…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Sep 13 13:57:10 2012 +0200
Fixed syntax of zypper check output
---
checks/zypper | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/checks/zypper b/checks/zypper
index f5cb3c4..ae27d81 100644
--- a/checks/zypper
+++ b/checks/zypper
@@ -56,7 +56,7 @@ def check_zypper(_no_item, _no_params, info):
state = 0
- infotext = nagios_state_names[state] + " - %d updates" % updates
+ infotext = " - %d updates" % updates
if updates:
patch_items = patch_types.items()
patch_items.sort()
@@ -77,12 +77,9 @@ def check_zypper(_no_item, _no_params, info):
state = max(1, state)
infotext += ", %d locks(!)" % len(locks)
- return state, infotext
+ return state, nagios_state_names[state] + infotext
-
- return 3, "Hirni"
-
check_info['zypper'] = {
"check_function" : check_zypper,
"inventory_function" : inventory_zypper,