Module: check_mk
Branch: master
Commit: d5e2d05d6b2cd9d081cd9b777867c2566620f80f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d5e2d05d6b2cd9…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri May 22 11:09:50 2015 +0200
checkpoint.include: hopefully really fixed scan function
---
checks/checkpoint.include | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/checkpoint.include b/checks/checkpoint.include
index 0d0940b..7155e99 100644
--- a/checks/checkpoint.include
+++ b/checks/checkpoint.include
@@ -29,7 +29,7 @@ def scan_checkpoint(oid):
sys_descr = oid(".1.3.6.1.2.1.1.1.0")
return (
# Entry in sysDescr, varies a bit
- (len(sys_descr) >= 3 and sys_descr.split("
")[2].endswith("cp")) or
+ (len(sys_descr.split(" ")) >= 3 and sys_descr.split("
")[2].endswith("cp")) or
sys_descr.startswith("IPSO ") or
(sys_descr.startswith("Linux") and "cpx" in
sys_descr)) \