How to Install and Configure Munin on CentOS 6.2

Munin is a network/system monitoring application that presents output in graphs through a web interface.
Munin is a monitoring tool surveys all your computers and remembers what it saw. Munin is a simple to configure tool that make real nice graph about your server status. This post will show how to install munin on linux CentOS 6.2 server.

Prerequisites:
How to Install Httpd on CentOS 6.2

[root@centos62 ~]# yum --enablerepo=epel install munin munin-node -y
..
..
..
Dependencies Resolved

====================================================================================================
 Package                              Arch           Version                     Repository    Size
====================================================================================================
Installing:
 munin                                noarch         1.4.7-5.el6                 epel         124 k
 munin-node                           noarch         1.4.7-5.el6                 epel         375 k
Installing for dependencies:
 mailx                                i686           12.4-6.el6                  base         224 k
 munin-common                         noarch         1.4.7-5.el6                 epel          71 k
 perl-Compress-Raw-Zlib               i686           2.023-119.el6_1.1           base          67 k
 perl-Compress-Zlib                   i686           2.020-119.el6_1.1           base          43 k
 perl-Crypt-DES                       i686           2.05-9.el6                  epel          19 k
 perl-Date-Manip                      noarch         6.24-1.el6                  base         1.4 M
 perl-Digest-HMAC                     noarch         1.01-22.el6                 base          22 k
 perl-Digest-SHA1                     i686           2.12-2.el6                  base          49 k
 perl-Email-Date-Format               noarch         1.002-5.el6                 base          16 k
 perl-HTML-Parser                     i686           3.64-2.el6                  base         109 k
 perl-HTML-Tagset                     noarch         3.20-4.el6                  base          17 k
 perl-HTML-Template                   noarch         2.9-10.el6                  epel          70 k
 perl-IO-Compress-Base                i686           2.020-119.el6_1.1           base          66 k
 perl-IO-Compress-Zlib                i686           2.020-119.el6_1.1           base         133 k
 perl-IO-Multiplex                    noarch         1.13-1.el6                  epel          24 k
 perl-Log-Dispatch                    noarch         2.27-1.el6                  epel          71 k
 perl-Log-Dispatch-FileRotate         noarch         1.19-4.el6                  epel          24 k
 perl-Log-Log4perl                    noarch         1.30-1.el6                  epel         392 k
 perl-MIME-Lite                       noarch         3.027-2.el6                 base          82 k
 perl-MIME-Types                      noarch         1.28-2.el6                  base          32 k
 perl-Mail-Sender                     noarch         0.8.16-3.el6                epel          54 k
 perl-MailTools                       noarch         2.04-4.el6                  base         101 k
 perl-Net-CIDR                        noarch         0.14-1.el6                  epel          17 k
 perl-Net-SNMP                        noarch         5.2.0-4.el6                 epel         100 k
 perl-Net-Server                      noarch         0.97-7.el6                  epel         142 k
 perl-Params-Validate                 i686           0.92-3.el6                  base          75 k
 perl-TimeDate                        noarch         1:1.16-11.1.el6             base          34 k
 perl-URI                             noarch         1.40-2.el6                  base         117 k
 perl-XML-DOM                         noarch         1.44-7.el6                  base         136 k
 perl-XML-Parser                      i686           2.36-7.el6                  base         224 k
 perl-XML-RegExp                      noarch         0.03-7.el6                  base         9.8 k
 perl-YAML-Syck                       i686           1.07-4.el6                  base          75 k
 perl-libwww-perl                     noarch         5.833-2.el6                 base         387 k
 rrdtool-perl                         i686           1.3.8-6.el6                 base          36 k
 sysstat                              i686           9.0.4-18.el6                base         216 k

Transaction Summary
====================================================================================================
Install      37 Package(s)

