On Friday 14 March 2008 14:17, Tarak Ranjan wrote:
> Hi,
> i m trying to configured MRTG for clamd but it;s giving me 0 out put
>
> Title[clamd]: clamd - mail.example.com
> MaxBytes[clamd]: 10000
> AbsMax[clamd]: 100000
> Options[clamd]: gauge
> Target[clamd]: `/usr/local/bin/qmailmrtg7 C /var/log/clamav`
> PageTop[clamd]: <B>mail.example.com ClamAV</B><br>
> ShortLegend[clamd]: Msg
> YLegend[clamd]: viri/hour
> Legend1[clamd]: a&nbsp;
> LegendI[clamd]: found&nbsp;
> LegendO[clamd]: errors:&nbsp;
> WithPeak[clamd]: ymwd
> XSize[clamd]: 350
> YSize[clamd]: 150
>
>
> /usr/local/bin/qmailmrtg7 C /var/log/clamav
> 0
> 0

qmailmrtg7 is designed to work with daemontools multilog logs, not traditional 
syslog type logs. (I'm making an assumption here which might be totally 
wrong)
If you are not using daemontools you should be able to write a perl or bash 
script to pull the relevant bits out of your logs.

The first number is the number of viruses found in the last 5 minutes times 12 
to give you a per hour rate, assuming mrtg is running every five minutes.
The second is an error count handled in the same way

Or perhaps someone else already has ;-)

>
> any idea ,, anyone
>
>
> /
> Tarak
>
>
>
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://lurker.clamav.net/list/clamav-users.html

-- 
-----------------
Bob Hutchinson
Midwales dot com
-----------------
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to