Module: check_mk
Branch: master
Commit: 515e65a533a7d683206660195a83a4794e516b7e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=515e65a533a7d6…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Mar 7 17:23:10 2013 +0100
FIX: printer_supply - fixed inventory function for some OKI printers
---
ChangeLog | 1 +
checks/printer_supply | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d2d2013..1f2e2ca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -92,6 +92,7 @@
* ps: Allow %1, %2, .. instead of %s in process_inventory. That allows
reordering of matched groups
* FIX: f5_bigip_psu - fixed inventory function
+ * FIX: printer_supply - fixed inventory function for some kind of OKI printers
Multisite:
* FIX: Fixed problem with error during localization scanning
diff --git a/checks/printer_supply b/checks/printer_supply
index e5dec46..69a83c5 100644
--- a/checks/printer_supply
+++ b/checks/printer_supply
@@ -58,7 +58,7 @@ printer_supply_some_remaining_status = 1
def printer_supply_fix_infos(info):
colors = []
new_info = []
- for line in info:
+ for index, line in enumerate(info):
line_0 = snmp_decode_string(line[0]) # give chance for latin1->utf8 decoding
if line_0.startswith('Toner Cartridge') \
or line_0.startswith('Image Drum Unit'):