Total download size: 5.0 M
Installed size: 19 M
Downloading Packages:
(1/37): mailx-12.4-6.el6.i686.rpm                                            | 224 kB     00:01
(2/37): munin-1.4.7-5.el6.noarch.rpm                                         | 124 kB     00:00
(3/37): munin-common-1.4.7-5.el6.noarch.rpm                                  |  71 kB     00:00
(4/37): munin-node-1.4.7-5.el6.noarch.rpm                                    | 375 kB     00:02
(5/37): perl-Compress-Raw-Zlib-2.023-119.el6_1.1.i686.rpm                    |  67 kB     00:00
(6/37): perl-Compress-Zlib-2.020-119.el6_1.1.i686.rpm                        |  43 kB     00:00
(7/37): perl-Crypt-DES-2.05-9.el6.i686.rpm                                   |  19 kB     00:00
(8/37): perl-Date-Manip-6.24-1.el6.noarch.rpm                                | 1.4 MB     00:11
(9/37): perl-Digest-HMAC-1.01-22.el6.noarch.rpm                              |  22 kB     00:00
(10/37): perl-Digest-SHA1-2.12-2.el6.i686.rpm                                |  49 kB     00:00
(11/37): perl-Email-Date-Format-1.002-5.el6.noarch.rpm                       |  16 kB     00:00
(12/37): perl-HTML-Parser-3.64-2.el6.i686.rpm                                | 109 kB     00:00
(13/37): perl-HTML-Tagset-3.20-4.el6.noarch.rpm                              |  17 kB     00:00
(14/37): perl-HTML-Template-2.9-10.el6.noarch.rpm                            |  70 kB     00:00
(15/37): perl-IO-Compress-Base-2.020-119.el6_1.1.i686.rpm                    |  66 kB     00:00
(16/37): perl-IO-Compress-Zlib-2.020-119.el6_1.1.i686.rpm                    | 133 kB     00:01
(17/37): perl-IO-Multiplex-1.13-1.el6.noarch.rpm                             |  24 kB     00:00
(18/37): perl-Log-Dispatch-2.27-1.el6.noarch.rpm                             |  71 kB     00:00
(19/37): perl-Log-Dispatch-FileRotate-1.19-4.el6.noarch.rpm                  |  24 kB     00:00
(20/37): perl-Log-Log4perl-1.30-1.el6.noarch.rpm                             | 392 kB     00:02
(21/37): perl-MIME-Lite-3.027-2.el6.noarch.rpm                               |  82 kB     00:00
(22/37): perl-MIME-Types-1.28-2.el6.noarch.rpm                               |  32 kB     00:00
(23/37): perl-Mail-Sender-0.8.16-3.el6.noarch.rpm                            |  54 kB     00:00
(24/37): perl-MailTools-2.04-4.el6.noarch.rpm                                | 101 kB     00:01
(25/37): perl-Net-CIDR-0.14-1.el6.noarch.rpm                                 |  17 kB     00:00
(26/37): perl-Net-SNMP-5.2.0-4.el6.noarch.rpm                                | 100 kB     00:00
(27/37): perl-Net-Server-0.97-7.el6.noarch.rpm                               | 142 kB     00:01
(28/37): perl-Params-Validate-0.92-3.el6.i686.rpm                            |  75 kB     00:00
(29/37): perl-TimeDate-1.16-11.1.el6.noarch.rpm                              |  34 kB     00:00
(30/37): perl-URI-1.40-2.el6.noarch.rpm                                      | 117 kB     00:00
(31/37): perl-XML-DOM-1.44-7.el6.noarch.rpm                                  | 136 kB     00:00
(32/37): perl-XML-Parser-2.36-7.el6.i686.rpm                                 | 224 kB     00:01
(33/37): perl-XML-RegExp-0.03-7.el6.noarch.rpm                               | 9.8 kB     00:00
(34/37): perl-YAML-Syck-1.07-4.el6.i686.rpm                                  |  75 kB     00:00
(35/37): perl-libwww-perl-5.833-2.el6.noarch.rpm                             | 387 kB     00:02
(36/37): rrdtool-perl-1.3.8-6.el6.i686.rpm                                   |  36 kB     00:00
(37/37): sysstat-9.0.4-18.el6.i686.rpm                                       | 216 kB     00:02
----------------------------------------------------------------------------------------------------
Total                                                               115 kB/s | 5.0 MB     00:44
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : perl-IO-Compress-Base-2.020-119.el6_1.1.i686                                    1/37
  Installing : perl-URI-1.40-2.el6.noarch                                                      2/37
  Installing : munin-common-1.4.7-5.el6.noarch                                                 3/37
