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

Directory Tree

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
8800
Files:
FileDescription
check_snmp_printer.shcheck_snmp_printer.sh
Nagios CSP

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!
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