Installing and configure Munin Monitoring (Centos 6)

to get some performance data from my server i use Munin monitroing system.
And here is i samm guide how to install and set up munin on the munin serer and on the munin client.

First up is to setup the munin server

yum install munin munin-node <-- on server

yum install munin-node <-- on clients

i install both the munin server and node on the same host so i can monitor the host that the munin server is on.

Now when the package is install lets add some host to monitor on the server.
Here is my conf for my server. As you se my admin.elinodrift.se has the munin server on the same server. so then i use localhost

[admin.elinodrift.se]
 address 127.0.0.1
 use_node_name yes
[eu1.elinodrift.se]
 address 10.8.0.2
 use_node_name yes

So now my munin server is ready time for setting up the munin node.
Open the file /etc/munin/munin-node.conf in this file there are two importent things.

host_name admin.elinodrift.se  <— set this to same name you gave the client on the munin server

allow ^127\.0\.0\.1$ <— Add your munin server ip here so its allow to connect

Save and restart you munin klient

/etc/init.d/munin-node restart

test from you munin server to run

telnet ip to munin client 4949

and you should se so that the munin server can connect to the munin client.

So now we have a working conenctio between the munin server and the munin nodes.
So lets get some service to monitor.

cd /etc/munin/plugins/

In this folder you add the plugins you want to monitor. So for adding new plugins link in new plugins.

ln -s /usr/share/munin/plugins/name of plugin .

When you have added the plugins you want. Its time to test so that the plugins works. Run the node plugin test to verify

munin-node-configure

If you plugins need config look in the folder /etc/munin/plugin-conf.d/
After you added the plugin you want you can restart the muni-node and wait for the stats to update.