Usage: check_mailq -w -c [-W ] [-C ] [-M ] [-t ] [-v verbose] Checks the number of messages in the mail queue (supports multiple sendmail queues, qmail) Feedback/patches to support non-sendmail mailqueue welcome -w (--warning) = Min. number of messages in queue to generate warning -c (--critical) = Min. number of messages in queu to generate critical alert ( w < c ) -W (--Warning) = Min. number of messages for same domain in queue to generate warning -C (--Critical) = Min. number of messages for same domain in queue to generate critical alert ( W < C ) -t (--timeout) = Plugin timeout in seconds (default = 15) -M (--mailserver) = [ sendmail | qmail | postfix | exim ] (default = sendmail) -h (--help) -V (--version) -v (--verbose) = debugging output Note: -w and -c are required arguments. -W and -C are optional. -W and -C are applied to domains listed on the queues - both FROM and TO. (sendmail) -W and -C are applied message not yet preproccessed. (qmail) This plugin uses the system mailq command (sendmail) or qmail-stat (qmail) to look at the queues. Mailq can usually only be accessed by root or a TrustedUser. You will have to set appropriate permissions for the plugin to work.