[Mimedefang] Tally script?
Dave Shepherd
Dave.Shepherd at vixel.com
Tue Sep 24 19:13:00 EDT 2002
I use rrdtool http://ee-staff.ethz.ch/~oetiker/webtools/rrdtool . It's a
round-robin
database that remains a fixed size. I then produce graphs each night
show a the following messages-processed, reject-messages,
bytes-processed,
viruses-captured.
The graphs are a 90-day running window that are presented under
Bigbrother which creates the graphs
each night and auto-ftp's them to my BB Display hosts. It even sends
page to my cell phone if sendmail goes down via a modem call to
ATTwireless.
I also do this with all my performance stats on all my system for an
entire year for long-term trending.
First download and install rrdtool, then run these scripts I wrote to
gather and display the stats.
The first script creates the round-robin database (mkrrd_mail.sh)
The second script populates the database once each night
(fetch_mails.pl)
and the third script creates the GIF 90-day graphs each night
(rgraph-mail.sh)
You can grap the scripts and see the pritty graphs at
http://sparrow.vixel.com/dave/rrd/
I hope this helps :)
Dave
"Ashley M. Kirchner" wrote:
>
> Is anyone doing any kind of tallying through their filter? I'd like to
> track what happens no the filter level so I can present the data to the folks
> upstairs who just don't bloody understand the level of crap that flows over our
> pipe.
>
> Right now my filter does the following:
>
> - virus get action_drop_with_warning()
> - spam score >20 get action_bounce()
> - spam score >10 get action_quarantine_entire_message() pending
> my approval
> - spam score >5 get action_add_part() adding SA's report and
> delivered to the recipient
>
> These numbers may change in the future, but for now it's helping quite a
> bit. Now, what I'd like to do for starters is:
>
> - log how many virus email a day we get
> - log how many messages get rejected
> - log how many get quarantined
> - log how many >5 pass through
>
> Expanding on this, (and this does NOT have to happen right away), I want to
> log how many of each virus we get. So far I've counted some 20+ messages with
> 4 different viruses arriving at our server and getting dropped. I want to
> tally this up in a flat text file that would list each virus we've received and
> how many times.
>
> Then I would like to break down the spam scores as well, for example, log
> how many messages had a score of >40, how many >30, >20, >15, etc., etc.
>
> I'm not sure if I should be doing this through MD's filter, or have it pass
> the data to an external script (and if so, I wouldn't know where to start.)
>
> --
> W | I haven't lost my mind; it's backed up on tape somewhere.
> +--------------------------------------------------------------------
> Ashley M. Kirchner <mailto:ashley at pcraft.com> . 303.442.6410 x130
> IT Director / SysAdmin / WebSmith . 800.441.3873 x130
> Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6
> http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
>
> _______________________________________________
> MIMEDefang mailing list
> MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Dave.Shepherd.vcf
Type: text/x-vcard
Size: 327 bytes
Desc: Card for Dave Shepherd
URL: <https://lists.mimedefang.org/pipermail/mimedefang_lists.mimedefang.org/attachments/20020924/705d3e7e/attachment.vcf>
More information about the MIMEDefang
mailing list