Module: check_mk
Branch: master
Commit: fcc3e12f092f68bc67efd1bd29ceaa08a5a30680
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fcc3e12f092f68…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed May 13 09:53:55 2015 +0200
moxa_iologik_register: make scan function more specific
This avoid fetching a vendor specify OID on all other devices
---
checks/moxa_iologik_register | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/checks/moxa_iologik_register b/checks/moxa_iologik_register
index f6bec9a..161fc1d 100644
--- a/checks/moxa_iologik_register
+++ b/checks/moxa_iologik_register
@@ -51,7 +51,8 @@ check_info['moxa_iologik_register'] = {
"service_description" : "Moxa Register",
"has_perfdata" : False,
"group" : "iologik_register",
- "snmp_scan_function" : lambda oid:
oid(".1.3.6.1.4.1.8691.10.2242.2.0").startswith("E2242-T"),
+ "snmp_scan_function" : lambda oid:
oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.8691.") and \
+
oid(".1.3.6.1.4.1.8691.10.2242.2.0").startswith("E2242-T"),
"snmp_info" : (".1.3.6.1.4.1.8691.10.2242.10.4.1.1",
[ "1", # index
"2", # Name