This article illustrates the installation of Ganglia on openSuse 12.1. This is still work in progress at this point and I will be updating based on how I progress.
You want to install Ganglia
This article describes several solutions:
Need to check if there are RPMs / Repositories available for this.
on the command line
RRD is required in case we want to have gmetad ().
Install RRD which is a pre-requisite for Ganglia. You should be able to do this using Yast, search and install rrdtool and rrdtool-devel in case we are doing a tarball installation of Ganglia
Apache Portable Runtime (APR) Library
APR is required, please use Yast to install libapr1 and libapr1-devel
libConfuse is a configuration file parser library and is required by Ganglia
Please install using Yast - libconfuse-devel
Expat is an XML 1.0 parser written in C
Yast - libexpat-devel
Perl-compatible regular expressions
Yast - pcre-devel
Install Ganglia Core
For the installation I am assuming that we would want to have gmetad installed.
Download Ganglia Core from http://sourceforge.net/projects/ganglia/files/ganglia%20monitoring%20core/ Extract the archive file
If no errors are received then the following should be available
gstat - /usr/local/bin
gmetric - /usr/local/bin
gmond - /usr/local/sbin
gmetad - /usr/local/sbin
Configuring Ganglia Core
After the installation is complete without errors do the following:
Add the /usr/local/bin and /usr/local/sbin to the PATH variable in /etc/profile.local
Generate the initial configuration for gmond by
The initial configuration file is also deployed in /usr/local/etc
Edit the configuration file and correct the paths to the modules. These should be available in the modules section of the file.
These files are available in /usr/local/lib64/ganglia in case of 64bit
Run gmond for the first time using this default config the user that is used to run this should have access to run tasks as user defined in the configuration file.
After this you should be able to see the XML description using
The initial configuration file for gmetad should also be available in /usr/local/etc as gmetad.conf
The most important configuration in this for the moment is the data_source configuration. Give the name of the cluster the source of data for the cluster.
PHP Web Frontend
- PHP is enabled in the configuration files