Skip to end of metadata
Go to start of metadata

Ganglia Monitoring Tool

To make it easier to investigate system load and connectivity issues, we recommend using the Ganglia monitoring tool.  Ganglia is an open-source project that grew out of the University of California, Berkeley Millennium Project.  The Ganglia website is http://ganglia.info/.

Installing Base Packages

Every instance you want to monitor should run the ganglia monitoring daemon (gmond).  Aggregated data instance(s) should contain additional packages.

  • Install necessary packages (they are available in the yum repository):
    [root@newinstance ~]# yum install perl libxml2 cairo pango librsvg2 libpng freetype dejavu-lgc-fonts.noarch expat php-gd mod_php
    
  • Install all needed RPMs:
    [root@newinstance ~]# wget -c http://downloads.sourceforge.net/ganglia/ganglia-gmond-3.1.0-1.el4.i386.rpm
    [root@newinstance ~]# wget -c http://downloads.sourceforge.net/ganglia/libganglia-3_1_0-3.1.0-1.el4.i386.rpm
    [root@newinstance ~]# wget -c http://www.ganglia.info/releases/3.1-deps/el4/apr-1.2.8-6.i386.rpm
    [root@newinstance ~]# wget -c http://www.ganglia.info/releases/3.1-deps/el4/libconfuse-2.5-3.i386.rpm
    [root@newinstance ~]# rpm -ivh apr-1.2.8-6.i386.rpm libconfuse-2.5-3.i386.rpm libganglia-3_1_0-3.1.0-1.el4.i386.rpm ganglia-gmond-3.1.0-1.el4.i386.rpm
    
  • Start daemon:
    [root@newinstance ~]# service gmond start
    Starting GANGLIA gmond:                                    [  OK  ]
    

This is all you really need in order to get started.  Repeat these steps for every instance you are going to monitor.  Documentation on how to tune /etc/ganglia/gmond.conf is widely available on the web.  Some useful links can be found at the bottom of the page.

Configuring Ganglia Server

To view the monitoring interface, launch an instance on any server and perform the following steps:

  • Install needed packages:
    [root@newinstance ~]# yum install libart_lgpl-devel
    [root@newinstance ~]# wget -c http://downloads.sourceforge.net/ganglia/ganglia-gmetad-3.1.0-1.el4.i386.rpm
    [root@newinstance ~]# wget -c ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/epel/4/x86_64/rrdtool-1.2.27-3.el4.i386.rpm
    [root@newinstance ~]# wget -c http://downloads.sourceforge.net/ganglia/ganglia-web-3.1.0-1.el4.noarch.rpm
    [root@newinstance ~]# rpm -ivh ganglia-gmetad-3.1.0-1.el4.i386.rpm ganglia-web-3.1.0-1.el4.noarch.rpm rrdtool-1.2.27-3.el4.i386.rpm
    
  • Start daemon; restart Apache:
    [root@newinstance ~]# service gmetad start
    Starting GANGLIA gmetad:                                   [  OK  ]
    [root@newinstance ~]# service httpd restart
    

Now, point your browser to your instance (say, http://8.12.230.88/ganglia/):


  • Edit /etc/ganglia/gmetad.conf to add at least data_source and gridname values.
  • Edit /etc/ganglia/gmetad.conf for cluster name parameter if needed.

Some screenshots



Further reading

How to Set Up Ganglia to Replicate Data Across Sites

RPMs, more RPMs
Installing and configuring
Current Ganglia Release Notes
Needed apr and confuse libs
Additional documentation

As always, please create a ticket at https://portal.appnexus.com/ or contact us at support@appnexus.com if you have any questions or concerns.

  • No labels