Module: check_mk
Branch: master
Commit: 73e2bf1ade5c3dc3cd698a4c7e78b8bc1de2a25f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=73e2bf1ade5c3d…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Sep 3 11:57:02 2015 +0200
in case of printer-ricoh-c7417 there is no 'RICOH' in sysDescr
---
checks/printer_supply | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/checks/printer_supply b/checks/printer_supply
index 2831917..6c4ed20 100644
--- a/checks/printer_supply
+++ b/checks/printer_supply
@@ -178,7 +178,8 @@ check_info["printer_supply"] = {
),
'snmp_scan_function': \
lambda oid: oid(".1.3.6.1.2.1.43.11.1.1.6.1.1") != None \
- and "RICOH" not in oid(".1.3.6.1.2.1.1.1.0"),
+ # exclude ricoh printer
+ and oid(".1.3.6.1.2.1.1.2.0") !=
".1.3.6.1.4.1.367.1.1",
'group': 'printer_supply',
'default_levels_variable' : "printer_supply_default_levels",
}