Installing the Nagios Plugins
- Refresh the repository:
sudo apt-get update
- Install the dependencies:
sudo apt-get install -y autoconf gcc libc6 libmcrypt-dev make libssl-dev wget bc gawk dc build-essential snmp libnet-snmp-perl gettext
- Change the directory to your home directory:
cd ~
- Download the nagios plugins source codes:
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.3.3.tar.gz
- Extract the downloaded source codes:
tar zxf nagios-plugins.tar.gz
- Change to the directory of the newly extracted source codes:
cd nagios-plugins-release-2.3.3
- Setup and configure:
sudo ./tools/setup
sudo ./configure
- Compile the source codes:
sudo make
- Install the plugins to /usr/local/nagios/libexec directory:
sudo make install
Leave a Reply