7.8 Regularly Checking the Status of the Mail Queue
The check_mailq
plugin can be used to monitor the mail queue of a mail server for e-mails that have not yet been delivered. check_mailq
runs the program mailq
of the mail service installed. Unfortunately each MTA interprets the mail queue differently, so the plugin can evaluate only mail queues from mail services that the programmer has taken into account. These are, specifically: sendmail
, qmail
, postfix
, and exim
. The check_mailq
plugin has the following options:
-w
number
/ --warning=
number
If there are at least
mails in the mail queue, the plugin gives a warning.number
-c
number
/ --critical=
number
As soon as there are at least
of mails in the queue waiting to be delivered, then the critical ...number
Get Nagios, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.