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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s