How to install Munin Monitoring systems


e will provide instructions for Installing Munin Monitoring Systems on Ubuntu and Centos/Fedora/Redhat. Munin is a monitoring system that will provide you with your Server stats on a simple to read website.

There are two parts of Munin Monitoring Software, Munin Master and Munin node. Muninin Server is the software website and configuration for what stats are pulled and what domains are monitored. Munin Node is the actual software that monitors the server and produces the stats for Munin Master.

You can find official documentation here.

Example of Munin Monitoring:

Example of Munin Monitoring

Installing Munin Server:


sudo aptitude update
sudo aptitude install munin munin-node


To add the EPEL repository to your yum list. run:

sudo rpm -Uvh

With the repository in place, install munin with:

yum install munin-node
yum install munin-server


Install munin using the YaST -> Software -> Software Management or by using zypper:

zypper in munin munin-node

Configuring munin server:

munin.conf is the configuration file for all scripts of Munin Master. It is ussually located in /etc/munin/. The programs using it are munin-update, munin-graph, munin-limits and munin-html.

Configuring munin.conf: Official Documentation:

Two parts you need to worry about in the munin.conf file. First Server Variables, Second is Host settings.

Server variables:

Set htmldir to a directory within your document root (ie. /var/www/munin or /var/www/html/munin)

Munin.conf snippet:

# The next three variables specifies where the location of the RRD
# databases, the HTML output, and the logs, specifically.
# They all must be writable by the user running munin-cron.
dbdir   /var/lib/munin
htmldir /var/www/munin
logdir  /var/log/munin
rundir  /var/run/munin

Host Definitions:

Find the section in brackets: [] This sets your host .

For localhost use, for other external nodes(servers) use the ip address x.x.x.x.

    use_node_name yes

Configruing munin-node.conf:

Official Documentation:

You need to set the user and group in the munin-node.conf file.

Here is an example of the munin-node.conf file.

Munin-node.conf snippet:

log_level 4
log_file /var/log/munin/munin-node.log

# Which port to bind to;
port 4949
pid_file /var/run/munin/
background 1
setseid 1

host *
user root
group root
setsid yes

Remember to open port 4949 in iptables so the munin node can receive connections from the munin master.

Setting up munin-node to load on boot.

Munin-node is what grabs the data for the node(server). We need to set this to load on each server you are running.

To set munin-node to run at boot:


chkconfig --add munin-node

Next start munin-node:

service munin-node start

Ubuntu / Debian:

update-rc.d munin-node defaults

Next start munin-node:


Munin-node can take up to 24 hours to start showing data.


insserv munin-node

Next start munin-node:


Using Munin:

To view the munin site browse to the ip/htmldir variable in your /etc/munin/munin.conf file.


htmldir /var/www/munin

Then visit your munin page by entering its URL in a browser: http://[ip address]/munin

overview example

Views: 24


What is the capital of Egypt? ( Cairo )