Module: check_mk
Branch: master
Commit: df6f433d3be66560d6449650b3ecb0cb717e73d7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=df6f433d3be665…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Mar 8 15:37:09 2012 +0100
printer_supply: Catched empty Output from printboxes
---
checks/printer_supply | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/checks/printer_supply b/checks/printer_supply
index 6d8acad..ab6befe 100644
--- a/checks/printer_supply
+++ b/checks/printer_supply
@@ -80,7 +80,7 @@ def inventory_printer_supply(info):
# Also fix trailing zero bytes (seen on HP Jetdirect 143)
return [ (line[0].rstrip('\0'), "printer_supply_default_levels")
for line in printer_supply_fix_infos(info)
- if not (line[1] == '-2' and line[2] == '-2') ] # ignore
useless devices
+ if not (line[1] == '-2' and line[2] == '-2') and
len(line[1]) > 0 ] # ignore useless devices
def check_printer_supply(item, params, info):
for line in printer_supply_fix_infos(info):