Advertisements

Installing Munin on Linux

I read several articles on how to install the Munin monitoring tool for Linux, and they all seem to over-complicate the install, or end up with an install that doesn’t work.

This article will walk you through installing Munin for a local monitor/node setup on Debian 8 64-bit. Tweak it to your liking. This also assumes that you are running as root. Prefix commands with sudo where appropriate.

Start by making sure your system is up to date:

apt-get update
apt-get upgrade

Next, install apache, munin, munin-node, munin-plugins-extra and dependencies.

apt-get install apache2 apache2-utils libcgi-fast-perl libapache2-mod-fcgid munin munin-node munin-plugins-extra

Now, edit the munin config file /etc/munin/apache24.conf

nano /etc/munin/apache24.conf

Change the <Directory /var/cache/munin/www> section as follows:

...
Require all granted
Options FollowSymLinks SymLinksIfOwnerMatch
...

Do the same with the <Location /munin-cgi/munin-cgi-graph> section, adding the Options line if it’s not preset.

Now restart both apache and munin-node.

/etc/init.d/apache2 restart
/etc/init.d/munin-node restart

You can now view munin data at http://<server IP>/munin

Advertisements

,