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.

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.

Technorati Tags:Technorati Tags:

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <strike> <caption>
  • Lines and paragraphs break automatically.
  • Replace [debbug:xxxxx] with a link to the relevant debian bug.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Insert Flickr images: [flickr-photo:id=230452326,size=s] or [flickr-photoset:id=72157594262419167,size=m].
  • You may link to Gallery2 items on this site using a special syntax.
  • Insert Google Map macro.
  • Images can be added to this post.
  • You can link nodes to other nodes using the following syntax:
    [node:node_id,param_1="val1",param_2="val2"]

More information about formatting options