Search This Blog

Tuesday 23 February 2010

Ganglia monitoring tool for UNIX Data centers - Installing and configuring

Ganglia monitoring tool for UNIX Data centers
Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and Grids. It is based on a hierarchical design targeted at federations of clusters. It leverages widely used technologies such as XML for data representation, XDR for compact, portable data transport, and RRDtool for data storage and visualization.

Server side we required below packages.
Server Side configuration:
1. Installation of required packages.
Below packages and dependencies are required in ganglia server.
Packages
CSKamp_1.3.1_sparc.pkg ->coolstack apache server
ganglia-3.0.7-sol10-sparc-local ->ganglia package (required both client server side)
rrdtool-1.2.19-sol10-sparc-local -> high performance data logging and graphing system
Dependancies and libraries
libart_lgpl-2.3.19-sol10-sparc-local
libgcc-3.4.6-sol10-sparc-local
libpng-1.2.41-sol10-sparc-local
pkgutil-1.2.1,REV=2008.11.28-SunOS5.8-sparc-CSW.pkg
freetype-2.3.9-sol10-sparc-local
CSKruntime_1.3.1_sparc.pkg
zlib-1.2.3-sol10-sparc-local
2. Configure for the first time
When we start ganglia for first time, it is required to create default configuration file by using below command
root@server#/usr/local/sbin/gmond –default >/etc/gmond.conf
Edit configuration for listening to port for accepting client data
Edit /etc/gmond.conf of server as below. Here I give Sulay as my cluster name
Cluster {
name = "SULAY"
owner = "unixadmin"
latlong = "unspecified"
url = "unspecified"
}
host {
location = "SULAY"
}
udp_recv_channel {
port = 8649
family = inet4
}
tcp_accept_channel {
port = 8649
}
3. Creat a file named /etc/gmetad.conf with below data
data_source "SULAY" localhost
4. Configuring apache.
By default apache coolstack is getting inslled on /opt/coolstack/apache2 path.
You have to change the default page of apache to the ganglia web page by editing below two lines on /opt/coolstack/apache2/conf/httpd.conf
#This is where apache looks for default page.
DocumentRoot "/usr/local/doc/ganglia/web"
#this is the path for default directory.
5. Restart/enable apache
root@server#svcadm restart svc:/network/http:apache22-csk
root@server#svcadm enable svc:/network/http:apache22-csk
6. Starting gmond and gmetad
root@server#/usr/local/sbin/gmond
root@server#/usr/local/sbin/gmetad
7. Verifying the running deamon, you can see both deamons are running . if you have any issue with starting , start execute above command with --debug=9 options (eg: /usr/local/sbin/gmond –debug=9) will give a verbose output.
root@server#ps -ef|grep gm
nobody 19037 1 0 Feb 02 ? 94:12 /usr/local/sbin/gmond
nobody 19090 1 1 Feb 02 ? 1416:22 /usr/local/sbin/gmetad
8. Create a startup script for starting these both applications while machine comes up.
Create this /etc/rc3.d/S99ganglia with blow contend
/usr/local/sbin/gmond
/usr/local/sbin/gmetad
9. Change the permission of this file to executable
root@server#Chmod a+x /etc/rc3.d/S99ganglia
10. Now you can browse the ganglia portal by typing the ip or host name of the ganlia server in the browser.
You will get a windows similar to below
If you click any of the graph related to individual host



Client Side configuration.
1. Install required package.
ganglia-3.0.7-sol10-sparc-local
2. Creating configuration file
/usr/local/sbin/gmond -–default >/etc/gmond.conf
3. Editing etc/gmond.conf for sending packet to server.
No need of accept and receive channel settings in client side. Edit below lines in client configuration file.
Cluster {
name = "SULAY"
owner = "unixadmin"
latlong = "unspecified"
url = "unspecified"
}
host {
location = "SULAY"
}
udp_send_channel {
host =
port = 8649
ttl = 1
}
4. Creating startup file for client.
Create this /etc/rc3.d/S99ganglia with blow contend
/usr/local/sbin/gmond
5. Change the permission of this file to executable
Chmod a+x /etc/rc3.d/S99ganglia
6. Verifying client gmond is running
root@client# ps -ef|grep gm
nobody 5152 1 0 Feb 06 ? 3:28 /usr/local/sbin/gmond
As soon as the application started in a client, this client will be visible in ganglia portal.

No comments:

Post a Comment