Module: check_mk
Branch: master
Commit: 7fd83c096e1bd4ab9093eb34f9149d5dfef16945
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7fd83c096e1bd4…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri May 29 15:08:57 2015 +0200
Reduced number of SNMP OIDs needed for running all scan functions a bit
---
checks/quantum_libsmall_door | 3 ++-
checks/quantum_libsmall_status | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/checks/quantum_libsmall_door b/checks/quantum_libsmall_door
index 0fde464..fbc9882 100644
--- a/checks/quantum_libsmall_door
+++ b/checks/quantum_libsmall_door
@@ -45,5 +45,6 @@ check_info['quantum_libsmall_door'] = {
"inventory_function" : inventory_quantum_libsmall_door,
"service_description" : "Tape library door",
"snmp_info" : (".1.3.6.1.4.1.3697.1.10.10.1.15.2",
[ "0" ]),
- "snmp_scan_function" : lambda oid: "library" in
oid(".1.3.6.1.2.1.1.6.0").lower(),
+ "snmp_scan_function" : lambda oid: "linux" in
oid(".1.3.6.1.2.1.1.1.0").lower() \
+ and "library" in
oid(".1.3.6.1.2.1.1.6.0").lower(),
}
diff --git a/checks/quantum_libsmall_status b/checks/quantum_libsmall_status
index 0e2ce63..3d6f305 100644
--- a/checks/quantum_libsmall_status
+++ b/checks/quantum_libsmall_status
@@ -73,6 +73,7 @@ check_info['quantum_libsmall_status'] = {
OID_END,
"10",
]),
- "snmp_scan_function" : lambda oid: "library" in
oid(".1.3.6.1.2.1.1.6.0").lower(),
+ "snmp_scan_function" : lambda oid: "linux" in
oid(".1.3.6.1.2.1.1.1.0").lower() \
+ and "library" in
oid(".1.3.6.1.2.1.1.6.0").lower(),
}