Module: check_mk
Branch: master
Commit: 9ba4dbc9532f2a6f74e4cd59c272cba2d6b2ed51
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9ba4dbc9532f2a…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Dec 4 11:25:23 2014 +0100
checkpoint_packets: Also fixed scan function here
---
checks/checkpoint_packets | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/checks/checkpoint_packets b/checks/checkpoint_packets
index a6eeffc..4ba0bcc 100644
--- a/checks/checkpoint_packets
+++ b/checks/checkpoint_packets
@@ -77,7 +77,8 @@ check_info["checkpoint_packets"] = {
"group" : "checkpoint_packets",
"default_levels_variable" : "checkpoint_packets_default_levels",
# 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",
[ 4, # fwAccepted