I would like to write down the installation steps of the munin package, and then I’ll install additional measurements on my server.

Munin is a great monitoring and alarming tool, and it’s absolutely free. But we have to have apache2 installed before! There is another article for apache2, in this one I focus on munin.

So let’s install it to our device:

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

We should edit the /etc/munin/munin.conf file to make it working. Uncomment the following lines:

dbdir   /var/lib/munin
htmldir /var/cache/munin/www
logdir /var/log/munin
rundir  /var/run/munin

# Where to look for the HTML templates
tmpldir /etc/munin/templates

# Where to look for the static www files
#staticdir /etc/munin/static
includedir /etc/munin/munin-conf.d
# a simple host tree
    use_node_name yes

Save and exit.

In case of apache2.2 or above:
Then edit the /etc/apache2/conf.d/munin file. Uncomment the following things:

# Enable this for template generation
Alias /munin /var/cache/munin/www

# Enable this for cgi-based templates
#Alias /munin-cgi/static /var/cache/munin/www/static
#ScriptAlias /munin-cgi /usr/lib/munin/cgi/munin-cgi-html
#<Location /munin-cgi>
#       Order allow,deny
#       Allow from localhost ::1
#       AuthUserFile /etc/munin/munin-htpasswd
#       AuthName "Munin"
#       AuthType Basic
#       require valid-user

<Directory /var/cache/munin/www>
        Order allow,deny
        #Allow from localhost ::1
        Allow from all
        Options None

        # This file can be used as a .htaccess file, or a part of your apache
        # config file.
        # For the .htaccess file option to work the munin www directory
        # (/var/cache/munin/www) must have "AllowOverride all" or something
        # close to that set.

        # AuthUserFile /etc/munin/munin-htpasswd
        # AuthName "Munin"
        # AuthType Basic
        # require valid-user

        # This next part requires mod_expires to be enabled.

        # Set the default expiration time for files to 5 minutes 10 seconds from
        # their creation (modification) time.  There are probably new files by
        # that time.

    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresDefault M310



If you have apache2.4 edit the /etc/munin/apache24.conf file, replace the following lines

Require local
Options None

with this

Require all granted
Options FollowSymLinks SymLinksIfOwnerMatch


If you want the dynazoom working, please install this package:

apt-get install libapache2-mod-fcgid

Next, restart the apache2 and the munin, and it’s working.

service apache2 restart
service munin-node restart

To add/delete modules you should link the files from /usr/share/munin/plugins/ to /etc/munin/plugins.

After a restart it will work.