Installation of Munin and Munin-Node

Munin is network monitoring tool for servers. It uses RRDTool, an open source used to generate graphics and logging server activities.

I am installing and configuring munin on centos 5 x86_64 using yum.
1)First of all, we need to add a RPMforge repository.

rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

2)Installing yum

yum -y install munin

3)chaning the ownership of munin web docroot to munin, as by default it goes to root.

chown -R munin:munin /var/www/munin/

4)Restart Apache and Crond to test the succesful instllation of munin

  /sbin/service httpd restart
  /sbin/service crond restart

5)Check if munin is installed up and running
  http://yourserver.com/munin/
( a trailing slash is needed )
6)Editing munin.conf file
vi /etc/munin/munin.conf

##change htmldir to respecting munin installed directory##
for us it is
htmldir /var/www/munin/

##by default the conf file has /var/www/html/munin/##

Thats all is needed for munin installation.

Adding a Node

1) Installing munin-node

yum -y install munin-node

2) Staring munin-node daemon
/etc/init.d/munin-node start

Some configurations on munin.conf for nodes

/etc/munin/munin.conf

a host tree for local host
[myserver.localhost]
address 127.0.0.1
use_node_name yes

Munin can be used to monitor more than one server from the same place.
For this munin-node needs to be installed on the other servers and host tree should be added on munin.conf .

Few things to keep in mind.

Adding munin-node on chkconfig for all nodes.
Adding Cron for munin on graph server.
Restarting Munin-node after any changes on the files.

Comment