wget
wget wget yum -y install gcc gcc* gd gd-devel libpng libpng-devel libjpeg libjpeg-devel zlib zlib-devel httpd php php-develyum install openssl* -yuseradd nagiosusermod -G nagios apachetar zxvf nagios-3.5.1.tar.gzcd nagios./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagiosmake allmake installmake install-initmake install-commandmodemake install-configmake install-webconfchkconfig nagios oncd ..tar zxvf nagios-plugins-1.4.16.tar.gzcd nagios-plugins-1.4.16./configure --prefix=/usr/local/nagiosmake && make installcd .. tar jxvf nagios-cn-3.2.3.tar.bz2cd nagios-cn-3.2.3./configure --prefix=/usr/local/nagios/make allmake installcd ..sed -i '1043 s/^/#/' /usr/local/nagios/etc/nagios.cfghtpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin/etc/init.d/nagios restart/etc/init.d/httpd restartwget
tar zxvf nrpe-2.13.tar.gzcd nrpe-2.13./configure --prefix= /usr/local/nagiosmake all && make install-plugin && make install-daemon && make install-daemon-config && make install-xinetdcd ..echo "nrpe 5666/tcp #nrpe" >> /etc/services
nrpe -c /etc/nrpe.cfg -d