1. Download nrpe2.15
wget http://cznic.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz
2. Yum Install OpenSSL Openssl-devel
CD nrpe-2.15
./configure--enable-ssl--with-nagios-user=nagios--with-nagios-group=nagcmd--with-nrpe-user=nagios-- With-nrpe-group=nagcmd
make all
Make Install-plugin
Make Install-daemon
Make Install-daemon-config
Make install- xinetd
3. Edit the Nrpe configuration file to add the monitor address:
Vi/etc/xinetd.d/nrpe
Only_from = nagios-server-ip,127.0.0.1
4.Modify the Services file to increase the port
vi/etc/services
Nrpe 5666/tcp #NRPE
3. Start Nrpe
/usr/local/nagios/bin/nrpe-c/usr/local/nagios/etc/nrpe.cfg-d
Set boot up
Vi/etc/rc.d/rc.local joins /usr/local/nagios/bin/nrpe-c/usr/local/nagios/etc/nrpe.cfg-d
Verify that it is started
Netstat-an |grep 5666
TCP 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN
4.
Nagios Monitoring Linux Nrpe installation