How to install Munin on RHEL/CentOS/Fedora

Munin on RHEL/CentOS/Fedora

Introduction

Munin is a networked resource monitoring tool that can help analyze resource trends. It has an architecture master/node, built for modularity and plug and play. It shows all the information you need in graphs, through a web interface. The Munin framework is written in Perl, and uses RRDTool.

Prerequisites

In order to run Munin, you have to satisfy the following requirements:

  • Perl 5.10 or newer
  • A web server (this is optional, but we’ll use Apache in this tutorial)

Installation

In order to install Munin on RedHat, CentOS or Fedora, you need the EPEL repository.
Then, just:

# yum install munin-node

on all nodes, and

# yum install munin

on the master.

Install Apache Web Server

If it’s not already installed, install Apache:

# yum install httpd

and then, enable it:

# systemctl enable httpd
# systemctl start httpd

Configuration

Node

First, decide which plugins you want to use. The easiest solution is to run the following command:

munin-node-configure --shell --families=contrib,auto | sh -x

After this, you have to configure access. By default, munin node listens on all interfaces, but has a restrictive access list. So, you have to add your Munin master’s IP address, using the cidr_allow statement.
For more information about the syntax, just see Net::Server.

At this point, you cant start the node agent as root.

Master

In the master, you have to add some nodes on /etc/munin/munin.conf configuration file. The syntax is INI-like.

Conclusion

That’s it! If you’ve followed the steps correctly, you now have a resource monitoring tool which will make a huge difference in your work. Enjoy!