Stefan Hornburg (Racke)
Monitoring Exim's Mail Queue with Nagios
There is a plugin at Nagios Exchange to monitor Exim's Mail Queue:
Put this script into your Nagios plugin directory. Adjust the paths to utils.sh
and the exim binary if necessary.
On Debian you need to install nagios-plugins-basic
first and use the following
paths:
. /usr/lib/nagios/plugins/utils.sh</code> EXIM=/usr/sbin/exim4 Install <code>sudo</code> if necessary. Now add the following line to <code>/etc/sudoers</code> with <code>visudo</code>: <example> nagios ALL=NOPASSWD:/usr/sbin/exim4
Add a line to nrpe_local.cfg
on your mail server.
command[check_eximailqueue]=/usr/lib/nagios/plugins/check_eximailqueue -w 250 -c 500
Restart Nagios NRPE server with:
/etc/init.d/nagios-nrpe-server restart