Key concepts: gmond daemons run on every server and use C code to collect the server's stats; this data is stored in local memory. Multiple gmonds can send their data on to one central gmond to hold, call this a gmond "bank"; this "bank" also uses only memory to store the server stats. gmetad comes along and collects the data from the gmond "banks" and stores in it rrds, these are files; the web interface uses these rrd files, and it usually runs on the same server as gmetad.
Cluster name: cluster name is key in grouping data and getting it from gmond to gmond and then on to gmetad. data_source is the way gmetad find the "banks"; and, by the way, you can have redundant "banks" for one cluster data_source.
Getting rid of multicast settings: comment out all references to multicast: bind_hostname, mcast_join, bind. Comment them all out.
UDP vs TCP, and port 8649: port 8649 is the default. UDP traffic on port 8649 is used for gmond intercommunication. And TCP traffic on port 8649 is used by the gmetad daemon to pull data from all your gmond "banks". Run "tcpdump -i any -nn port 8649" ALL THE TIME ON EVERY SERVER in a separate terminal when debugging.
Source: http://www.admin-magazine.com/HPC/Articles/Monitoring-HPC-Systems
- mkdir ganglia_rpms
- cd ganglia_rpms/
- wget http://vuksan.com/centos/RPMS-6/x86_64/ganglia-gmond-3.6.0-1.x86_64.rpm
- wget http://vuksan.com/centos/RPMS-6/x86_64/libganglia-3.6.0-1.x86_64.rpm
- wget http://vuksan.com/centos/RPMS-6/x86_64/ganglia-debuginfo-3.6.0-1.x86_64.rpm
- wget http://vuksan.com/centos/RPMS-6/x86_64/ganglia-devel-3.6.0-1.x86_64.rpm
- wget http://vuksan.com/centos/RPMS-6/x86_64/ganglia-gmetad-3.6.0-1.x86_64.rpm
- wget http://vuksan.com/centos/RPMS-6/x86_64/ganglia-gmond-modules-python-3.6.0-1.x86_64.rpm
- wget http://vuksan.com/centos/RPMS-6/x86_64/libconfuse-2.6-2.el6.rf.x86_64.rpm
- wget http://vuksan.com/centos/RPMS-6/x86_64/libconfuse-devel-2.6-2.el6.rf.x86_64.rpm
- yum localinstall ganglia-*.rpm lib*.rpm
- yum install httpd
- yum install php
- cd
- mkdir ganglia-web-dev
- cd ganglia-web-dev/
- wget http://downloads.sourceforge.net/project/ganglia/ganglia-web/3.5.12/ganglia-web-3.5.12.tar.gz
- tar zxvf ganglia-web-3.5.12.tar.gz
- cd ganglia-web-3.5.12
- vi Makefile
- GDESTDIR = /var/www/html/ganglia
- APACHE_USER = apache
- make install
- cp apache.conf /etc/httpd/conf.d/ganglia.conf
- vi /etc/httpd/conf.d/ganglia.conf
- /usr/share/ganglia-webfrontend -> /var/www/html/ganglia
- service httpd start
- setenforce 0
- not needed on Amazon Linux
- vi /etc/ganglia/gmond.conf
- vi /etc/ganglia/gmetad.conf
- service gmond start
- service gmetad start
No comments:
Post a Comment
Note: only a member of this blog may post a comment.