In nagios server
cd /usr/local/nagios/libexec
wget http://www.mycutelife.net/sanju/newtickethelp/nagiosfullsteps/check_eximmailqueue
chmod +x check_eximmailqueue
In remote server
cd /usr/local/nagios/libexec
wget http://www.mycutelife.net/sanju/newtickethelp/nagiosfullsteps/check_eximmailqueue
chmod +x check_eximmailqueue
echo “command[check_eximmailqueue]=/usr/local/nagios/libexec/check_eximmailqueue -w 500 -c 1000” >> /etc/nrpe.conf
visudo
add the following line
nagios ALL= NOPASSWD:/usr/sbin/exim -bpc
/etc/init.d/xinetd restart
Check in nagios server
./check_nrpe -H <server ip> -c check_eximmailqueue
if error…. then,
in remote server
cd /usr/local/nagios/libexec
visudo
comment #Defaults requiretty
cd /usr/bin
chmod u+s sudo
Leave A Comment
You must be logged in to post a comment.