Nagios plugins and nrpe installation in remote host.
useradd nagios
passwd nagios
download the source files using the below links
wget https://api.opensuse.org/public/source/home:netmax/nagios-plugins/nagios-plugins-1.4.6.tar.gz?rev=285448d8f1b79ea7d33cc6ee74ba65a1&
wget http://space.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.8/nrpe-2.8.tar.gz
tar -xvzf nagios-plugins-1.4.6.tar.gz\?rev\=285448d8f1b79ea7d33cc6ee74ba65a1
tar -xvzf nrpe-2.8.tar.gz
cd nagios-plugins-1.4.6
./configure
make
make install
chown nagios.nagios /usr/local/nagios
chown -R nagios.nagios /usr/local/nagios/libexec
cd nrpe-2.8
./configure --enable-ssl
make all
make install-plugin
make install-daemon
make install-daemon-config
add the 5666 port no in /etc/services
Add the nagios host IP in the Allowed Host Directive of the nrpe.cfg file.
allowed_hosts=127.0.0.1,x.x.x.x
make sure that both the remote host and nagios hosts servers firewall blocks eachother ip's.
start nrpe plugin use the command below.
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
netstat -nat | grep 5666 or lsof -i tcp:5666
make sure that 5666 port listening
check whether nrpe is working,
/usr/local/nagios/libexec/check_nrpe -H localhost
if this returns the nrpe version then its working.
useradd nagios
passwd nagios
download the source files using the below links
wget https://api.opensuse.org/public/source/home:netmax/nagios-plugins/nagios-plugins-1.4.6.tar.gz?rev=285448d8f1b79ea7d33cc6ee74ba65a1&
wget http://space.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.8/nrpe-2.8.tar.gz
tar -xvzf nagios-plugins-1.4.6.tar.gz\?rev\=285448d8f1b79ea7d33cc6ee74ba65a1
tar -xvzf nrpe-2.8.tar.gz
cd nagios-plugins-1.4.6
./configure
make
make install
chown nagios.nagios /usr/local/nagios
chown -R nagios.nagios /usr/local/nagios/libexec
cd nrpe-2.8
./configure --enable-ssl
make all
make install-plugin
make install-daemon
make install-daemon-config
add the 5666 port no in /etc/services
Add the nagios host IP in the Allowed Host Directive of the nrpe.cfg file.
allowed_hosts=127.0.0.1,x.x.x.x
make sure that both the remote host and nagios hosts servers firewall blocks eachother ip's.
start nrpe plugin use the command below.
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
netstat -nat | grep 5666 or lsof -i tcp:5666
make sure that 5666 port listening
check whether nrpe is working,
/usr/local/nagios/libexec/check_nrpe -H localhost
if this returns the nrpe version then its working.