Install and configure ganglia in CentOS

Source: Internet
Author: User
1. install the dependent packages related to the prerequisites. installation process monitoring node installation 1. yuminstall-ygangliaganglia-gmetadganglia-webganglia-gmond2. modify/etc/ganglia/gmetad. confdata_source & ldquo; Hadoop & rdquo; {host IP 1. prerequisites

Install related dependency packages

2. install monitoring nodes during installation

1. yum install-y ganglia-gmetad ganglia-web ganglia-gmond
2. modify/etc/ganglia/gmetad. conf
Data_source "Hadoop" {host IP}: 8649
Hadoop indicates the cluster name.
3. modify/etc/ganglia/gmond. conf
Cluster {
Name = "Hadoop"
...
}
Udp_send_channel {// use host as unicast, and mcast_join is Multicast
Host = {host IP}
Port = 8649
Ttl = 1
}
Udp_recv_channel {// If standalone broadcast is used, delete "mcast_join" and "bind"
Port = 8649
}
4. set the boot collection process
Chkconfig-level 235 gmond on
Chkconfig-level 235 gmetad on
Chkconfig-level 235 httpd on

Installed on monitored nodes

1. yum install-y ganglia-gmond
2. copy the gmond. conf file of the monitoring node to each node.
3. set the data collection process to run at startup:
Chkconfig-level 235 gmond on

Test startup

Server:
Servcie gmond on
Service gmetad on
Service httpd on
Client:
Service gmond on

Common errors

1. Forbidden You don't have permission to access/ganglia on this server.
The configuration in the/etc/httpd/conf. d/ganglia. conf file is incorrect,
Just comment out the original content.


  
     Order deny,allow#  Deny from all#  Allow from 127.0.0.1#  Allow from ::1# Allow from .example.com
  

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.