CUPS/SAMBA printer monitor?

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Mon Aug 23 06:10:23 CEST 2004


Dear Sir,

I am writing to thank you for your letter and say,

On Sun, Aug 22, 2004 at 08:29:57PM -0700, nagios-users-request at lists.sourceforge.net wrote:

> Date: Sun, 22 Aug 2004 15:12:34 -0400
> From: mike <lists01 at dds.uconn.edu>
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] CUPS/SAMBA printer monitor?
> 
> is it possible to monitor the entire print path of a CUPS printer 
> accessed via SAMBA?  i want to ensure not only that the service ports 
> are open, but that a test document actually goes through the printing 
> process completely (up to but not including the printer itself, of course):
>

Yep.

Or almost.
 
> user -> [[ samba -> CUPS ]] -> parallel port -> printer
> 

 user -> spooler -> queue -> disk

I suggest you split the food chain in two: the first part being the 
processing of print requests by your spooler/remote-exported file 
system; the other being the printer.

Montor the printer with SNMP (left as excercise to reader).

For the first part you could build a plugin that

 - submits a print request for a special queue that outputs to the 
(remote) file system.

The request could be a certain number of bytes (copied by dd from 
/dev/zeros for example).

- Check the remote file system for the files size and access date.

I have such a plugin (that uses smbclient to enqueue the request) if 
you want to hack it (please write me privately).

In my view this is the only accurate way to check the performance and 
function of a spooler.

> does anything like this exist, or any suggestions on creating such a plugin?
> 

Yours sincerely.

-- 
Stanley Hopcroft

Network specialist, IT Infrastructure
IP Australia
Ph: (02) 6283 3189  Fax: (02) 6281 1353
PO Box 200 Woden  ACT 2606
http://www.ipaustralia.gov.au


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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