Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check printer toner (HP)
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
The script for verifying the toner level for the HP printers which have issues with SNMP. I have the HP DeskJet 2630 and the web interface of it is passwordless (maybe I'll add auth support in the future, as for now - nope).
The script checks if the printer is in the network and if the ink level is sufficient (both black and color). It does so by parsing the XML page, generated by the printer.
Sample usage:
define service {
use generic-service
host_name %my_printer_host_name%
service_description Printer toner status
check_command check_printer_toner
}
define command {
command_name check_printer_toner
command_line $USER1$/check_printer -H $HOSTADDRESS$ --separator=" "
}
The script checks if the printer is in the network and if the ink level is sufficient (both black and color). It does so by parsing the XML page, generated by the printer.
Sample usage:
define service {
use generic-service
host_name %my_printer_host_name%
service_description Printer toner status
check_command check_printer_toner
}
define command {
command_name check_printer_toner
command_line $USER1$/check_printer -H $HOSTADDRESS$ --separator=" "
}
Reviews (0)
Be the first to review this listing!