Wednesday, 16 July 2014

Munin How to





 Resource Monitoring Tool:

Here i  will provide instructions for Installing Munin Monitoring Systems  on Redhat 6.

About:

Munin is a resource monitoring tool that can help analyze resource trends and "what just happened to kill our performance?" problems. It is designed to be very plug and play. A default installation provides a lot of graphs with almost no work. 

Installation:

1.Download required Perl modules and munin,munin-node rmpms.
2.rpm -ivh munin-2.0.19-1.el6.noarch (For Munin Master)
3.rpm -ivh rpm -ivh munin-node-2.0.19-1.el6.noarch.rpm (For Munin node)
   create a user : munin and set password.
4.Edit the /etc/munin/munin.conf file and add the servers which require to monitor.
5.Start the service /etc/init.d/munin-node start
6.Edit the /etc/munin/munin-node.conf file on the node servers as below.
7.Configure the Munin plugins to monitor /etc/munin/plugin-conf.d/munin-node
8.Restart the node /etc/init.d/munin-node restart
9.Check the process running or not.
10.To view the munin site type the url:   http://serveripaddress/munin
11.Sample page is like below.

Updating munin configuration without restarting .

#su - munin --shell=/bin/bash
$/usr/share/munin/munin-update --config_file=/etc/munin/munin.conf


Setting Up alerts:

1.Edit the vi /etc/munin/munin.conf

# line 58: add

contact.email.command mail -s "Munin-notification for ${var:host}" <your mailid>

# send notification forcely

2.Run the below to check
su - munin --shell=/bin/bash -c "/usr/share/munin/munin-limits --contact email --force"

Setting Up Threshold values:

vi /etc/munin/munin.conf
# set threshold to target host

[node01.server.world]
   address 10.0.0.101
   use_node_name yes
# warn with 80% of CPU usage, critical with 90%

   cpu.system.warning 80
   cpu.system.critical 90
# warn with 80% of disk usage, critical with 90%

   df._dev_mapper_VolGroup_lv_root.warning 80
   df._dev_mapper_VolGroup_lv_root.critical 80
# wanr with 10 of loginuser, critical with 20

   users.tty.warning 10
   users.tty.critical 20


++++++++++++++++++++++++THANK YOU+++++++++++++++++++++++++++++++++++++


For Online and Class Room Training:-
Our UNIX and Linux/Solaris training courses provide the skills to manage data, execute commands, administer and customize your Linux and UNIX environment.
Please Contact us: +91-8179101478, 8686025550
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




No comments:

Post a Comment

Job chronyd.service/start failed with result 'dependency'

 Job chronyd.service/start failed with result 'dependency' Issue :  CRITICAL: Neither ntpd nor chronyd running. Exiting  Error :  sy...