Linux

check_cups_printer

Description:

Simple script for checking the status of a specific CUPS printer.

Current Version

Last Release Date

June 16, 2009

Compatible With


Project Files
Project Notes
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
Reviews (1) Add a Review
Doesn't work if LANG is not en_EN
by juliogonzalez, February 29, 2016

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.



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (1)
Favorites
0
Views
153,659