Module: check_mk
Branch: master
Commit: 369b1e25be642e8ea36b32e2cf86d99a7d2b39e2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=369b1e25be642e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Jul 29 16:13:51 2013 +0200
FIX: zypper: deal with output from SLES 10
---
ChangeLog | 1 +
checks/zypper | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index cf9864c..c24b72e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -271,6 +271,7 @@
* FIX: winperf_processor: fix case where CPU percent is exactly 100%
* FIX: blade_powerfan: fix mixup of default levels 50/40 -> 40/50
* FIX: Cleaned up graph rendering of Check_MK services
+ * FIX: zypper: deal with output from SLES 10
Multisite:
* FIX: LDAP: Disabling use of referrals in active directory configuration
diff --git a/checks/zypper b/checks/zypper
index a4a1186..8722dc9 100644
--- a/checks/zypper
+++ b/checks/zypper
@@ -46,7 +46,7 @@ def check_zypper(_no_item, _no_params, info):
locks = []
for line in info:
# 5 patches needed (2 security patches)
- if len(line) >= 5 and line[4].strip() == 'needed':
+ if len(line) >= 5 and line[4].lower().strip() == 'needed':
patch_type = line[3].strip()
patch_types.setdefault(patch_type, 0)
patch_types[patch_type] += 1