Module: check_mk
Branch: master
Commit: 4fcb66a1763fbf277f2053ad2ceac330904d7d19
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4fcb66a1763fbf…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Mar 4 15:43:00 2011 +0100
printer_*: converted scan functions to new style
---
checks/printer_pages | 2 +-
checks/printer_supply | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/printer_pages b/checks/printer_pages
index 65f7772..cc04b9d 100644
--- a/checks/printer_pages
+++ b/checks/printer_pages
@@ -47,4 +47,4 @@ check_info['printer_pages'] = (check_printer_pages, "Pages
%s", 1, inventory_pri
snmp_info['printer_pages'] = ( ".1.3.6.1.2.1.43.10.2.1.4.1", [ 0, 1 ]
)
snmp_scan_functions['printer_pages'] = \
- lambda oid: oid(".1.3.6.1.2.1.43.10.2.1.4.1.1")
+ lambda oid: oid(".1.3.6.1.2.1.43.10.2.1.4.1.1") != None
diff --git a/checks/printer_supply b/checks/printer_supply
index 573df79..4d61b53 100644
--- a/checks/printer_supply
+++ b/checks/printer_supply
@@ -110,4 +110,4 @@ snmp_info['printer_supply'] = ( ".1.3.6.1.2.1.43", [
'11.1.1.6',
check_config_variables.append("printer_supply_some_remaining_status")
snmp_scan_functions['printer_supply'] = \
- lambda oid: not not oid(".1.3.6.1.2.1.43.11.1.1.6.1.1")
+ lambda oid: oid(".1.3.6.1.2.1.43.11.1.1.6.1.1") != None