CentOS 6.5 yum install Ganglia
Install Ganglia on yum in CentOS 6.5.
Note: The following operations are only performed on one machine:
1. install php support
Yum install php-common php-cli php-gb php
2. Install ganglia and Its Related Components
Server: yum install rrdtool-devel ganglia-web ganglia-gmetad ganglia-gmond-python httpd apr-devel zlib-devel libconfuse-devel expat-devel pcre-devel
Client: yum install ganglia-gmond
3. Related Configuration
Modify/etc/ganglia/gmond. conf
Cluster {
Name = "Cynric" // The name of the entire cluster.
}
Dup_send_channel {
Host = 127.0.0.1 // the host is in Unicast mode.
}
Udp_recv_channel {
Port = 8649 // If the unicast mode is used, delete the mcast_join and bind options.
}
Client
Modify the/etc/ganglia/gmetad. conf file
Data_source "Cynric" localhost // Cynric is the name of the cluster in gmond. conf. localhost must be the ip address of the server.
Setuid_username "nobody"
4. Create the rrds directory
Mkdir-p/var/lib/ganglia/rrds
Chown nobody: nobody/var/lib/ganglia/rrds
Chmod a + w/var/lib/ganglia/rrds
5. Disable SELinux or you will not be able to access the monitored web page.
Vi/etc/selinux/config
SELINUX = disable
The above method needs to restart the machine
You can enter setenforce 0 on the terminal.
6. Start Related Services
Service gmond start
Service gmetad start
Service httpd restart
7. enter 127.0.0.1/ganglia in the browser to check whether the request is successful.
8. allow external machines to access the local ganglia
Modify/etc/httpd/conf/httpd. conf, add the following information at the end of the price, and restart the httpd service.
<Location/ganglia>
# Ganglia Server
Order deny, allow
Deny from all
Allow from all
</Location>
9. For more information, see
Expand the Python module under Ganglia 3.1.x (translated from the official wiki)
Use Ganglia to monitor Hadoop Clusters
Install and configure Hadoop and Ganglia in Ubuntu of VMware Workstation
Create a Grid
Ganglia installation tutorial yum
Ganglia Quick Start Guide (translated from the official wiki)
Install Ganglia-3.6.0 monitoring Hadoop-2.2.0 and HBase-0.96.0 on CentOS Cluster
Install Ganglia on CentOS 6.5
Install Ganglia on Ubuntu 14.04 Server
This article permanently updates the link address: