Wednesday, June 3, 2009

Nagios error - Exim mail queue

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 -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

0 comments:

Post a Comment

  © Blogger template PingooIgloo by Ourblogtemplates.com 2009

Back to TOP