[cups.general] Howto monitor cupsd ?

Dr.Peer-Joachim Koch pkoch at bgc-jena.mpg.de
Mon Nov 6 23:49:18 PST 2006


Hi,

well I think I'll try to check /var/log/messages.
An entry will occurs when the cupsd stops working.
Grep for this entry, pipe into a file and compare
with the previous state. No fine, but should work.


Bye,
	Peer

Nathan Whitehorn schrieb:
>>Hi,
>>
>>we have some trouble with our printserver. the cupsd is sometimes
>>running, but not responding.
>>So an /etc/init.d/cupsd status only shows a running cupsd,
>>but the daemon is not doing anything.
>>I was thinking about something like
>>lpstat -t and check the output, but lpstat seem's to wait
>>forever. Is there any timeout option ?
>>Or another way to check if the cupsd IS working (not only be running)
> 
> 
> I'm having the same problem (CUPS 1.2.2, FreeBSD 6.1). We have about 1800 users printing via IPP, often from windows, so the load from printer state polling is often high. They are authenticated through pam_ldap. It occasionally happens (once or twice a day) that the CUPS daemon will stop processing requests. The accept queue (as seen from netstat -aL) will increase to maximum, and nothing further happens until the daemon is killed. There's no obvious correlation with anything, but it's hard to tell, because if LogLevel is set to Debug, the log grows several megabytes a second. On Info, there's nothing obvious.
> 
> Just so this is somewhat useful to the original poster: one solution we're investigating is to check netstat -aL for the cupsd process on a cron job. If the listen queue is non-zero, wait a couple seconds and see if the listen queue is now smaller. If it isn't, kick the server over. This has the advantage over the cups commands that it won't block on a hung server, but is still a bad hack.
> -Nathan
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups
> 
> 


-- 
Mit freundlichem Gruss
     Peer-Joachim Koch
_________________________________________________________
Max-Planck-Institut fuer Biogeochemie
Dr. Peer-Joachim Koch
Hans-Knöll Str.10            Telefon: ++49 3641 57-6705
D-07745 Jena                 Telefax: ++49 3641 57-7705
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pkoch.vcf
Type: text/x-vcard
Size: 291 bytes
Desc: not available
URL: <https://lists.cups.org/pipermail/cups/attachments/20061107/77762065/attachment-0001.vcf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7170 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.cups.org/pipermail/cups/attachments/20061107/77762065/attachment-0001.bin>


More information about the cups mailing list