Installing Ganglia on Debian

Ganglia is a popular open source cluster monitoring and management system. It allows administrators to keep track of the performance and behavior of clusters of servers. In this tutorial, we will learn how to install Ganglia on Debian latest.

Prerequisites

Before we get started with the installation, make sure to fulfill the following requirements:

Step 1: Installing Ganglia Dependencies

The first step is to install the dependencies required by Ganglia for building and functioning. Open terminal and execute the following command:

sudo apt-get update
sudo apt-get install libapr1 libconfuse-common libconfuse0 libganglia1 libgearman7 libapr1-dev libconfuse-dev libexpat1-dev libganglia1-dev libtool libtool-bin libaprutil1 libaprutil1-dev libconfuse-dev libexpat-dev rrdtool librrd-dev

Step 2: Installing Ganglia

Once you have installed the dependencies, execute the following commands to install Ganglia:

wget https://downloads.sourceforge.net/project/ganglia/ganglia%203.7.2/ganglia-3.7.2.tar.gz
tar xvzf ganglia-3.7.2.tar.gz
cd ganglia-3.7.2
./configure --with-gmetad
make
sudo make install

Step 3: Configuring Ganglia

After installing Ganglia, now it’s time to configure the system to start automatically and set up the gmond and gmetad daemons. You can find the sample configuration files in the installation directory. Copy them to the corresponding system directories, and modify them according to your needs:

sudo cp /usr/local/share/ganglia-webfrontend/default.* /etc/apache2/sites-available/
sudo a2dissite 000-default.conf
sudo a2ensite default.conf
sudo service apache2 restart
sudo cp /usr/local/src/ganglia-3.7.2/gmond/gmond.conf /etc/ganglia/
sudo cp /usr/local/src/ganglia-3.7.2/gmetad/gmetad.conf /etc/ganglia/
sudo cp /usr/local/src/ganglia-3.7.2/gmond/scripts/gmond.init /etc/init.d/gmond
sudo cp /usr/local/src/ganglia-3.7.2/gmetad/scripts/gmetad.init /etc/init.d/gmetad
sudo chmod a+x /etc/init.d/gmond /etc/init.d/gmetad
sudo update-rc.d gmond defaults
sudo update-rc.d gmetad defaults

Step 4: Starting Ganglia Services

After all the configuration has been made, you can start the Ganglia services using the following commands:

sudo service gmond start
sudo service gmetad start

Step 5: Accessing Ganglia Web Interface

You can now access the Ganglia web interface by opening a web browser and typing the following URL:

http://YOUR-SERVER-IP/ganglia

Conclusion

In this tutorial, we have learned how to install Ganglia on a Debian latest server. We also covered how to configure the system to start the daemons automatically and how to access the Ganglia web interface. With Ganglia installed and configured, you can now start monitoring and managing your clusters.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!