Setting up Munin on Ubuntu 10.04


Server setup (as root):

apt-get install apache2 munin munin-node munin-plugins-extra munin-libvirt-plugins munin-java-plugins

a2dissite default

Edit munin apache config to enable stats to be veiwed from anywhere:

joe /etc/apache2/conf.d/munin

change Allow localhost 127.0.0.1/8 ::1 line to:

allow all

Restart apache2:

/etc/init.d/apache2 restart

Setup hosts we want to monitor in /etc/munin/munin.conf . For each host we need to add a section that’s similar to the following:

[hostname]

address ipaddress

use_node_name yes

Now on each server we defined in the last step (including the munin server itself) we need to ssh into them and setup munin  node:

apt-get install munin-node munin-plugins-extra munin-libvirt-plugins munin-java-plugins

Allow access from the munin server:

joe /etc/munin/munin-node.conf

Add:

allow ^192\.168\.0\.1$

where 192.168.0.1 is the ipaddress of your munin server.

Restart the munin node:

/etc/init.d/munin-node restart

Open up a web browser and navigate to:

addressOfMuninServer/munin

This should present you with a webpage with all your configured nodes. Click on them to get stats/charts about the nodes. NB Munin can take up to 5 minutes to collect stats so if you’ve got nothing coming up wait 5 minutes. If you’ve still got nothing then you’ve probably got a configuration problem.

The Munin install differs on 10.04 Lucid as the install configures it’s own virtual host, which in previous versions of Ubuntu it never use to. The virtual host the Munin install provides is only accessible to the localhost hence the need for the configuration change.

, , ,

2 responses to “Setting up Munin on Ubuntu 10.04”

  1. Wonderful, I now have my Moomin setup and he’s enjoying his biscuits. Thanks so much Sebastian, the people of the Norway convention salute you.

    Yours, Ted Peg.
    Editor-in-Chief, Horse Weekly

  2. I left this running as a test for 24 hours and my PC blew up in the dogs face and smashed the fish bowl. What the hell have you done to my fish Jimmy, you’ll be hearing from my lawyers.

    Yours, Ted Peg.
    Editor-in-Chief, Horse Weekly

Leave a Reply

Your email address will not be published. Required fields are marked *

*