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 and the exim binary if necessary.

On Debian you need to install nagios-plugins-basic first and use the following


. /usr/lib/nagios/plugins/</code>


Install <code>sudo</code> if necessary.

Now add the following line to <code>/etc/sudoers</code> with <code>visudo</code>:


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