Module: check_mk
Branch: master
Commit: 8ced5eedb2ca4732c361100ce3ff2ce9700f9d8a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8ced5eedb2ca47…
Author: Götz Golla <gg(a)mathias-kettner.de>
Date: Fri Apr 11 19:10:30 2014 +0200
more general scan function for TP-Link Switches
---
checks/rmon_stats | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/rmon_stats b/checks/rmon_stats
index f779be1..8c5169c 100644
--- a/checks/rmon_stats
+++ b/checks/rmon_stats
@@ -74,6 +74,6 @@ check_info["rmon_stats"] = {
# for the scan we need to check for any single object in the RMON tree,
# we choose netDefaultGateway in the hope that it will always be present
'snmp_scan_function' : lambda oid: (
oid(".1.3.6.1.2.1.1.1.0").lower().startswith("cisco") \
- or oid(".1.3.6.1.2.1.1.1.0").startswith("10G Managed
Switch") ) \
- and oid(".1.3.6.1.2.1.16.19.12.0") != None,
+ or oid(".1.3.6.1.2.1.1.2.0") ==
".1.3.6.1.4.1.11863.1.1.3" \
+ ) and oid(".1.3.6.1.2.1.16.19.12.0") != None,
}