Module: check_mk
Branch: master
Commit: 2a60262cbf3f118091998709c5c07b8ec3dd6f41
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2a60262cbf3f11…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Dec 4 11:17:50 2014 +0100
checkpoint_connections: Fixed scan function, check now only apears on firewalls
---
checks/checkpoint_connections | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/checks/checkpoint_connections b/checks/checkpoint_connections
index 637b32e..dba029e 100644
--- a/checks/checkpoint_connections
+++ b/checks/checkpoint_connections
@@ -50,7 +50,8 @@ check_info["checkpoint_connections"] = {
"has_perfdata" : True,
"group" : "checkpoint_connections",
# detect a checkpoint kernel
- "snmp_scan_function" : lambda oid:
oid(".1.3.6.1.2.1.1.1.0").split(" ")[2].endswith("cp"),
+ "snmp_scan_function" : lambda oid:
oid(".1.3.6.1.2.1.1.1.0").split(" ")[2].endswith("cp") \
+ and
oid(".1.3.6.1.4.1.2620.1.1.21.0").lower().startswith('firewall'),
# checkpoint.products.fw.fwPolicyStat.fwNumConn
"snmp_info" : ( ".1.3.6.1.4.1.2620.1.1.25", [ 3 ]),
}