Did You Know?
Ask a Question

We are pleased to announce the Launch of our New Section "TecMint Ask"

Install Munin (Network Monitoring) in RHEL, CentOS and Fedora

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

In this basic guide we will describe and show you how to install and configure Munin ( Network Monitoring Tool ) with Munin Node in RHEL 6.3/6.2/6.1/6/5.8, CentOS 6.3/6.2/6.1/6/5.8 and Fedora 12,13,14,15,16,17 systems using EPEL repositories with Yum tool. I have personally tested this installation in one of our server using CentOS 5.6 for monitoring purpose.

Munin Network Monitoring

Munin Network Monitoring

What Is Munin?

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.

Install Munin and Munin Node in RHEL 6.3/6.2/6.1/6/5.8, CentOS 6.3/6.2/6.1/6/5.8 and Fedora 17,16,15,14,13,12

Installing Munin in RHEL, CentOS & Fedora

Installing Munin is very simple, just follow my below step-by-step commands to install it on your server.

Step 1: Installing EPEL Repository for RHEL & CentOS

Munin can be installed by using Fedora‘s EPEL repository under RHEL 6.3/6.2/6.1/6/5.8 and CentOS 6.3/6.2/6.1/6/5.8. Just, run the following commands as root user to install it using wget.

RHEL/CentOS 6

# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
# rpm -ivh epel-release-6-5.noarch.rpm

RHEL/CentOS 5

# wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm

Note : Fedora users don’t need to install EPEL repository, because munin is included in Fedora and can be installed using yum.

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.

  1. /etc/munin/munin.conf : Munin master configuration file.
  2. /etc/cron.d/munin : Munin cron file.
  3. /etc/httpd/conf.d/munin.conf : Munin Apache configuration file.
  4. /var/log/munin : Munin log directory.
  5. /var/www/munin : Munin web directory.
  6. /etc/munin/munin-node.conf : Munin Node master configuration file.
  7. /etc/munin/plugins.conf : Munin plugins configuration file.
  8. /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
<Directory /var/www/munin>
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

Restart Apache and then create system start-up links for Munin and start it.

# /etc/init.d/httpd restart
# chkconfig --levels 235 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://www.example.com/munin.

For more information and usage please visit at http://munin-monitoring.org/wiki/Documentation.

Ravi Saive

Owner at TecMint.com
Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Linux Services & Free WordPress Setup

Our post is simply ‘DIY’ aka ‘Do It Yourself, still you may find difficulties and want us to help you out. We offer wide range of Linux and Web Hosting Solutions at fair minimum rates. Please submit your orders by Clicking Here.

6 Responses

  1. Elavarasan says:

    Hi,

    I have installed Munin in our server successfully but when i browse in browser it’s asking username and password, so what is the default username and password for munin

    Thanks,
    Ela

    • JF says:

      Hi Ela,

      That’s per file /etc/httpd/conf.d/munin.conf that such authentication is required.
      You can easily disable it my modifying this conf file. Do not hesitate to look at Apache Http doc to get help on the conf file contents.

  2. Minu says:

    After the installation using the above steps password authentication enabled. you can configure Authentication details using the following command.

    htpasswd -c /etc/munin/munin-htpasswd Munin

    Enter the correct password

  3. sudarshan says:

    [root@server ~]# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
    –2013-11-26 21:43:32– http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
    Resolving download.fedoraproject.org… failed: Temporary failure in name resolution.
    wget: unable to resolve host address `download.fedoraproject.org’
    [root@server ~]#
    [root@server ~]#

    I am Getting above error while giving the first command as mentioned in procedure

  4. sudarshan says:

    could you please explain the problem why my server unable to resolve the host address.

    i am a great follower of techmint

    thanks in advance

Leave a Reply

© 2012-2013 All Rights Reserved.