Ubuntu – Install Munin

I use Munin a networked resource monitoring tool that is both simple to install and understand. Munin graphs server performance over time, administrators can later use this information to make an informed decision about when to add more resources.

From The Munin 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.


To start this tutorial you will need a web server, both Lighttpd and Apache will do the job. For this tutorial I will use Lighttpd which is available from the Ubuntu Repositories.

sudo aptitude instal lighttpd

You will also need PHP installed on the system.

sudo aptitude instal php5-cgi

Since Munin will be running on only one system we will need the master and client installed on the same system.

sudo aptitude instal munin munin-node


When the installation in complete, open the Munin configuration file with your text editor of choice. Change the htmldir path from /var/cache/munin/www to /var/www/munin.

sudo nano /etc/munin/munin.conf
dbdir   /var/lib/munin
htmldir /var/cache/munin/www
logdir /var/log/munin
rundir  /var/run/munin

New Path.

htmldir /var/www/munin

When Munin is installed in Ubuntu the htmldir path changes for some reason.
To have a functional installation we had to change the path on the configuration file, now we need to move the Munin directory out of /var/cache/munin/www into /var/www/munin with the help of the mv command.

sudo mv /var/cache/munin/www/ /var/www/munin

Assign the Munin directory to the Munin user and group by using chown.

sudo chown munin.munin -R /var/www/munin

And now you can start Munin.

sudo /etc/init.d/munin-node start

Munin can be accessed by pointing the web browser to:


Leave a Reply

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