munin

Monitoring Exim4 mailstats with munin (greylisting)

The script for monitoring exim4 mailstats does not take into account the greylist temporary reject - it shows as a true reject.

The affected file is symlinked in at /etc/munin/plugins/exim_mailstats

To not show these as true rejects - in the parseEximfile function change

elsif ($line=~/rejected/)
{
$rejected++;
}

elsif ($line=~/rejected/)
{
if ($line!~/greylisted/) {
$rejected++;
}
}

You could probably add a new line on the graph to show greylist entries if you wanted.

Sarge - munin - spamstats

For some reason the munin packages in debian sarge don't seem to include the spamstats plugin.

I fetched the latest spamstats.in file from CVS - this is not ready to run as it needs to be processed by the build scripts - so to install into an existing binary install:

Get the file
wget 'http://cvs.sourceforge.net/viewcvs.py/*checkout*/munin/munin/node/node.d/spamstats.in'

Here's the patch

Note - this will patch spamstats.in to /usr/share/munin/plugins/spamstats - which is where all the munin plugins live. You will need to be able to write in this location or you will need to change the paths in the patch file.

Technorati logoTechnorati Tags:
Syndicate content