-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chandu Nelluri
Sent: Tuesday, November 29, 2005 5:56 AM
To: [email protected]
Subject: [Clamav-users] Help.

Hi

we are using Clam AV with Sendmail and base OS as Red Hat Linux.

Daily approximately 10000 mails per day this server processes.

At end of the day I would like to know the statistics like how many mails 
scanned, virus detected etc by Clam AV.

Kindly help me on this.

Thank You
Chandu
Hyderabad
India


Quick and dirty...


----startcode----
#!/bin/sh
DATENOW=`date "+%y%m%d_%H%M"`
WORKPATH="/var/tmp"
MAILTO="`cat /etc/mailto.txt`"

echo $DATENOW > $WORKPATH/virusdaily.rpt
echo Daily Virus Report for Mail Gateway >> $WORKPATH/virusdaily.rpt
echo ................................................... >>
$WORKPATH/virusdaily.rpt
tail -n 1000000 /var/log/maillog | grep status=VIRUS >>
$WORKPATH/virusdaily.rpt

for recip in $MAILTO ; do
/usr/local/bin/mpack -s "`hostname` Virus Report" $WORKPATH/virusdaily.rpt
$recip
done

rm $WORKPATH/virusdaily.rpt

exit 0
-----endcode-----

Christopher Checca
Packard Transport, Inc.
IT Department
24021 South Municipal Dr
PO Box 380
Channahon, IL.  60410
815 467 9260
815 467 6939 Fax
[EMAIL PROTECTED]
www.packardtransport.com

_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to