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.
Once this is in place
cd /etc/munin/plugins
ln -s /usr/share/munin/plugins/spamstats .
Then edit /etc/munin/plugin-conf.d/munin-mode - I'm using exim4 - which logs to /var/log/mail.log - and with root.adm ownership - so I used the following:
[spamstats]
group adm
env.logfile mail.log
env.logdir and env.logfile are used to specifiy which logfile.
Now - restart the munin-node process - and you're done.
Comments
Post new comment