About a month or so ago we talked a bit on this list about generating
statistics based on SA's logged activity.

I've since written the spiffy little perlscript I discussed back then,
and while I was at it I made it talk to our rrdtool graphing setup.  The
result (which may not be all that directly useful, but is if nothing
else it's sort of interesting to look at) is on our website at

        http://www.letu.edu/network/stats/graphs/spamstats/

Basically, the perlscript on my SpamAssassin machine accepts a
command-line parameter which makes it wait for a connection on a tcp
socket, and then make its output there rather than to stdout.  It's run
via a cronjob with that parameter, and a corresponding cronjob on the
web server launches a little shellscript which connects to the other
machine using netcat, gets the output, and dumps it into an rrdtool
database.  Fun stuff...


---
Mark Roedel           | "Blessed is he who has learned to laugh
Systems Programmer    |  at himself, for he shall never cease
LeTourneau University |  to be entertained."
Longview, Texas, USA  |                          -- John Powell

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to