Munin 2.0.25 installation and configuration in Ubuntu/LinuxMint

Munin is a network resource monitoring tool that can help to analyze resource trends and problems. It is designed to be very plug and play. A default installation provides a lot of graphs with almost no work. Munin 2.0.25 was released on November 24, 2014 and there is no official package for Ubuntu/LinuxMint as of now. If you want to install Munin 2.0.25, add third party backport repository and install it. Also read munin installation on CentOS, RHEL & Fedora systems. Alternatively you can install other network monitoring tools such as Zabbix, Monitorix, Cacti, Nagios & Icinga2.

Munin uses RRDTool and the framework is Perl which was developed by Tobi Oetiker. Munin has a master/node architecture in which the master connects to all the nodes at regular intervals and asks them for data. It then stores the data in RRD files, and (if needed) updates the graphs.

Using Munin you can easily monitor the performance of your computers, networks, servers, services (apache, mysql, dns, harddisk, mail server), SANs, applications, weather measurements, etc…

1) Checking Munin package version

Use the below command to check available version of Munin package.

$ apt-cache policy munin

The output clearly shows my system have Munin 2.0.21 which was a bit older.

2) Adding Munin package PPAs

Use the below command to add latest Munin package PPAs (Change the code name based on your OS Vesion).

$ sudo sh -c 'echo "deb '$(lsb_release -cs)' main" >> /etc/apt/sources.list.d/munin.list'
$ sudo sh -c 'echo "deb-src '$(lsb_release -cs)' main" >> /etc/apt/sources.list.d/munin.list'
$ sudo apt-get update
$ apt-cache policy munin-node

The output clearly shows my system have latest version of Munin 2.0.25.

3) Install Munin package

Use the below command to install latest Munin package on your system.

$ sudo apt-get install munin

4) Munin Configuration part-1

Made below necessary changes to appropriate configuration file.

# Uncomment below lines to /etc/munin/munin.conf #
$ sudo nano /etc/munin/munin.conf

dbdir /var/lib/munin
htmldir /var/cache/munin/www
logdir /var/log/munin
rundir  /var/run/munin
tmpldir /etc/munin/templates
    use_node_name yes
  • dbdir : It contains all the rrdfiles.
  • htmldir : It stores all the images and site files.
  • logdir : It contains all the logs.
  • rundir : It contains all the state files.
  • tmpldir : It contains lot of predefined templates which were ready to use with slight modification.
  • localhost.localdomain : Add your hostname here.

4a) Munin Configuration part-2

Made below necessary changes to appropriate configuration file.

# Uncomment below lines to /etc/munin/apache.conf #
$ sudo nano /etc/munin/apache.conf
Alias /munin /var/cache/munin/www
<Directory /var/cache/munin/www>
       Order allow,deny
       Allow from all
       Options None
       AllowOverride None

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

       <ifmodule mod_expires.c="">
               ExpiresActive On
               ExpiresDefault M310

# Copy the file to apache config directory #
$ sudo cp /etc/munin/apache.conf /etc/apache2/sites-enabled/

# Set password for munin user #
$ sudo htpasswd -c /etc/munin/munin-htpasswd munin

# For SysVinit Systems #
# service apache2 restart
# service munin restart

# For systemd Systems #
# systemctl restart apache2.service
# systemctl start munin.service

5) Access Munin Web Interface

Navigate your browser to http://localhost/munin or http://IP-Address/munin or http://Domain-Name/munin and enter the Username and Password which you created.
Munin Home Page
You can see all the service usage, I’m going to view Network usage.
Refer Munin official documents for complete details.

About Vinoth Kumar

Vinoth Kumar has 3.5+ years of experience in Linux server administration & RHEL certified professional. He is currently working as a Senior L2 Linux Server administrator.

View all posts by Vinoth Kumar

2 Comments on “Munin 2.0.25 installation and configuration in Ubuntu/LinuxMint”

  1. Thank you for instructions.

    I have a problem:
    “W: Ошибка GPG: utopic Release: Следующие подписи не могут быть проверены, так как недоступен открытый ключ: NO_PUBKEY FA9720F2A55827C9″

    Add the key import item in your instructions

Leave a Reply

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