Nagios plugins are like extensions to monitor remote hosts with Nagios core. Let’s see the installation process for it. Before installing Nagios plugins you should already install and configured Nagios core in your server. How to install Nagios core in Ubuntu.
Step 1: First, install the required packages using apt
# apt install libmcrypt-dev make lib-ssl-dev bc gawk dc build-essential snmp libbnet-snmp-perl gettext libldap2-dev smbclient fping libmysqlclient-dev libdbi-dev
Step 2: Download the plugins tar file from github
# wget https://github.com/nagios-plugins/nagios-plugins/archive/release2.3.3.tar.gz
Step 3: Extract the downloaded file and change the directory.
# tar xzf release-2.3.3.tar.gz
# cd nagios-plugins-release-2.3.3/
Step 4: Run the below commands one by one to compile and install plugins.
# ./tools/setup
# ./configure
# make
# make install
Now you can check all plugins should be available in this path
# ls /usr/local/nagios/libexec/
Step 5: Restart the nagios service
# systemctl restart nagios
Now login to your Nagios core web URL and you can see localhost with plugins enabled.