SDB:Ganglia

Jump to: navigation, search


Tested on openSUSE

Recommended articles


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.

Situation

You want to install Ganglia


Procedure

This article describes several solutions:

with YaST2

Need to check if there are RPMs / Repositories available for this.

on the command line

Prerequisites

RRD
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

Confuse
libConfuse is a configuration file parser library and is required by Ganglia
Please install using Yast - libconfuse-devel

Expat
Expat is an XML 1.0 parser written in C
Yast - libexpat-devel

PCRE
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

$ ./configure --with-gmetad
$ make
$ sudo make install

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

gmond

Generate the initial configuration for gmond by

$ gmond --default_config > gmond.conf


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.

$ gmond --config locationOfgmond.conf

After this you should be able to see the XML description using

$ telnet localhost 8649
gmetad

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

Requirements

Web server

  • apache2
  • apache2-mod_php5
  • PHP is enabled in the configuration files

PHP

  • PHP5
Installation

See also

Related articles

External links