On 2004-04-02, Richard Humphrey wrote:

>Is anyone using mrtg to gather stats on spam/virus activity? I havbe
>seen some how-to's but they require using apps like MailScanner etc. I
>am using Sendmail/SpamAssassin/clamav-milter combo and would like to set
>up mrtg to monitor activity. Any simple how-to's on doing this around?

#!/bin/sh
VIRCOUNT=`grep -c FOUND /wherever/is/your/clamd.log`
echo $VIRCOUNT
echo 0
echo `uptime`
echo `hostname`

Tune it. ;-)

s.

-- 
(0>  Jakub Jankowski  [url]: s.atn.pl  "Nawet w Krainie Czarow
//\   [EMAIL PROTECTED]   [rlu]: 174516     latwiej jest spotkac
V_/_  [EMAIL PROTECTED]   [ekg]: 921514     Babe Jage niz Alicje"
Fingerprint: FCBF F03D 9ADB B768 8B92 BB52 0341 9037 A875 942D


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to