Module: check_mk
Branch: master
Commit: 609ef254b882b73740ab65199a96cedd6bba1700
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=609ef254b882b7…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Mar 10 11:53:34 2011 +0100
Updated snmp scan function of h3c_lanswitch_* checks
---
checks/h3c_lanswitch_cpu | 2 +-
checks/h3c_lanswitch_sensors | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/h3c_lanswitch_cpu b/checks/h3c_lanswitch_cpu
index 82df496..173a393 100644
--- a/checks/h3c_lanswitch_cpu
+++ b/checks/h3c_lanswitch_cpu
@@ -95,4 +95,4 @@ snmp_info["h3c_lanswitch_cpu"] = \
# just a rough match that will handle most devices.
snmp_scan_functions["h3c_lanswitch_cpu"] = \
- lambda oid: oid(".1.3.6.1.2.1.1.1.0").lower().startswith('3com s')
+ lambda oid: '3com s' in oid(".1.3.6.1.2.1.1.1.0").lower()
diff --git a/checks/h3c_lanswitch_sensors b/checks/h3c_lanswitch_sensors
index 64c18b8..23bb453 100644
--- a/checks/h3c_lanswitch_sensors
+++ b/checks/h3c_lanswitch_sensors
@@ -69,4 +69,4 @@ snmp_info["h3c_lanswitch_sensors"] = \
snmp_scan_functions["h3c_lanswitch_sensors"] = \
- lambda oid: "3com switch 5500" in oid
(".1.3.6.1.2.1.1.1.0").lower()
+ lambda oid: '3com s' in oid(".1.3.6.1.2.1.1.1.0").lower()