In Remote server
cd /root
wget http://www.mycutelife.net/sanju/newtickethelp/nagios_downloads/nagios-plugins-1.3.1.tar.gz
wget http://www.mycutelife.net/sanju/newtickethelp/nagios_downloads/nrpe-1.9.tar.gz
tar -zxvf nagios-plugins-1.3.1.tar.gz
cd nagios-plugins-1.3.1
./configure
make all
make install
cd ..
tar -zxvf nrpe-1.9.tar.gz
cd nrpe-1.9/
./configure
make all
cp nrpe.cfg /etc/nrpe.conf
chmod 777 /etc/nrpe.conf
cp src/check_nrpe /usr/sbin/
chmod 755 /usr/sbin/check_nrpe
cp src/nrpe /usr/sbin/
chmod 755 /usr/sbin/nrpe
wget http://www.mycutelife.net/sanju/newtickethelp/nagios_downloads/nrpe
cp nrpe /etc/xinetd.d/nrpe
/sbin/iptables -I INPUT -p tcp -s 0/0 –dport 5666 -j ACCEPT
/etc/init.d/iptables save
/usr/sbin/adduser nagios
echo “nrpe 5666/tcp # NRPE” >> /etc/services
/etc/rc.d/init.d/xinetd restart
Leave A Comment
You must be logged in to post a comment.