Home Directory Plugins Printing Check Printer Toner Cartridge Level via SNMP with local cache

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Check Printer Toner Cartridge Level via SNMP with local cache

Rating
0 votes
Favoured:
0
Current Version
201610271327
Last Release Date
2016-10-27
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
License
GPL
Hits
2358
Files:
FileDescription
check_snmp_printer.shcheck_snmp_printer.sh
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Nagios Plugin to check the remaining pages (toner) of a printer SNMPv1 also working if the printer is switched off or just just from time to time.
Nagios Plugin to check the remaining pages (toner) of printer SNMPv1

The Plugin supports printers that are offline. To prevent errors the plugin creates a log file to be able to display the last known status about the remaining pages even the printer is switched off. The log file is stored at "/var/log/printerpages_[Host-IP].log"

If the printer is offline, the cached entry from the log file will be pulled. If the printer is online, the live data is used and the log file updated.

The Plugin is using the community strings of common printer models. Tested with a Samsung ML-1865W using SyNagios on a Synology DS116.

Sample output:
1020/1500 pages left in Black Toner S/N :CRUM-15090766415


Usage: ./check_snmp_printer.sh $HOSTADDRESS$ $ARG1$ $ARG2$

$ARG1$ = Warning-Level
$ARG2$ = Critical-Level