Sunteți pe pagina 1din 8

Installation of Ganglia 3.5.

0
Before starting ensure that firewalls are off and SELINUX is Disabled on all the nodes.

To disable selinux: vi /etc/selinux/config

In the file change the following line: SELINUX=disabled

On master Node:

1. Download and Install the following RPM:


a. rrdtool-1.4.5-1.x86_64.rpm
b. rrdtool-devel-1.4.5-1.x86_64.rpm
c. libconfuse-2.6-1.x86_64.rpm
d. compat-expat1-1.95.8-8.el6.x86_64.rpm
e. libganglia-3.5.0-1.x86_64.rpm
f. ganglia-devel-3.5.0-1.x86_64.rpm
g. ganglia-gmond-3.5.0-1.x86_64.rpm
h. ganglia-gmetad-3.5.0-1.x86_64.rpm
i. ganglia-web-3.5.0-1.noarch.rpm

Command to install RPM: rpm –ivh rpm_name

2. Go to /etc/ganglia/gmetad.conf. In this file edit the following line:

data_source “cluster_name” localhost

Note: It is the uncommented line in the file. cluster_name is the name of the cluster
here(example)
3. Go to /etcc/ganglia/gmond.conf. In this file change the following:

cluster {

name = “cluster_name”

4. Start the gmetad and gmond service.


service gmetad start
service gmond start

or
/etc/init.d/gmetad start

/etc/init.d/gmond start

5. To check the status of the gmond and gmetad at any given point of time:

service gmond status

service gmetad status

On client node:

All the nodes that needs to be monitored should have gmond installed.

Note: Here for example dhvanislclient is client node so all the rpms required for ganglia-gmond
are installed in the client.

1. Download and install all the required rpms.

Libconfuse-2.6-1.95.8-8.el6.x86_64.rpm

Compat-expat-1.95.8-8.el6.x86_64.rpm

Libganglia-3.5.0-1.x86_64.rpm

Ganglia-gmond -3.5.0-1.x86_64.rpm

2. Installation steps: For e.g for dhvanislclient node:

[root@dhvanislclient~] rpm –ivh Libconfuse-2.6-1.95.8-8.el6.x86_64.rpm

[root@dhvanislclient~] rpm –ivh Compat-expat-1.95.8-8.el6.x86_64.rpm

[root@dhvanislclient~] rpm –ivh Libganglia-3.5.0-1.x86_64.rpm

[root@ dhvanislclient~] rpm –ivh Ganglia-gmond -3.5.0-1.x86_64.rpm

3. A configuration is to be done in gmond.conf


a. Go to /etc/ganglia/gmond.conf. In this file change the following:

cluster {

name = “cluster_name”
4. Now Start the services

service gmond start

5. Post installation perl rrdtool rpm was installed in the master nodes .

perl-rrdtool-1.4.5-1.el5.rf.x86_64.rpm

rpm –ivh rpm_name


Monitoring two cluster in Ganglia

Here we have two cluster for example: dhvanicluster and mithuncluster.

mithunmaster will monitor both the cluster.

Cluster 1: mithuncluster

Nodes: mithunmaster and mithunclient

Cluster 2: dhvanicluster

Nodes: dhvanislmaster and dhvanislclient

IP of the nodes:

mithunmaster : 192.168.122.211

mithunclient: 192.168.122.212

dhvanislmaster: 192.168.122.216

dhvanislclient: 192.168.122.244

For cluster 1 i.e mithuncluster

Node: mithunmaster and mithunclient

1. vi /etc/gmond.conf
2. Make the following changes
udp_send_channel {
# mcast_join = 192.168.122.211 ( comment this line)
host = 192.168.122.211
port = 8649
ttl = 1
}
udp_recv_channel {
#mcast_join = 192.168.122.211 (comment this line)
port = 8649
#bind = 239.2.11.71 (comment this line)
gmond.conf file for mithunmaster and mithunclient

For node: dhvanislmaster and dhvanislclient

1. vi /etc/ganglia/gmond.conf
2. Make the following changes
udp_send_channel {
# mcast_join = 192.168.122.216 ( comment this line)
host = 192.168.122.216
port = 8649
ttl = 1
}
udp_recv_channel {
#mcast_join = 192.168.122.216 (comment this line)
port = 8649
#bind = 239.2.11.71 (comment this line)
#retry_bind = true (comment this line)
gmond.conf file for dhvanislmaster and dhvanislclient

In the mithunmaster node,

1. vi /etc/gmetad.conf
2. add the following
data_source “dhvanicluster” 192.168.122.216

Note: data_source “mithuncluster” 192.168.122.211 was already added in gmetad.conf file of


mithunmaster.
gmetad.conf file for mithunmaster node

gmetad.conf file for dhvanislmaster node


1. Restart the gmond on all the nodes

service gmond restart

2. Restart the gmetad service on mithunmaster and dhvanislmaster

service gmetad restart

S-ar putea să vă placă și