I got this script (spamd_parser.tgz) from a guy called Christopher Kruslicky so all credit goes to him. It uses RRD Tool and provides a fairly nice graph. It also runs as a daemon.
I butchered his code to produce two Perl daemons (spamd.zip) - one that monitors the spamd log and updates the RRD database, and another that builds new graphs from that database. The reason I did it this way is that the graphs are hosted on another server and I needed to be able to fetch, via SCP, a completed graph to be shown on the web page as opposed to generating the graphs on demand. Keep in mind that although it seems to work perfectly and has done so for over a year, my Perl skills are newbie level so I'm sure I've done a few things that may not be the best. Any way, feel free to use them if you wish. Tim. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Spenard Sent: Saturday, 20 May 2006 6:29 AM To: misc@openbsd.org Subject: Spamd & stats Hi, I'm looking for scripts to generate statistics off of /var/log/spamd Thanks, Mike Spenard [demime 1.01d removed an attachment of type application/x-compressed which had a name of spamd_parser.tgz] [demime 1.01d removed an attachment of type application/x-zip-compressed which had a name of spamd.zip]