How To Install monitoring-plugins-basic on Ubuntu 20.04

In this tutorial we learn how to install monitoring-plugins-basic on Ubuntu 20.04. monitoring-plugins-basic is Plugins for nagios compatible monitoring systems (basic) Plugins for nagios compatible monitoring systems (basic)

Introduction

In this tutorial we learn how to install monitoring-plugins-basic on Ubuntu 20.04.

What is monitoring-plugins-basic

monitoring-plugins-basic is:

Plugins for nagios compatible monitoring systems like Naemon and Icinga. It contains the following plugins:

check_apt, check_by_ssh, check_clamd, check_cluster, check_dhcp, check_disk, check_dummy, check_file_age, check_ftp, check_host, check_http, check_icmp, check_ide_smart, check_imap, check_ircd, check_jabber, check_load, check_log, check_mrtg, check_mrtgtraf, check_nagios, check_nntp, check_nntps, check_nt, check_ntp, check_ntp_peer, check_ntp_time, check_nwstat, check_overcr, check_ping, check_pop, check_procs, check_real, check_rta_multi, check_sensors, check_simap, check_smtp, check_spop, check_ssh, check_ssmtp, check_swap, check_tcp, check_time, check_udp, check_ups, check_users

This package provides a basic set of plugins with minimal external dependencies. It is not likely to be useful by itself unless you are using a remote “satellite” system (using nagios-nrpe-server, check_by_ssh or nsca, for example).

Package: monitoring-plugins-basic Architecture: amd64 Version: 2.2-6ubuntu1 Priority: extra Section: universe/net Source: monitoring-plugins Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Nagios Maintainer Group [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 2057 Provides: nagios-plugins-basic Depends: iputils-ping, monitoring-plugins-common, procps, ucf, libc6 (>= 2.29), libssl1.1 (>= 1.1.0) Recommends: libcap2-bin Suggests: icinga | icinga2 Filename: pool/universe/m/monitoring-plugins/monitoring-plugins-basic_2.2-6ubuntu1_amd64.deb Size: 283528 MD5sum: d13c772466269a5c3f22f8b66bf446c9 SHA1: e408c8eb2ec293107cd0304d22e6a4b665ed593c SHA256: eaf7d43b48c62667f3a68a0eba26f6be8d0344af30986b006410fd3f7343ff04 Homepage: https://www.monitoring-plugins.org Description-en: Plugins for nagios compatible monitoring systems (basic) Plugins for nagios compatible monitoring systems like Naemon and Icinga. It contains the following plugins:

check_apt, check_by_ssh, check_clamd, check_cluster, check_dhcp, check_disk, check_dummy, check_file_age, check_ftp, check_host, check_http, check_icmp, check_ide_smart, check_imap, check_ircd, check_jabber, check_load, check_log, check_mrtg, check_mrtgtraf, check_nagios, check_nntp, check_nntps, check_nt, check_ntp, check_ntp_peer, check_ntp_time, check_nwstat, check_overcr, check_ping, check_pop, check_procs, check_real, check_rta_multi, check_sensors, check_simap, check_smtp, check_spop, check_ssh, check_ssmtp, check_swap, check_tcp, check_time, check_udp, check_ups, check_users

This package provides a basic set of plugins with minimal external dependencies. It is not likely to be useful by itself unless you are using a remote “satellite” system (using nagios-nrpe-server, check_by_ssh or nsca, for example).

There are three methods to install monitoring-plugins-basic on Ubuntu 20.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 monitoring-plugins-basic Using apt-get

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

sudo apt-get update

After updating apt database, We can install monitoring-plugins-basic using apt-get by running the following command:

sudo apt-get -y install monitoring-plugins-basic

Install monitoring-plugins-basic Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install monitoring-plugins-basic using apt by running the following command:

sudo apt -y install monitoring-plugins-basic

Install monitoring-plugins-basic 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 monitoring-plugins-basic using aptitude by running the following command:

sudo aptitude -y install monitoring-plugins-basic

How To Uninstall monitoring-plugins-basic on Ubuntu 20.04

To uninstall only the monitoring-plugins-basic package we can use the following command:

sudo apt-get remove monitoring-plugins-basic

Uninstall monitoring-plugins-basic And Its Dependencies

To uninstall monitoring-plugins-basic and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove monitoring-plugins-basic

Remove monitoring-plugins-basic Configurations and Data

To remove monitoring-plugins-basic configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge monitoring-plugins-basic

Remove monitoring-plugins-basic configuration, data, and all of its dependencies

We can use the following command to remove monitoring-plugins-basic configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge monitoring-plugins-basic

References

Summary

In this tutorial we learn how to install monitoring-plugins-basic package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.