Check for HP Printers
Mark Wagner
markwag+nagios at u.washington.edu
Wed Jan 21 23:46:47 CET 2004
On 21 January 2004 at 12:41, "Brian Hendrix" <bhendrix at stthomas.org> wrote:
> Can you elaborate on the last part of your message:
> lpq/rlpq | egrep 'this|that|theotherthing'
>
> I have been a Unix Administrator for 11 years and understand the
> command, just not the context of how it would be run in relation to
> check_tcp.
I recommend examining RFC 1179.
The data returned by "lpq" (i.e., "Send queue state (long)") is
unspecified but it may be useful information such as "jammed" or "OK."
If the former, then something like
negate check_tcp -H <pinter> -p 515 -s `printf "\x3\n"` -e "jammed"
may be useful.
If the latter, then something like
check_tcp -H <pinter> -p 515 -s `printf "\x3\n"` -e "OK"
may be useful.
> But if you want to see if it works (hey, maybe they've improved, it's
> been a while), you could probably check_tcp 515 and/or 9000. Or even
> lpq/rlpq | egrep 'this|that|theotherthing'.
--
Mark Wagner markwag at u.washington.edu 206-598-0302
Unix System Administrator, Radiation Oncology and Radiology
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list