Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
Your review has been submitted and is pending approval.
Simple script for checking the status of a specific CUPS printer.
Current Version
Last Release Date
June 16, 2009
Owner
Nagios Exchange
Compatible With
Although there are a few scripts that will give an overall view of the CUPS system and queue lengths I needed to specifically target high priority printers to ensure they were always up and accepting jobs. This simple script will take CUPS server hostname and CUPS printer as arguments and display it's current status. It will determine if the CUPS printer is in one of the following states: idle, printing, rejecting, disabled, or unable to connect. This script will either return an OK for idle and printing or a CRITICAL for anything else. Syntax is as follows: ./check_cups_printer.sh -h [CUPS SERVER] -p [PRINTER QUEUE NAME] Requirements: lpstat, bash
Because lpstat returns the messages in your local language, check_cups_printer won't be able to parse data if your language is not en_EN. Make sure you change it for the system account running the check, or at the script itself.
You must be logged in to submit a review.
To:
From: