System monitoring with Munin

This is a brief guide to installing and configuring Munin.

This is how the Munin project describes their software on their site:

Munin is a networked resource monitoring tool that can help analyze resource trends and “what just happened to kill our performance?” problems. It is designed to be very plug and play. A default installation provides a lot of graphs with almost no work.

Installing the server

Installing a Munin server in Kubuntu is easy. This will install the server as well as the client on the server itself:

sudo apt-get install munin munin-node

As I already have the apache web server installed, I take a look in /etc/apache2/conf.d/ and notice a sym-link called munin have been added. This sym-link points to /etc/munin/apache.conf so let’s open this file in a text editor.

My server is headless, so I want to be able to connect to the server to see the graphs from another computer. Therefore I change the following directive:

Allow from localhost ::1

to include my own internal network:

Allow from localhost ::1

Save the file and quit.

Let’s open up the file /etc/munin/munin.conf and configure some clients. I want the server to be a client to itself (which it already is by default) and add one additional client:

use_node_name yes

use_node_name yes

Save and quit the file.

Restart apache on the server:

sudo apache2ctl restart

Installing the client

To install and configure Munin on a client:

sudo apt-get install munin-node

Open the file /etc/munin/munin-node.conf and add an allow statement for the Munin server. This statement is a regular expression allowing a server with the IP address :

allow ^$

Restart the Munin client:

sudo service munin-node restart

That’s all there is to it!

Wait a few minutes to let Munin gather some data, then open up a web browser pointing it to you munin server

Should any problems arise, make sure to check the logs in /var/log/munin.

One possible caveat is that a service which is not present on your munin node is configured. To see what is used/suggested, use the following command:

munin-node-configure -suggest
This entry was posted in Linux and tagged , , , , , , , , , , , . Bookmark the permalink.

1 Response to System monitoring with Munin

  1. Pingback: Installing lm-sensors | Monkey7

Leave a Reply

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