#title Monitoring Exim's Mail Queue with Nagios #author Stefan Hornburg (Racke) #topics blog; Exim; Nagios #date 2008-04-16 #pubdate 2008-04-16T11:28:01+02:00 #lang en There is a plugin at Nagios Exchange to monitor Exim's Mail Queue: [[http://www.monitoringexchange.org/inventory/Check-Plugins/Software/Mail/check_eximailqueue][check_eximailqueue]]. 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 EXIM=/usr/sbin/exim4 Install sudo if necessary. Now add the following line to /etc/sudoers with visudo: 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