On 6 Dec 2004 at 10:25, Johan Driesmans wrote:
Hi Johan,
> I'm interested in your mrtg configuration, can you send me this as
an
> example?
Below is the cfg file - it will give you total virus vs total
scanned. Bill did unxtools extract which I munged slightly to make
mrtg like it better. I am running this in Windows w/Active State perl
& the latest mrtg program. If you need to know more let me know.
Note: The "Target[index]:....." is _one_ line.
[Also I believe Darrell ([EMAIL PROTECTED]) is working on
a mrtg ver of a virus analyzer which does this and more... No idea
of a release date - ]
-Nick
#######################################
WorkDir: E:\mrtg-graphs\Imail\grep_virus
Title[index]: Connections MRTG
PageTop[index]: <hr><br><h3>Server: MX1.MADRIVERACCESS.COM<br>
Viruses Detected / Total Email Scanned</h3>
MaxBytes[index]: 100
AbsMax[index]: 1000000
Options[index]: gauge,unknaszero,nopercent,growright
Target[index]: `egrep "File\(|Scanned: (Virus|Error)|Skipping"
e:\imail\spool\vir1206.log | gawk "{print $1,$4,$5,$6}" | sed
"s/\/2004 / TOTAL\n/g" | egrep "File|TOTAL" | gawk "{print $(NF)}" |
usort | uniq -c | cut -b -8 | sed "$!N;s/\n//"1111`
YLegend[index]: Scanned
ShortLegend[index]: Scanned
Legend1[index]: Viruses
Legend2[index]: Scanned
LegendI[index]: Scanned
LegendO[index]: Viruses
###########################################
---
[This E-mail was scanned for viruses by Declude Virus (http://www.declude.com)]
---
This E-mail came from the Declude.Virus mailing list. To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.Virus". The archives can be found
at http://www.mail-archive.com.