Munin is an open source web based network monitoring application written in Perl that displays systems and networks output in graphs using RRDtool. With the help of Munin you can monitor the performance of your systems, networks, SANS’s and applications.
It has a master/node architecture where master connects to each node regularly and pulls the data from them. It then uses RRDtool to log and generate updated graphs.
Step 1: Installing EPEL Repository for RHEL & Centos
Munin can be installed by using Fedora‘s EPEL repository under RHEL 6. Just, run the following commands as root user to install it using wget.
# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
# rpm -ivh epel-release-6-5.noarch.rpm
Step 2: Installing Munin
Just run the following command as root user.
# yum –enablerepo=epel -y install munin munin-node
By default the above installation creates following directories.
- /etc/munin/munin.conf : Munin master configuration file.
- /etc/cron.d/munin : Munin cron file.
- /etc/httpd/conf.d/munin.conf : Munin Apache configuration file.
- /var/log/munin : Munin log directory.
- /var/www/munin : Munin web directory.
- /etc/munin/munin-node.conf : Munin Node master configuration file.
- /etc/munin/plugins.conf : Munin plugins configuration file.
- /etc/rc.d/init.d/munin-node : Munin start-up service daemon.
Step 3: Configuring Munin
Open file /etc/httpd/conf/httpd.conf file and add the following lines of code at the bottom.
Alias /munin /var/www/munin
Allow from all
Restart Apache and then create system start-up links for Munin and start it.
# /etc/init.d/httpd restart
# chkconfig munin-node on
# /etc/init.d/munin-node start
Step 4: Accessing Munin Web Interface
Wait for 30 minutes so that Munin can generate graphs and displayed it. To see first output of graphs, open your browser and navigate to http://yourserverip/munin.