CUPS monitor?

2008-07-09 Thread Don Forbes
I'm looking for a monitor to test our CUPS server for problems;
disabled printers (printer state)... the usual statistics here.  I can
use the lpd.monitor like the following: ./lpd.monitor -h x.y.tld -p
631 which does tell me if the cups server is or is not running,
however it doesn't tell me if one of the printers is offline or if
it's not accepting jobs, which is important.


Has anyone here came up with such a monitor that's clever enough to
work with CUPS and would give a bit more detailed output?


--
Don

___
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon


Re: CUPS monitor?

2008-07-09 Thread Ed Ravin
On Wed, Jul 09, 2008 at 03:02:39PM -0700, Don Forbes wrote:
 I'm looking for a monitor to test our CUPS server for problems;
 disabled printers (printer state)... the usual statistics here.

Try using one of the http monitors with a URL that lists out the
printer state, and look for a match (or non-match) for the strings
you're looking for.

If you're going to roll your own, I see that there's a Net::Cups
module on CPAN.

___
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon