yum install -y gcc glibc glibc-common gd gd-devel make net-snmp openssl-devel
useradd nagios
passwd nagios
wget https://www.nagios-plugins.org/download/nagios-plugins-1.5.tar.gz
tar -zxvf nagios-plugins-1.5.tar.gz
cd nagios-plugins-1.5
./configure
make
make install
chown nagios:nagios /usr/local/nagios/
chown -R nagios:nagios /usr/local/nagios/libexec/
cd
cd nagios/
wget http://downloads.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz
tar zxvf 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
Notes:
edit xinetd.d/nrpe to configure mon host IP
edit /etc/services to open nrpe port 5666
chkconfig xinetd on