Installing and configuring Ganglia

-->
Prerequisites:
· A server , say MASTER , with RHEL version installed, I used RHEL 4
· Install the below packages (rpms)
1. ganglia-web-3.0.6-1.el4
2. ganglia-3.0.6-1.el4
3. ganglia-gmond-3.0.3-1
4. ganglia-gmetad-3.0.6-1.el4
Scenario:
We will setup a basic architechture, Though I had finally worked on a multi tier architecture of it. Incase any issue please feel free to post, maybe I can be of any help.
Configurations on Master:
Once you install the above packages, you need to run the below commands to start the services. Once started you can check by opening http://master/ganglia

$/etc/init.d/gmetad start
$/etc/init.d/httpd start
$ vi /etc/gmond.conf
You can mention the name of the cluster being monitored as below:
/* If a cluster attribute is specified, then all gmond hosts are wrapped inside
* of a tag. If you do not specify a cluster tag, then all will
* NOT be wrapped inside of a tag. */
cluster {
name = "Test Cluster"
owner = "My Team"
}
$ /etc/init.d/gmond start
-->
Configuration on cluster hosts:
For cluster hosts to send data to the master, you need to install gmond clients on all of the hosts.
Once you install the clients , you have to edit the /etc/gmond.conf file for pointing these hosts to update MASTER with the status. Please see below:
$ rpm –ivh ganglia-gmond-3.0.3-1.rpm
$ vi /etc/gmond.conf
/* If a cluster attribute is specified, then all gmond hosts are wrapped inside
* of a tag. If you do not specify a cluster tag, then all wi
ll
* NOT be wrapped inside of a tag. */
cluster {
name = "Test Cluster"
owner = "My Team"
latlong = "unspecified"
url = "unspecified"
}

The other change is for specifying the udp_SEND_channels
/* Feel free to specify as many udp_send_channels as you like. Gmond
used to only support having a single channel */
udp_send_channel {
# mcast_join = 239.2.11.71
host = (Master IP)
port = 8649
}
Now once you are done with all the configurations , you just need to wait for a while, it takes some time for the master to fetch the data and then create RRDs (graphs) for the hosts.
Then open http://master/ganglia and there you go, you are now monitoring your hosts with ganglia.
Happy Monitoring, enjoy

Cheerz.
Ash

Comments