Module: check_mk
Branch: master
Commit: a1a46b597596b509251830fbb0b7fe2f985f6db9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a1a46b597596b5…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Mar 11 12:04:42 2011 +0100
Improved cisco_qos inventory - using dynamic inidice now
---
checks/cisco_qos | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/checks/cisco_qos b/checks/cisco_qos
index 20a46ac..65c5055 100644
--- a/checks/cisco_qos
+++ b/checks/cisco_qos
@@ -222,4 +222,5 @@ 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, '2'
]), # ifNames
( '.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()
+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.*")