warning: user munin does not exist - using root
warning: group munin does not exist - using root
  Installing : 1:perl-TimeDate-1.16-11.1.el6.noarch                                            4/37
  Installing : perl-MailTools-2.04-4.el6.noarch                                                5/37
  Installing : perl-HTML-Tagset-3.20-4.el6.noarch                                              6/37
  Installing : perl-HTML-Parser-3.64-2.el6.i686                                                7/37
  Installing : perl-Net-CIDR-0.14-1.el6.noarch                                                 8/37
  Installing : perl-MIME-Types-1.28-2.el6.noarch                                               9/37
  Installing : perl-Email-Date-Format-1.002-5.el6.noarch                                      10/37
  Installing : perl-MIME-Lite-3.027-2.el6.noarch                                              11/37
  Installing : perl-Mail-Sender-0.8.16-3.el6.noarch                                           12/37
  Installing : perl-YAML-Syck-1.07-4.el6.i686                                                 13/37
  Installing : perl-Date-Manip-6.24-1.el6.noarch                                              14/37
  Installing : perl-XML-RegExp-0.03-7.el6.noarch                                              15/37
  Installing : perl-IO-Multiplex-1.13-1.el6.noarch                                            16/37
  Installing : perl-Net-Server-0.97-7.el6.noarch                                              17/37
  Installing : perl-HTML-Template-2.9-10.el6.noarch                                           18/37
  Installing : perl-Compress-Raw-Zlib-2.023-119.el6_1.1.i686                                  19/37
  Installing : rrdtool-perl-1.3.8-6.el6.i686                                                  20/37
  Installing : perl-Params-Validate-0.92-3.el6.i686                                           21/37
  Installing : perl-Log-Dispatch-2.27-1.el6.noarch                                            22/37
  Installing : perl-Digest-SHA1-2.12-2.el6.i686                                               23/37
  Installing : perl-Digest-HMAC-1.01-22.el6.noarch                                            24/37
  Installing : perl-Log-Dispatch-FileRotate-1.19-4.el6.noarch                                 25/37
  Installing : perl-IO-Compress-Zlib-2.020-119.el6_1.1.i686                                   26/37
  Installing : perl-Compress-Zlib-2.020-119.el6_1.1.i686                                      27/37
  Installing : perl-libwww-perl-5.833-2.el6.noarch                                            28/37
  Installing : perl-XML-Parser-2.36-7.el6.i686                                                29/37
  Installing : perl-XML-DOM-1.44-7.el6.noarch                                                 30/37
  Installing : perl-Log-Log4perl-1.30-1.el6.noarch                                            31/37
  Installing : perl-Crypt-DES-2.05-9.el6.i686                                                 32/37
  Installing : perl-Net-SNMP-5.2.0-4.el6.noarch                                               33/37
  Installing : mailx-12.4-6.el6.i686                                                          34/37
  Installing : sysstat-9.0.4-18.el6.i686                                                      35/37
  Installing : munin-node-1.4.7-5.el6.noarch                                                  36/37
  Installing : munin-1.4.7-5.el6.noarch                                                       37/37

Installed:
  munin.noarch 0:1.4.7-5.el6                     munin-node.noarch 0:1.4.7-5.el6

Dependency Installed:
  mailx.i686 0:12.4-6.el6                           munin-common.noarch 0:1.4.7-5.el6
  perl-Compress-Raw-Zlib.i686 0:2.023-119.el6_1.1   perl-Compress-Zlib.i686 0:2.020-119.el6_1.1
  perl-Crypt-DES.i686 0:2.05-9.el6                  perl-Date-Manip.noarch 0:6.24-1.el6
  perl-Digest-HMAC.noarch 0:1.01-22.el6             perl-Digest-SHA1.i686 0:2.12-2.el6
  perl-Email-Date-Format.noarch 0:1.002-5.el6       perl-HTML-Parser.i686 0:3.64-2.el6
  perl-HTML-Tagset.noarch 0:3.20-4.el6              perl-HTML-Template.noarch 0:2.9-10.el6
  perl-IO-Compress-Base.i686 0:2.020-119.el6_1.1    perl-IO-Compress-Zlib.i686 0:2.020-119.el6_1.1
  perl-IO-Multiplex.noarch 0:1.13-1.el6             perl-Log-Dispatch.noarch 0:2.27-1.el6
  perl-Log-Dispatch-FileRotate.noarch 0:1.19-4.el6  perl-Log-Log4perl.noarch 0:1.30-1.el6
  perl-MIME-Lite.noarch 0:3.027-2.el6               perl-MIME-Types.noarch 0:1.28-2.el6
  perl-Mail-Sender.noarch 0:0.8.16-3.el6            perl-MailTools.noarch 0:2.04-4.el6
  perl-Net-CIDR.noarch 0:0.14-1.el6                 perl-Net-SNMP.noarch 0:5.2.0-4.el6
  perl-Net-Server.noarch 0:0.97-7.el6               perl-Params-Validate.i686 0:0.92-3.el6
  perl-TimeDate.noarch 1:1.16-11.1.el6              perl-URI.noarch 0:1.40-2.el6
  perl-XML-DOM.noarch 0:1.44-7.el6                  perl-XML-Parser.i686 0:2.36-7.el6
  perl-XML-RegExp.noarch 0:0.03-7.el6               perl-YAML-Syck.i686 0:1.07-4.el6
  perl-libwww-perl.noarch 0:5.833-2.el6             rrdtool-perl.i686 0:1.3.8-6.el6
  sysstat.i686 0:9.0.4-18.el6

