Module: check_mk
Branch: master
Commit: 56f9125cafb8aef5dfa1e7ad7958a2600ed7f2aa
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=56f9125cafb8ae…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 26 16:46:20 2016 +0100
cisco_mem: avoid fetching non-standard OID during SNMP scan
---
checks/cisco_mem | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/checks/cisco_mem b/checks/cisco_mem
index 5f07a68..ee0d859 100644
--- a/checks/cisco_mem
+++ b/checks/cisco_mem
@@ -36,7 +36,8 @@ check_info["cisco_mem"] = {
"service_description" : "Mem used %s",
"has_perfdata" : True,
"group" : "cisco_mem",
- "snmp_scan_function" : lambda oid:
oid(".1.3.6.1.4.1.9.9.48.1.1.1.6.1") \
+ "snmp_scan_function" : lambda oid: "cisco" in
oid(".1.3.6.1.2.1.1.1.0").lower() and \
+ oid(".1.3.6.1.4.1.9.9.48.1.1.1.6.1") \
and not
oid(".1.3.6.1.2.1.1.1.0").lower().startswith("cisco adaptive
security"),
"snmp_info" : ( ".1.3.6.1.4.1.9.9.48.1.1.1", [
"2", "5", "6", "7" ]),
"includes" : ['cisco_mem.include'],