Get ready for work. See the installation and configuration of the gmond of ganglia under CentOS
Ganglia installation package is still used in the previous article mentioned in the ganglia-3.4.0
#cd ganglia-3.4.0
#./configure–prefix=/opt/modules/ganglia–with-static-modules–enable-gexec–enable-status–with-gmetad– with-python=/usr–with-librrd=/usr/local/rrdtool–with-libexpat=/usr–with-libconfuse=/usr/local–with-libpcre=/ Usr/local
#make && make Install
#cd Gmetad
#cp gmetad.conf/opt/modules/ganglia/etc/
#cp Gmetad.init/etc/init.d/gmetad
Open the Gmetad configuration file and modify the following:
#vi/etc/init.d/gmetad
Will Gmetad=/usr/bin/gmetad
Change to Gmetad=/opt/modules/ganglia/sbin/gmetad
#chkconfig –add Gmetad
Create a rrds directory and set permissions
#mkdir-P/var/lib/ganglia/rrds
#chown nobody:nobody/var/lib/ganglia/
Configure Gmetad
#vi/opt/modules/ganglia/etc/gmetad.conf
Add the following content:
Data_source "ZSX" localhost:8649 xxx.xxx.xxx.xxx:8649
Setuid_username "Root"
Rrd_rootdir "/usr/local/rrdtool"
Note: Data_source can be set one or more, if multiple settings, cluster information will be backed up to multiple hosts
Start Gmetad
#service Gmetad Start
Check if Gmetad is starting normally
#netstat-TNLP |grep Gmetad
If normal, there will be two Gmetad, 8651 and 8652 ports, respectively.