tar -zxvfnagios-nrpe_2.8.1.orig.tar.gz cd nagios-nrpe_2.8.1 ./configure make all make install-plugin make install-daemon make install-daemon-config ========================================================
vi /usr/local/nagios/etc/nrpe.cfg 将allowed_hosts=127.0.0.1 修改成你的nagios服务器的ip ======================================= /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d