I followed the instruction from this guide.
There is a line sudo make install-xinetd
which is not suitable for Ubuntu Server 12.04 LTS, the directory /etc/xinet.d
is in RedHat/Centos but in Ubuntu the equivalent is /etc/init.d/
The below steps are from this guide.
cyruslab@Nachos:~/download/nrpe-2.13$ sudo cp init-script.debian /etc/init.d/nrpe cyruslab@Nachos:~/download/nrpe-2.13$ sudo chmod 700 /etc/init.d/nrpe cyruslab@Nachos:~/download/nrpe-2.13$ sudo update-rc.d nrpe defaults update-rc.d: warning: /etc/init.d/nrpe missing LSB information update-rc.d: see <http://wiki.debian.org/LSBInitScripts> Adding system startup for /etc/init.d/nrpe ... /etc/rc0.d/K20nrpe -> ../init.d/nrpe /etc/rc1.d/K20nrpe -> ../init.d/nrpe /etc/rc6.d/K20nrpe -> ../init.d/nrpe /etc/rc2.d/S20nrpe -> ../init.d/nrpe /etc/rc3.d/S20nrpe -> ../init.d/nrpe /etc/rc4.d/S20nrpe -> ../init.d/nrpe /etc/rc5.d/S20nrpe -> ../init.d/nrpe cyruslab@Nachos:~/download/nrpe-2.13$