Ganglia Monitoring Tool Installation & Configuration Guide

You all may know that Ganglia is an open source monitoring tool for High Performance Computing (HPC) and by default it works on multicast. But It can be used to monitor heterogeneous unix environment as well. Here is the procedure to install & configure the tool to monitor Linux & IBM AIX servers which are interconnected with different network subnets.

Download Packages:

• For Linux:

wget http://download.fedora.redhat.com/pub/epel/5/x86_64/ganglia-gmetad-3.0.7-1.el5.x86_64.rpm
wget http://download.fedora.redhat.com/pub/epel/5/x86_64/ganglia-gmond-3.0.7-1.el5.x86_64.rpm
wget http://download.fedora.redhat.com/pub/epel/5/x86_64/ganglia-web-3.0.7-1.el5.x86_64.rpm
wget http://download.fedora.redhat.com/pub/epel/5/x86_64/ganglia-3.0.7-1.el5.x86_64.rpm

• For AIX:

wget http://www.oss4aix.org/download/ganglia/RPMs-3.0.7/aix53/ganglia-gmond-3.0.7-1.aix5.3.ppc.rpm

Installation on Master Node:

Select a Linux server as master node for the tool & install all the four ganglia rpms for Linux on it.

rpm –ivh ganglia-3.0.7-1.el5.x86_64.rpm
rpm –ivh ganglia-gmond-3.0.7-1.el5.x86_64.rpm
rpm –ivh ganglia-gmetad-3.0.7-1.el5.x86_64.rpm
rpm –ivh ganglia-web-3.0.7-1.el5.x86_64.rpm

Configuration Files Location:

S.No File Description Location
1 Gmond Configuration /etc/gmond.conf
2 Gmetad configuration /etc/gmetad.conf
3 rrd file storage /var/lib/ganglia/rrds/
4 Web files /usr/share/ganglia/
5 Ganglia’s web conf file /etc/httpd/conf.d/ganglia.conf

Configuration on Master Node:

1. Edit /etc/gmond.conf file

a. In cluster tag modify as shown below

cluster {
name = “Cluster Name
owner = “IT team”
latlong = “unspecified”
url = “unspecified”
}

b. In udp_send_channels tag, add master node’s IP address which will communicate to your LAN/WAN.

udp_send_channel {
mcast_join = IP Address of Master Node
port = 8649
}

c. Save & close the file

2. Start the gmond daemon

/etc/init.d/gmond start

3. Run the following command to start the service automatically when the system reboots

chkconfig gmond on

4. Edit /etc/gmetad.conf

a. Add Grid name

gridname “Grid Name

b. Add the datasource as follows

data_source “Cluster Name”  IP Address of Master Node

c. Save & close the file

5. Start the gmetad daemon

/etc/init.d/gmetad start

6. Run the following command to start the service automatically when the system reboots

chkconfig gmetad on

7. Web Server configuration

Upon ganglia-web-3.0.7-1.el5.x86_64.rpm installation, ganglia.conf file will be placed in /etc/http/conf.d folder automatically.

Now web service need to be restarted to access ganglia pages.

server httpd reload

Installation on client nodes:

Install ganglia & ganglia-gmond rpms

rpm –ivh ganglia-3.0.7-1.el5.x86_64.rpm
rpm –ivh ganglia-gmond-3.0.7-1.el5.x86_64.rpm

Configuration on client Nodes :

1. Edit /etc/gmond.conf file

a. In cluster tag modified like this

cluster {
name = “Cluster Name
owner = “IT team”
latlong = “unspecified”
url = “unspecified”
}

b. In udp_send_channels tag, add master node’s IP address

udp_send_channel {
mcast_join = IP Address of Master Node
port = 8649
}

c. udp_recv_channels tag should be like this

udp_recv_channel {
port = 8649
}

d. Save & close the file

2. Start the gmond daemon

/etc/init.d/gmond start

3. Run the following command to start the service automatically when the system reboots

chkconfig gmond on

Repeat the above three steps on all other client nodes.

Installation on Cluster Node (AIX):

Install only ganglia-gmond rpm for AIX 5.3

rpm –ivh ganglia-gmond-3.0.7-1.aix5.3.ppc.rpm

Configuration on Cluster Nodes (AIX)

1. Edit /etc/gmond.conf file

a. In cluster tag modified like this

cluster {
name = “Cluster Name
owner = “IT team”
latlong = “unspecified”
url = “unspecified”
}

b. In udp_send_channels tag, add master node’s IP address

udp_send_channel {
mcast_join =IP Address of Master Node
port = 8649
}

c. udp_recv_channels tag should be like this

udp_recv_channel {
port = 8649
}

d. Save & close the file

2. Start the gmond daemon

/etc/rc.d/init.d/gmond start

Now your Ganglia tool is ready for monitoring. Open web URL http://master-server-ip/ganglia to monitor the configured servers.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s