1. Preparing the installation package
ganglia-3.7.2-2.el6.x86_64.rpm
ganglia-gmetad-3.7.2-2.el6.x86_64.rpm
ganglia-gmond-3.7.2-2.el6.x86_64.rpm
ganglia-gmond-python-3.7.2-2.el6.x86_64.rpm
ganglia-web-3.7.1-2.el6.x86_64.rpm
2. Required Dependency Packages
libconfuse-2.7-4.el6.x86_64.rpm
rrdtool-1.3.8-6.el6.x86_64.rpm
rrdtool-devel-1.3.8-6.el6.x86_64.rpm
php-bcmath-5.3.3-22.el6.x86_64.rpm
php-process-5.3.3-22.el6.x86_64.rpm
php-zendframework-1.11.10-1-mdv2012.0.noarch.rpm
3. Installation
RPM-IVH ganglia-3.7.2-2.el6.x86_64.rpm
RPM-IVH ganglia-gmond-3.7.2-2.el6.x86_64.rpm
RPM-IVH ganglia-gmond-python-3.7.2-2.el6.x86_64.rpm
RPM-IVH ganglia-gmetad-3.7.2-2.el6.x86_64.rpm
Yum Install ganglia-web-3.7.1-2.el6.x86_64.rpm (Web recommended with Yum installation, involving some of the mirror's own installation packages, more convenient)
Yum Install httpd
4. Configuration
Local want to install a Gmetad high availability, because the project production in the installation of the ganglia foreground icon has a regular disconnection phenomenon, the reason for the initial suspicion of network problems, but want to consider the optimization scheme from the ganglia itself.
①gmetad.conf
HDP1:
Data_source "Zhj" localhost
Gridname "ZHJ"
HDP2:
Data_source "Zhj" Hdp1
Gridname "ZHJ"
②gmond.conf
HDP1:
Cluster {
Name = "Zhj"
Owner = "Unspecified"
Latlong = "Unspecified"
url = "Unspecified"
}
Udp_send_channel {
#bind_hostname = yes # highly recommended, soon to is default.
# This option tells Gmond to use a source address
# That's resolves to the machine ' s hostname. Without
# This, the metrics could appear to come from any
# interface and the DNS names associated with
# those IPs would be used to create the rrds.
#mcast_join = 239.2.11.71
Host = 172.16.196.141
Port = 8649
#ttl = 1
}
/* You can specify as many udp_recv_channels as. */
Udp_recv_channel {
#mcast_join = 239.2.11.71
Port = 8649
#bind = 239.2.11.71
#retry_bind = True
# Size of the UDP buffer. If You is handling lots of metrics you really
# should bump it up to e.g. 10MB or even higher.
# buffer = 10485760
}
Tcp_accept_channel {
Port = 8649
# If you want to gzip XML output
Gzip_output = No
}
HDP2, HDP3:
Cluster {
Name = "Zhj"
Owner = "Unspecified"
Latlong = "Unspecified"
url = "Unspecified"
}
Udp_send_channel {
#bind_hostname = yes # highly recommended, soon to is default.
# This option tells Gmond to use a source address
# That's resolves to the machine ' s hostname. Without
# This, the metrics could appear to come from any
# interface and the DNS names associated with
# those IPs would be used to create the rrds.
#mcast_join = 239.2.11.71
Host = 172.16.196.141
Port = 8649
#ttl = 1
}
/* You can specify as many udp_recv_channels as. */
Udp_recv_channel {
#mcast_join = 239.2.11.71
# Port = 8649
#bind = 239.2.11.71
#retry_bind = True
# Size of the UDP buffer. If You is handling lots of metrics you really
# should bump it up to e.g. 10MB or even higher.
# buffer = 10485760
}
Tcp_accept_channel {
#port = 8649
# If you want to gzip XML output
Gzip_output = No
}
③gweb
RPM Package The default installation address is/usr/share/ganglia
Node: HDP1
configuration file to be modified:
Vi/etc/httpd/conf.d/ganglia.conf
Alias/ganglia/usr/share/ganglia
<Location/ganglia>
Order Deny,allow
#Deny from all
Allow from all
Allow from 127.0.0.1
Allow from:: 1
# Allow from. example.com
</Location>
VI/ etc/httpd/conf/httpd.conf
Namevirtualhost *:80
#
# Note:namevirtualhost cannot be used without a port specifier
# (e.g.:) If Mod_ssl is being used, due to the nature of the
# SSL protocol.
#
#
# VirtualHost Example:
# Almost any Apache directive could go into a VirtualHost container.
# The first VirtualHost section was used for requests without a known
# server name.
#
<virtualhost *:80>
# ServerAdmin [email protected]
Documentroot/usr/share/ganglia
ServerName Myganglia
# errorlog Logs/dummy-host.example.com-error_log
# Customlog Logs/dummy-host.example.com-access_log Common
</VirtualHost>
5. Start
HDP1-HDP3 sequentially
Service Gmond Start
Hdp1-2 sequentially
Service Gmetad Start
Hdp1
Service httpd Start
6. Verify the results
ganglia3.7.2,web3.7.1 Installation