How To Install nsca-client on Ubuntu 18.04

In this tutorial we learn how to install nsca-client on Ubuntu 18.04. nsca-client is Nagios service monitor agent - client package

Introduction

In this tutorial we learn how to install nsca-client on Ubuntu 18.04.

What is nsca-client

nsca-client is:

This package contains only the client part of nsca and is thus suitable for installation on systems that only report passive service checks to a central server.

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-client 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-client 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-client using apt-get by running the following command:

sudo apt-get -y install nsca-client

Install nsca-client Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install nsca-client using apt by running the following command:

sudo apt -y install nsca-client

Install nsca-client 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-client using aptitude by running the following command:

sudo aptitude -y install nsca-client

How To Uninstall nsca-client on Ubuntu 18.04

To uninstall only the nsca-client package we can use the following command:

sudo apt-get remove nsca-client

Uninstall nsca-client And Its Dependencies

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

sudo apt-get -y autoremove nsca-client

Remove nsca-client Configurations and Data

To remove nsca-client configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge nsca-client

Remove nsca-client configuration, data, and all of its dependencies

We can use the following command to remove nsca-client configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge nsca-client

References

Summary

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