- Install Nagios Core and Nagios Plugins first.
- Download NRPE:
curl -L -O http://downloads.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz
- Extract the NRPE archive:
tar xvf nrpe-*.tar.gz
- Go to extracted directory then run this commands:
./configure --enable-command-args --with-nagios-user=nagios --with-nagios-group=nagios --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu
make all
sudo make install
sudo make install-xinetd
sudo make install-daemon-config
- Configure NRPE, open
/etc/xinetd.d/nrpe
file then find only_from line:
only_from = 127.0.0.1 <actual_ip_of_nagios_server>
Then restart xinetd service.