Module: check_mk
Branch: master
Commit: 87b339d0aeaf1c69ab7cddce4f7da3694039cca5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=87b339d0aeaf1c…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Feb 16 11:58:43 2015 +0100
checkpoint_connections,checkpoint_packets: Added Support for a few more devices Types
---
checks/checkpoint_connections | 3 ++-
checks/checkpoint_packets | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/checks/checkpoint_connections b/checks/checkpoint_connections
index 1292385..3aa8ae1 100644
--- a/checks/checkpoint_connections
+++ b/checks/checkpoint_connections
@@ -55,7 +55,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") or
\
+ "IPSO" in
oid(".1.3.6.1.2.1.1.1.0")) \
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 ]),
diff --git a/checks/checkpoint_packets b/checks/checkpoint_packets
index 451d75d..1578ed6 100644
--- a/checks/checkpoint_packets
+++ b/checks/checkpoint_packets
@@ -72,7 +72,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") or\
+ "IPSO" in
oid(".1.3.6.1.2.1.1.1.0")) \
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",