How to Install the Nagios Plugins
How to Install the Nagios Plugins
Prerequisites
Before starting, ensure you have:
1. Server root login credentials.
Step-1:
Create a directory for storing the downloads, if you don't already have one.
mkdir ~/downloads cd ~/downloads
Step-2:
Download the source code tarball of the Nagios plugins (visit http://www.nagios.org/downloads/ for links to the latest versions).
At the time of writing, the latest stable version of the Nagios plugins was 2.1.1.
wget http://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz
Extract the Nagios plugins source code tarball.
tar xzf nagios-plugins-2.2.1.tar.gz cd nagios-plugins-2.2.1
Note: on some systems, you will have to run the extract this way:
gunzip -c nagios-plugins-2.2.1.tar.gz | tar xf -
Step-3:
Compile and install the plugins.
./configure make make install
Step-4:
Depending on the version of the plugins, the permissions on the plugin directory and the plugins may need to be fixed at this point. If so run the following commands:
useradd nagios groupadd nagios usermod -a -G nagios nagios chown nagios.nagios /usr/local/nagios chown -R nagios.nagios /usr/local/nagios/libexe