| |

How to install Nagios-Plugins in Ubuntu

Nagios plugins are like extensions to monitor remote hosts with Nagios core. Let 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 require 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 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 directory.

# tar xzf release-2.3.3.tar.gz
# cd nagios-plugins-release-2.3.3/

Step 4: Run below commands one by one to compile and install plugins.

# ./tools/setup
# ./configure
# make
# make install

Now you can check all plugins should 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.

Similar Posts