Installation and configuration of Gmond in ganglia cluster under CentOS (2)

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.