Module: check_mk
Branch: master
Commit: afc31136a65fe07fb2edcb25f25b7042e14d6b52
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=afc31136a65fe0…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Aug 29 10:45:25 2013 +0200
Convention is to begin all OIDs with a leading dot -> fixed
---
checks/if64 | 2 +-
checks/if_lancom | 2 +-
checks/wut_webio_io | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/checks/if64 b/checks/if64
index a5e6310..d45d098 100644
--- a/checks/if64
+++ b/checks/if64
@@ -69,7 +69,7 @@ check_info["if64"] = {
"2.2.1.6", # ifPhysAddress 19
]),
'snmp_scan_function': \
- lambda oid: "LANCOM" not in oid("1.3.6.1.2.1.1.1.0") and \
+ lambda oid: "LANCOM" not in oid(".1.3.6.1.2.1.1.1.0") and \
".4.1.11863." not in oid(".1.3.6.1.2.1.1.2.0")
and \
(not if64_disabled(g_hostname)) and \
oid(".1.3.6.1.2.1.31.1.1.1.6.*") != None,
diff --git a/checks/if_lancom b/checks/if_lancom
index 7579084..d0cb680 100644
--- a/checks/if_lancom
+++ b/checks/if_lancom
@@ -94,7 +94,7 @@ check_info["if_lancom"] = {
],
# check if number of network interfaces (IF-MIB::ifNumber.0) is at least 2
'snmp_scan_function': \
- lambda oid: "LANCOM" in oid("1.3.6.1.2.1.1.1.0") and \
+ lambda oid: "LANCOM" in oid(".1.3.6.1.2.1.1.1.0") and \
(not if64_disabled(g_hostname)) and \
oid(".1.3.6.1.2.1.31.1.1.1.6.*") != None,
'group': 'if',
diff --git a/checks/wut_webio_io b/checks/wut_webio_io
index e93866b..05499ef 100644
--- a/checks/wut_webio_io
+++ b/checks/wut_webio_io
@@ -106,6 +106,6 @@ check_info['wut_webio_io.inputs'] = {
]),
# first check we have a vendor mib from W&T, then check for the model in their
MIB.
"snmp_scan_function" : lambda oid: \
- ".1.3.6.1.4.1.5040" in oid("1.3.6.1.2.1.1.2.0") and
+ ".1.3.6.1.4.1.5040" in oid(".1.3.6.1.2.1.1.2.0") and
oid(".1.3.6.1.4.1.5040.1.2.4.3.3.5.0").lower().startswith("web-io"),
}