Steps to install Munin Monitoring Tool on Ubuntu 20.04 LTS

Munin is a free & open source system monitoring tool. It helps to monitor computers, especially servers. Using Munin web interface, we can collect various system information such as processor load, hard disk usage, network traffic, mysql & memory usage information.

There are some steps to install munin on ubuntu:

Step 1: Update the System.

apt-get update

Step 2: Install the required packages.

apt install apache2 libcgi-fast-perl libapache2-mod-fcgid

Step 3: Install Munin on system.

apt install munin

Step 4: To enable the extra plugins for Mysql or MariaDB database monitor.

cd /etc/munin/plugins
ln -s /usr/share/munin/plugins/mysql_ mysql_
ln -s /usr/share/munin/plugins/mysql_bytes mysql_bytes
ln -s /usr/share/munin/plugins/mysql_innodb mysql_innodb
ln -s /usr/share/munin/plugins/mysql_isam_space_ mysql_isam_space_
ln -s /usr/share/munin/plugins/mysql_queries mysql_queries
ln -s /usr/share/munin/plugins/mysql_slowqueries mysql_slowqueries
ln -s /usr/share/munin/plugins/mysql_threads mysql_threads

  • Here is the command output.

Step 5: To configure the Munin file.

vim /etc/munin/munin.conf

  • Uncomments the following values:

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

  • Here is the output.

Step 6: Go to Apache configuration directory.

cd /etc/apache2/conf-enabled

  • Open the apache config file.

vim /etc/munin/apache24.conf

  • Comment the following value:

# Require local

  • Add & change the following values:

Require all granted
FollowSymLinks SymLinksIfOwnerMatch

  • Here is the output.

Step 7: Restart the apache2 & Munin service.

systemctl restart munin munin-node

  • To check the Mumin status.

systemctl status munin munin-node

  • Here is the command output.

Step 8: Access Munin Server Web interface.

http://server-ip/munin

  • Here is the output.
  • Click on Disk.

  • Here is Graph of Disk.

  • Graph of MySQL.

  • Graph of Network.

  • Graph of System available entroph & CPU usage.

  • Graph of Load average.

  • Graph of Memory usage.

Leave a Reply