munin

Postgres monitoring with munin 1.4 and multiple databases

In munin 1.4 the number of plugins for postgres has increased. They are all based on the same perl module - Munin::Plugin::Pgsql

Many of them allow for suffixing the database name to the symlink in /etc/munin/plugins/ to run against a given db or to suffix ALL to run against all (this is standard munin behaviour - see the plugins that have a filename ending in _).

If you enable several databases on the same plugin - it does a lot of stuff to be specific but it wasn't changing the plugin title so all the graphs generated got the same title. Hard to know which db is which.

I found that if I insert this line

$pg->{title} = $pg->{title} . " " . $pg->wildcard_parameter();

just before the call to

$pg->Process();

then I get unique titles.

Not sure if this is handled in later versions (I am running this via the lenny-backports apt repo).

Technical:

Munin - node with no services

Note to self - when munin shows no services for a node yet all testing (telnet to 4949 from the munin server to the node) etc show OK - check you've spelt the nodename correctly and use the host_name value in the node's munin-node.conf if you need to override it on the node.

Technical:

Glassfish and Too many open files - monitoring with munin

One of the systems that can be used for monitoring trends on a system is munin. It turns out that adding a graph to munin is reasonably simple.

There is a good guide on the munin site.

So - I need a plugin that will return the number of open files.

lsof -u glassfish | wc -l

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++;
}
}

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.

Technical:

Subscribe to RSS - munin