How To Install syslog-nagios-bridge on Ubuntu 18.04

In this tutorial we learn how to install syslog-nagios-bridge on Ubuntu 18.04. syslog-nagios-bridge is Syslog to Nagios integration

Introduction

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

What is syslog-nagios-bridge

syslog-nagios-bridge is:

syslog-nagios-bridge brings Syslog and Nagios together, listening for Syslog events from the network, determining when they meet an error threshold, mapping the host and syslog tag value to a Nagios service definition and submitting a passive checkresult to Nagios.

Users clear the alerts manually through the Nagios web UI after checking the log and resolving the problem.

There are three methods to install syslog-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 syslog-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 syslog-nagios-bridge using apt-get by running the following command:

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

Install syslog-nagios-bridge Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install syslog-nagios-bridge

Install syslog-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 syslog-nagios-bridge using aptitude by running the following command:

sudo aptitude -y install syslog-nagios-bridge

How To Uninstall syslog-nagios-bridge on Ubuntu 18.04

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

sudo apt-get remove syslog-nagios-bridge

Uninstall syslog-nagios-bridge And Its Dependencies

To uninstall syslog-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 syslog-nagios-bridge

Remove syslog-nagios-bridge Configurations and Data

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

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

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

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

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

References

Summary

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