On Wed, 2004-01-07 at 07:02, Power-Netz (Schwarz) wrote: > I found in the manpage docs some commands to send to clamd like PING. > Question is now, HOW ?
I hacked out a little perl script to connect to clamd via LocalSocket (unix socket) and put it here: http://mikecathey.com/postfix-cyrus-amavis/clamdwatch.txt I wasn't sure what would happen if all the clamd threads/processes where busy. Does the client just sit in a wait state until it's request is serviced? This could be hacked into a nagios/netsaint plugin quite easily. It could probably be improved by: * adding a check for the existence of the actual file/socket before the IO::Socket::UNIX instance is created * adding code to remove the dead socket file if clamd is dead (does the default/contrib init script do this? ...then restarting the daemon * adding TCP support * ? *suggestions* ? Cheers, Mike ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
