Index of /code/clamdwatch
      Name                        Last modified       Size  Description

[DIR] Parent Directory 15-May-2008 20:04 - [TXT] clamdwatch.txt 15-Apr-2008 14:22 7k [TXT] clamdwatch-0.7test1.txt 22-Jan-2004 10:02 4k [TXT] clamdwatch-0.7rc2.txt 19-Dec-2004 00:19 7k [TXT] clamdwatch-0.7rc1.txt 09-Dec-2004 12:45 7k [TXT] clamdwatch-0.7.txt 27-Jan-2005 04:23 7k [TXT] clamdwatch-0.7.3.txt 15-Apr-2008 14:22 7k [TXT] clamdwatch-0.7.2.txt 11-Dec-2007 09:21 7k [TXT] clamdwatch-0.7.1.txt 30-Jan-2005 20:50 7k [TXT] clamdwatch-0.7.1-0.7.2.diff 11-Dec-2007 09:23 1k [TXT] clamdwatch-0.6.txt 09-Jan-2004 11:31 3k [TXT] clamdwatch-0.5.txt 09-Jan-2004 11:15 3k [TXT] clamdwatch-0.4.txt 08-Jan-2004 09:42 3k [TXT] clamdwatch-0.3.txt 07-Jan-2004 14:22 3k [TXT] clamdwatch-0.2.txt 07-Jan-2004 10:37 2k [TXT] clamdwatch-0.1.txt 07-Jan-2004 07:48 1k [TXT] README.txt 09-Dec-2004 01:50 1k [TXT] INSTALL-0.7 23-Jan-2004 10:56 2k [TXT] INSTALL 23-Jan-2004 09:32 2k [TXT] ChangeLog 11-Dec-2007 09:21 1k

clamdwatch.pl:

Clamdwatch is made to be ran from (ana)cron to check the status of the
clamd daemon.  The script contains a copy of the EICAR test virus
signature.  Clamdwatch connects to the clamd socket and asks clamd to
scan it (the script).  If, within 15 seconds (default timeout), clamd
returns claiming it found the virus, the script returns 1.  If clamd
takes longer than the timeout to respond (or doesn't finde the virus
test signature) the script returns 0.  It also returns 0 if the socket
(defined as $Socket) is not present or if it can't connect to the
socket.

Please send any suggestions/comments/patches to
clamdwatch-NOSPAM@mikecathey.com (remove "-NOSPAM").

Enjoy!