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:
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:
to include my own internal network:
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:
Save and quit the file.
Restart apache on the server:
Installing the client
To install and configure Munin on a client:
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 192.168.1.2 :
Restart the Munin client:
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 http://192.168.1.12/munin.
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: