Module: check_mk
Branch: master
Commit: 45cd77069609e2753d532b4696ccd8ddac59f458
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=45cd77069609e2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Mar 11 12:47:33 2011 +0100
Fixed scanfunction of cisco_*
---
checks/cisco_locif | 2 +-
checks/cisco_qos | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/cisco_locif b/checks/cisco_locif
index a8be78a..2a47554 100644
--- a/checks/cisco_locif
+++ b/checks/cisco_locif
@@ -40,4 +40,4 @@ snmp_info['cisco_locif'] = ( ".1.3.6.1.4.1.9",
"2.2.1.1.28", #
OLD-CISCO-INTERFACES-MIB::locIfDescr
OID_END ] )
-snmp_scan_functions['cisco_locif'] = False
+snmp_scan_functions['cisco_locif'] = lambda oid: False
diff --git a/checks/cisco_qos b/checks/cisco_qos
index 65c5055..eb17dd6 100644
--- a/checks/cisco_qos
+++ b/checks/cisco_qos
@@ -223,4 +223,4 @@ snmp_info['cisco_qos'] = [ (
'.1.3.6.1.4.1.9.9.166.1', [ OID_END, '1.1.1.4'
( '.1.3.6.1.2.1.2.2.1', [ OID_END, '5'
]), # ifSpeeds
]
snmp_scan_functions['cisco_qos'] = lambda oid: "cisco" in
oid(".1.3.6.1.2.1.1.1.0").lower() and \
- not oid(".1.3.6.1.4.1.9.9.166.1.1.1.1.4.*")
+ oid(".1.3.6.1.4.1.9.9.166.1.1.1.1.4.*")