Check for UNIX printers?
Emmett Hogan
EmmettH at Examen.com
Mon Jan 3 23:33:18 CET 2005
Stephan Janosch wrote:
> I did a very bad piece of code. The code checks for 'waiting' in `lpc
> status all`.
>
> Perhaps this is something for you.
Stephan,
Thanks for the response. It just so happens that I took a little time
this weekend and whipped up one myself (which I have attached).
If anyone feels the inclination to comment on ways to improve it, or
things to check for that I am not...I would *REALLY* appreciate it.
This was my first foray into writing Nagios checks, so I probably didn't
do it "quite right" :-)
I also apologize to the list if it is "bad form" to send an attachment
to the whole list.
-Emmett
--
================ Examen, Inc. ================
Emmett Hogan
Senior UNIX Administrator
emmetth at examen.com
==== Outside Counsel Management Solutions ====
CONFIDENTIAL - PRIVILEGED INFORMATION
This e-mail may include confidential, trade secret or legally
privileged information. If you are not the intended recipient,
please do not read, copy, use, distribute or disclose this
communication to anyone other than the intended recipient. Please
notify the sender of any error in transmission or delivery and
delete any misdirected e-mail from your system.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: check_lpc
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050103/a48a0fb1/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EmmettH.vcf
Type: text/x-vcard
Size: 260 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050103/a48a0fb1/attachment.vcf>
More information about the Users
mailing list