Does anyone have any suggestions for using mrtg to produce a graph showing
the amount of received email and how much of it was flagged as spam?
I am using mrtg, sendmail, and procmail on all the same server.
This wouldn't be perfect, but I'd write a script in the scripting language
of your choice that reads in the mail log, counts the lines containing
"checking message", counts the lines containing "identified spam", then
spits out both numbers in an MRTG-compatible format. I can't remember the
exact config syntax, but I think you can tell MRTG that this is going to be
a constantly-incrementing number, not the diff between this run and the
previous run. If that's not possible, then you'd have to have your script do
the math.
(I'd count the "checking message" lines rather than a message count from
Sendmail because the latter would count messages sent out from the server as
well, not just the messages SA saw.)