Installing Ganglia on RHEL
This is a quick follow-up to my earlier post about installing Ganglia from source on SLES. Here we will install Ganglia from precompiled RPMs on an RHEL server. The basic cluster setup for this example remains the same: two clusters: CLUSTER1 and CLUSTER2 with head nodes head_node1 and head_node2. Each compute node runs Ganglia monitoring agent (gmond) and sends data to its respective head node. The main Ganglia server connects to each head node and pulls the performance data.
If your soon-to-be Ganglia server is behind a firewall, you will need to edit YUM’s config file to add you Web proxy. Vi the /etc/yum.conf and add the following:
You will also need to set the http_proxy for your shell:
Now you will need to add the EPEL repository to YUM. To do this, download and install the epel-release-.noarch.rpm RPM appropriate for your RHEL version. Here’s an example:
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm rpm -i epel-release-6-5.noarch.rpm
The next step is to install all the Ganglia packages for your server. These include data collection agent (gmetad), the monitoring daemon (gmond) and the PHP-driven Web front end.
yum install ganglia ganglia-gmetad ganglia-web ganglia-gmond
Once everything has been installed, you will need to edit the /etc/gmetad.conf as discussed in my previous post. You only need to activate the gmetad service. The gmond service is not needed on the Ganglia server in our configuration.
chkconfig gmetad on service gmetad restart
You will also need to activate and start your Apache Web server:
chkconfig httpd on service httpd restart
Now you should be able to access the Ganglia Web interface at http:///ganglia