How to install and configure Munin on Centos

How to install and configure Munin on Centos

Munin the power full monitoring tool monitor all of your servers or computers and remembers what it saw.

It presents all the information in graphs through a web interface and also available on Android.

Munin has plug and play capabilities. After completing a installation a high number of monitoring plugins will be playing with no more effort.

Using Munin, you can easily monitor the performance of your servers, computers, networks, SANs, applications, weather measurements and whatever comes to mind.

It will makes it you easily to determine “what’s different today” when a performance problem found.

Munin uses the excellent RRDTool written by Tobi Oetiker) and the framework is written in Perl, while plugins may be written in any language.

Also Read: How to install Netdata to monitor your linux system

Munin also has a master/node architecture in which the master connects to all the nodes at regular intervals and asks them for data.

You can read more about Munin on

How to install Munin on Centos 7

Enable Epel repository

Update system with command

Install Munin and Apache

Start and enable munin-node

Create configuration on /etc/httpd/conf.d/httpd.conf

Create authentication file on /etc/munin/munin-htpasswd

Change owner of /var/www/html/munin to munin

Configure Munin to monitor Apache

Create apache server status configuration on /etc/httpd/conf.d/server-status.conf

Create munin configuration on /etc/munin/plugin-conf.d/apache_

Add Apache plugins to /etc/munin/plugins directory using symbolic link

Restart apache and munin-node

Configure Munin to monitor Nginx

Create Nginx server status configuration on /etc/nginx/conf.d/server-status.conf

Create Munin plugin configuration on /etc/munin/plugin-conf.d/nginx_

Add Nginx plugins to /etc/munin/plugins directory using symbolic link

If you use Nginx as reverse proxy, add this configuration to Nginx server

Restart munin-node and wait for a while

Now you can check http://your_ip_or_your_domain/munin

Munin Nginx Monitoring
Munin Nginx Monitoring
Munin Apache Monitoring
Munin Apache Monitoring

Configure Munin to monitor MySQL / MariaDB

Check if perl-Cache-Cache already installed

Create MySQL user for Munin with mysql command below

Create configuration file on /etc/munin/plugin-conf.d/mysql_

Create configuration file on /etc/munin/plugin-conf.d/mysql_innodb_

Create shell script to make plugins symbolic link, example on /root/

Change permission to 755 and then execute shell script.

Restart munin and force run munin cron

Munin MySQL Monitor
Munin MySQL Monitor

How to Force Munin update html and graphics generation

To regenerate html and graphs in /var/www/html/munin run:

Leave a Reply

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