Module: check_mk
Branch: master
Commit: 0572b9111336d18fa3f80321e6915b5ea3e870e2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0572b9111336d1…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Jul 7 15:36:57 2015 +0200
edited printer_pages.include: some ricoh-printer have only standard oid
---
checks/printer_pages.include | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/checks/printer_pages.include b/checks/printer_pages.include
index 04f4d10..27298cb 100644
--- a/checks/printer_pages.include
+++ b/checks/printer_pages.include
@@ -31,7 +31,8 @@
# Scan functions for some special printers that have their own MIBS
def scan_ricoh_printer(oid):
- return ".1.3.6.1.4.1.367.1.1" in oid(".1.3.6.1.2.1.1.2.0")
+ return ".1.3.6.1.4.1.367.1.1" in oid(".1.3.6.1.2.1.1.2.0") \
+ and oid(".1.3.6.1.4.1.367.3.2.1.2.19.5.1.5.1") != None
def scan_canon_printer(oid):
return "canon" in oid(".1.3.6.1.2.1.1.1.0").lower() \