Complete!

2. On line 60, change the following to your hostname :

[root@centos62 ~]# vi /etc/munin/munin.conf

Original :

# a simple host tree
[x86-06.phx2.fedoraproject.org]
    address 127.0.0.1
    use_node_name yes

Change to :

# a simple host tree
[centos62.ehowstuff.local]
    address 127.0.0.1
    use_node_name yes

3. On line 29, please uncomment and change to your hostname :

[root@centos62 ~]# vim /etc/munin/munin-node.conf

Original :

#host_name x86-06.phx2.fedoraproject.org

Change to :

host_name centos62.ehowstuff.local

4. Change the following and allowed your network to access munin :

[root@centos62 ~]# vim /etc/httpd/conf.d/munin.conf
<directory /var/www/html/munin>
  Order Deny,Allow
  Deny from all
  Allow from 127.0.0.1 192.168.1.0/24
</directory>

5. Restart Apache httpd service :

[root@centos62 ~]# /etc/rc.d/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

5. Start Munin :

[root@centos62 ~]# /etc/rc.d/init.d/munin-node start
Starting Munin Node:                                       [  OK  ]

6. Make munin start at boot :

[root@centos62 ~]# chkconfig munin-node on

7. Access to “http://(hostname or IP address)/munin/” with web browser after 5 minutes later.
munin

How to Reset the Directory Manager Password on RHEL 7 / CentOS 7
How to Reset the Directory Manager Password on RHEL 7 / CentOS 7

It is best practice to remember passwords, but because too many passwords, sometimes we forget. We are not encouraged to write the password on any paper or share the password...

How to Find Big Files Size on Linux RHEL/CentOS
How to Find Big Files Size on Linux RHEL/CentOS

As the linux administrator, sometimes we have to identify which files are most take much space in the linux server resulting in low free space. Low disk space can also...

Why Linux users should worry about malware and what they can do about it
Why Linux users should worry about malware and what they can do about it

Don’t drop your guard just because you’re running Linux. Preventing the spread of malware and/or dealing with the consequences of infection are a fact of life when using computers. If...

How to Reset Forgotten Root Password on Linux RHEL 7 / CentOS 7
How to Reset Forgotten Root Password on Linux RHEL 7 / CentOS 7

This short howto will explain the steps to reset a lost root password or to reset a forgotten root password on Linux RHEL 7 or CentOS 7. Basically, we will...

How to Update CentOS or Upgrade CentOS to the Latest Version
How to Update CentOS or Upgrade CentOS to the Latest Version

Recently, the latest version of CentOS 7.3 was released. All users of CentOS 7.0, 7.1 and 7.2 can upgrade their system to the most recent. This quick guide will explain...

How to Change your WordPress Username, Nickname and Display Name in MySQL
How to Change your WordPress Username, Nickname and Display Name in MySQL

After you create an account log in WordPress, you may want to change your WordPress username, as appropriate or due to security reason. However, you can not do this from...

How to Enable SSH Root Login on Ubuntu 16.04
How to Enable SSH Root Login on Ubuntu 16.04

As what we wrote in the previous article on how to allow SSH root on Ubuntu 14.04, after installing a fresh new copy of Ubuntu 16.04 LTS, we find that...

How to Change UUID of Linux Partition on CentOS 7
How to Change UUID of Linux Partition on CentOS 7

UUID (Universally Unique IDentifier) should be unique and it is used to identify storage devices on a linux system. If you cloned a virtual machine from vCenter, the metadata containing...

Leave a Reply

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