Installing Ganglia on CentOS

ganglia

In this article we will install the Ganglia monitoring system on a set of machines running CentOS. There are two kinds of machines involved:

  • The meta node: one machine that receives all measurements and presents it to a client through a website.
  • The monitoring nodes: machines that run only the monitoring daemon and send the measurements to the meta node.

Meta node

For this example we assume the meta node has the IP address 192.168.1.253. We start by installing the necessary software:

To enable EPEL for CentOS 5

For 32-bits

For 64-bits

To enable EPEL for CentOS 4For 32-bits

For 64-bits

INSTALL:

If you want to monitor the meta node as well as the monitoring nodes, edit the gmond configuration file /etc/gmond.conf:

Start the gmond service and make sure it starts at boot:

Edit the gmetad configuration file /etc/gmetad.conf:

Start the gmetad service and make sure it starts at boot:

Enable the http daemon, to be able to see the pretty monitoring pictures:

Monitoring nodes

On all the monitoring nodes start by installing the necessary software:

Edit the gmond configuration file /etc/gmond.conf. You can use an exact replica of the gmond configuration file shown for the meta node.
Start the gmond service and make sure it starts at boot:

If you would like to emit your own measurements (called metrics in Ganglia) and view them on the website, call the gmetric program:

To use the output of a program you wrote as a metric, simply call it like this, making sure to use backticks (`) instead of quotes (‘):

Share on FacebookShare on Google+Email this to someoneShare on RedditShare on LinkedInShare on TumblrTweet about this on TwitterShare on StumbleUpon

Leave a Reply

Current ye@r *