SG Ganglia Guide
From EGEE-see WIki
Hi,
I am sending the instructions for installation and configuring ganglia monitoring. Similar to GridIce, Ganglia uses two types of nodes. Collective and monitoring. The installtion is very similar for both nodes. Also I have chosen that SE machine is colective node per cluster.
I will start with the installation of Ganglia Monitoring Node.
Source Installation
Both the installtion I will explain involve source installation, since the binary installation requires specific libraries.
You should download ganglia sources from
or directly from this mirror:
2.5.7.tar.gz
After downloading the sources, unpack
tar zxvf ganglia-monitor-core-2.5.7.tar.gz
and afterwards compilation and installation:
./configure make make install
after the installation next step is to put the configuration file, which
unfortunatelly the make install doesn't make.
- Configuration files are attached to this e-mail.
Uncomment and alter the following lines with your values:
# name "My Cluster" # owner "My Organization" # latlong "N32.87 W117.22" --- not necessary # num_nodes 1024
At the end go to the source folder where you have compiled ganglia and execute the following lines:
cp ./gmond/gmond.init /etc/rc.d/init.d/gmond chkconfig --add gmond chkconfig --list gmond /etc/rc.d/init.d/gmond start
Collective node installation
Collective node requires execution of the gmetad service. This service is also installed using the same source that is used for the previous installation.
Before proceeding with the installation you need to install rrdtools on the collective machine since gmetad uses them.
RRDTool can be downloaded from:
r.gz
after unacking using:
tar zxvf rrdtool-1.0.49.tar.gz
install them using the following commands:
./configure [--prefix=/some/other/RRDtool-dir]
--- default installtion is in /usr/local/rrdtool-1.0.49/
make make install
After the installtion unpack the ganglia package and compile using the following commands:
./configure CFLAGS="-I/rrd/header/path" CPPFLAGS="-I/rrd/header/path" LDFLAGS="-L/rrd/library/path" --with-gmetad make make install
where you need to change /rrd/header/path to the include directory of the rrd installation ( if defaults are used should be /usr/local/rrdtool-1.0.49/include ) and /rrd/library/path is the lib directory in the rrd installtion ( if defaults are used should be /usr/local/rrdtool-1.0.49/lib )
This installtion also compiles and installes gmond, so if one needs to also monitor the SE element you should only setup the config file and start the service.
To configure the gmetad you need to make the file /etc/gmetad.conf.
Sample configuration is given in the attachment.
You need only to uncomment and change the following lines:
data_source "my cluster" localhost
--- after localhost add all the ipaddresses of the nodes monitored in your cluster
# gridname "MyGrid"
--- please put gridname "SEE-GRID"
# trusted_hosts xxx.yyy.zzz.uuu xxx1.yyy1.zzz1.uuu1 ...
--- please insert here 194.149.135.31
or
# all_trusted on --- much simpler :-)
At the end go to the source folder where you have compiled ganglia and execute the following lines:
cp ./gmetad/gmetad.init /etc/rc.d/init.d/gmetad chkconfig --add gmetad chkconfig --list gmetad /etc/rc.d/init.d/gmetad start
After successful installing the services please send me the gmetad service ip address.
The ports used by the gmetad are 8651 and 8652 and for gmond is 8649.
Please allow the gmetad to be accessed by 194.149.135.31.
The web site of the ganglia monitoring for SEE-GRID is:
Regards,
Boro.
