[Check_mk (english)] Printer supply checks permanently pending

Hello,

I'm having trouble getting my HP Laserjet P4015 printers supply status working correctly in nagios using Check_mk.

When I run the following command I get supply status as expected.

administrator@pong:/$ sudo check_mk -nv PRNT_OUT
Check_mk version 1.1.10p3
Interface HP ETHERNET MULTI-ENVIRONMENTROM noneJETDIRECTJD143EEPROM V.36.42 OK - [1] (up) 0.00MBit/s, in: 0.00B/s, out: 0.00B/s
Pages 1 OK - 1349 Pages printed
Supply Black Cartridge HP CC364A OK - 83% (levels at 20% / 10%)
Supply Maintenance Kit HP 110V-CB388A 220V-CB389A OK - 99% (levels at 20% / 10%)
OK - Agent version (unknown), execution time 0.3 sec|execution_time=0.305

However in the Multisite GUI the status is permanently pending.

Here is what the autocheck mk file shows.

administrator@pong:/$ cat /var/lib/check_mk/autochecks/PRNT_OUT.mk
[
  ("PRNT_OUT", "if", 'HP ETHERNET MULTI-ENVIRONMENTROM noneJETDIRECTJD143EEPROM V.36.42', { "errors" : if_default_error_levels, "traffic" : if_default_traffic_levels, "average" : if_default_average }),
  ("PRNT_OUT", "printer_pages", '1', None),
  ("PRNT_OUT", "printer_supply", 'Black Cartridge HP CC364A\x00', printer_supply_default_levels),
  ("PRNT_OUT", "printer_supply", 'Maintenance Kit HP 110V-CB388A, 220V-CB389A\x00', printer_supply_default_levels),
]

I do notice the "\x00" seems to be at the end of each supply description and I'm not sure why it's there. I do have some different model HP printers that update their supply status just fine. Their autocheck files don't have the "\x00" in the descriptions.

Can anyone give me a direction to follow?

Kind regards,

Mark Vaughn
Network Technician

Hi Mark,

can you post an cmk --snmpwalk HOSTNAME of that printer?

Mathias

ยทยทยท

Am 05.08.2011 19:47, schrieb Mark Vaughn:

Hello,

I'm having trouble getting my HP Laserjet P4015 printers supply status working correctly in nagios using Check_mk.

When I run the following command I get supply status as expected.

administrator@pong:/$ sudo check_mk -nv PRNT_OUT
Check_mk version 1.1.10p3
Interface HP ETHERNET MULTI-ENVIRONMENTROM noneJETDIRECTJD143EEPROM V.36.42 OK - [1] (up) 0.00MBit/s, in: 0.00B/s, out: 0.00B/s
Pages 1 OK - 1349 Pages printed
Supply Black Cartridge HP CC364A OK - 83% (levels at 20% / 10%)
Supply Maintenance Kit HP 110V-CB388A 220V-CB389A OK - 99% (levels at 20% / 10%)
OK - Agent version (unknown), execution time 0.3 sec|execution_time=0.305

However in the Multisite GUI the status is permanently pending.

Here is what the autocheck mk file shows.

administrator@pong:/$ cat /var/lib/check_mk/autochecks/PRNT_OUT.mk
[
   ("PRNT_OUT", "if", 'HP ETHERNET MULTI-ENVIRONMENTROM noneJETDIRECTJD143EEPROM V.36.42', { "errors" : if_default_error_levels, "traffic" : if_default_traffic_levels, "average" : if_default_average }),
   ("PRNT_OUT", "printer_pages", '1', None),
   ("PRNT_OUT", "printer_supply", 'Black Cartridge HP CC364A\x00', printer_supply_default_levels),
   ("PRNT_OUT", "printer_supply", 'Maintenance Kit HP 110V-CB388A, 220V-CB389A\x00', printer_supply_default_levels),
]

I do notice the "\x00" seems to be at the end of each supply description and I'm not sure why it's there. I do have some different model HP printers that update their supply status just fine. Their autocheck files don't have the "\x00" in the descriptions.

Can anyone give me a direction to follow?

Kind regards,

Mark Vaughn
Network Technician

_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en