How To Install ganglia-nagios-bridge on Ubuntu 18.04

In this tutorial we learn how to install ganglia-nagios-bridge on Ubuntu 18.04. ganglia-nagios-bridge is cluster monitoring toolkit - scalable Nagios integration

Introduction

In this tutorial we learn how to install ganglia-nagios-bridge on Ubuntu 18.04.

What is ganglia-nagios-bridge

ganglia-nagios-bridge is:

ganglia-nagios-bridge brings Ganglia and Nagios together, taking the metrics from Ganglia agents, applying thresholds, deciding when they are in a bad state and mapping them to service definitions in Nagios. Nagios can then display the network state, highlight hotspots and raise notifications in the usual manner.

Using regular expressions in the ganglia-nagios-bridge config and the nagios config files it is possible to enable alerting for thousands of hosts very quickly, with less than 50 lines of config in total.

There are three methods to install ganglia-nagios-bridge on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ganglia-nagios-bridge Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ganglia-nagios-bridge using apt-get by running the following command:

sudo apt-get -y install ganglia-nagios-bridge

Install ganglia-nagios-bridge Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ganglia-nagios-bridge using apt by running the following command:

sudo apt -y install ganglia-nagios-bridge

Install ganglia-nagios-bridge Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ganglia-nagios-bridge using aptitude by running the following command:

sudo aptitude -y install ganglia-nagios-bridge

How To Uninstall ganglia-nagios-bridge on Ubuntu 18.04

To uninstall only the ganglia-nagios-bridge package we can use the following command:

sudo apt-get remove ganglia-nagios-bridge

Uninstall ganglia-nagios-bridge And Its Dependencies

To uninstall ganglia-nagios-bridge and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove ganglia-nagios-bridge

Remove ganglia-nagios-bridge Configurations and Data

To remove ganglia-nagios-bridge configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ganglia-nagios-bridge

Remove ganglia-nagios-bridge configuration, data, and all of its dependencies

We can use the following command to remove ganglia-nagios-bridge configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ganglia-nagios-bridge

References

Summary

In this tutorial we learn how to install ganglia-nagios-bridge package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.