How To Install nsca on Ubuntu 18.04
Introduction
In this tutorial we learn how to install nsca on Ubuntu 18.04.
What is nsca
nsca is:
This addon allows you to send service check results to a central monitoring server running Nagios in a reasonably secure manner.
Nagios is a monitoring and management system for hosts, services and networks.
Nagios’ features include:
- Monitoring of network services (via TCP port, SMTP, POP3, HTTP, NNTP, PING, etc.)
- Plugin interface to allow for user-developed service checks
- Contact notifications when problems occur and get resolved (via email, pager, or user-defined method)
- Ability to define event handlers to be run during service or host events (for proactive problem resolution)
- Web output (current status, notifications, problem history, log file, etc.)
Nagios was written in C and is designed to be easy to understand and modify to fit your own needs.
There are three methods to install nsca 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 nsca Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install nsca using apt-get by running the following command:
sudo apt-get -y install nsca
Install nsca Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install nsca using apt by running the following command:
sudo apt -y install nsca
Install nsca 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 nsca using aptitude by running the following command:
sudo aptitude -y install nsca
How To Uninstall nsca on Ubuntu 18.04
To uninstall only the nsca package we can use the following command:
sudo apt-get remove nsca
Uninstall nsca And Its Dependencies
To uninstall nsca and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove nsca
Remove nsca Configurations and Data
To remove nsca configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge nsca
Remove nsca configuration, data, and all of its dependencies
We can use the following command to remove nsca configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge nsca
References
Summary
In this tutorial we learn how to install nsca package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.