Yum install-y gcc glibc glibc-common gd gd-devel make Net-snmp openssl-devel xinetd
Open: http://sourceforge.net/projects/nagios/files/nrpe-2.x/
wget http://liquidtelecom.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz
Useradd Nagios
passwd Nagios
#tar Xzf nrpe-2.15.tar.gz
# CD nrpe-2.15
#./configure
#make All
#make Install-plugin
#make Install-daemon
#make Install-daemon-config
#make install-xinetd
Vi/etc/xinetd.d/nrpe
Only_from = 127.0.0.1,server_ip
Vi/etc/services add
Nrpe 5666/tcp # Nrpe
Vi/etc/sysconfig/iptables
Add 5666 Port Restart Iptables
Chown Nagios.nagios/usr/local/nagios
Chown-r nagios.nagios/usr/local/nagios/libexec
./usr/local/nagios/libexec/check_nrpe-h localhost
Yum-y Install Nagios-plugins-all Nagios-plugins-nrpe
Nagios-plugins Directory:/usr/lib64/nagios/plugins/check_disk
Vi/usr/local/nagios/etc/nrpe.cfg modification
Allowed_hosts=127.0.0.1,yourserverip
Comment out the Nagios plugin command that does not exist in the directory
Configure New Nagios Clients