If you use Nagios to monitor your Jet Direct printers, you may notice that the check_hpjd plugin is a bit useless when it comes to telling you exactly what toner cartridge is low. This forces you to either hunt down the printer's IP address and visit the printer's built-in web interface or you have to hoof it to the printer and see what cartridge is needed.
Not anymore.
About 90% of the time a printer is throwing a warning hissy fit in Nagios, it's because the toner is low or out. I wrote this plugin so that it tells me exactly what toner cartridge needs replaced (color and part number).
To invoke, edit commands.cfg to include the following:
The optional parameters (defaults) can be overridden in Version 4.
Use this in your device configs as you would use check_hpjd.
This will not work with the old school cable-connected Jet Direct boxes. This will only work on newer printers with the Jet Direct module built in.
Version 3
Version 2
Version 3
Version 2
Version 1
Not anymore.
About 90% of the time a printer is throwing a warning hissy fit in Nagios, it's because the toner is low or out. I wrote this plugin so that it tells me exactly what toner cartridge needs replaced (color and part number).
To invoke, edit commands.cfg to include the following:
define command{
command_name check_hpjd_new
command_line php /path/to/check_hpjd_new.php $HOSTADDRESS$ [community string = public] [warn = 10] [critical = 5]
}
The optional parameters (defaults) can be overridden in Version 4.
Use this in your device configs as you would use check_hpjd.
Limitations
This will not work with the old school cable-connected Jet Direct boxes. This will only work on newer printers with the Jet Direct module built in.
UPDATES
Version 4- Reduced the use of snmp_get from around 1 billion to 0
- Addition of defaults for community string, warn and critical thresholds
- Code cleanup
- cartridges() was re-written
- Better use of arrays
Version 3
- Support for pretty much all recent LaserJet products (Possibly more vendors) that are RFC 1514 compliant
- When a cartridge is low, the percent is shown in the Status Information box
- Support added for custom critical and warning levels as percentage. To do this, edit commands.cfg to include something like this to have 10% warn and 5% critical:
define command{
command_name check_hpjd_new
command_line php /path/to/check_hpjd_new.php $HOSTADDRESS$ public 10 5
}
Version 2
- Kills the plugin at the start if the host can't be found.
- Code cleanup and consolidation
- Added accounting for Processing, Checking, Printing, Jam, Intervention and Fuser keywords in status messages.
- Interface cleanup (No more '- -' at the end of statuses with exit code 0)
- Code is commented.
- Added support for older models that advertise cartridge information in hex
Download
Version 4 (current)Version 3
Version 2
Version 1



