The mailq-check runs sendmail -bp to list all the queued emails in your system. You can configure a maximum count for different errors and/or a maximum total count.
MAILQ is the enclosing tag for all mailq entries.
0 or 1. If you don't define MAILQ, no mailq check will run.
<MAILQ>
<MAILQERROR>
<!-- Total count for queue is 20 -->
<REGEX>.*</REGEX>
<COUNT>20</COUNT>
<ERRORLEVEL>ERROR</ERRORLEVEL>
<DESCRIPTION>Stupid emails - go out!</DESCRIPTION>
</MAILQERROR>
<MAILQERROR>
<!-- DNS problems: max 5 -->
<REGEX>lookup</REGEX>
<COUNT>5</COUNT>
<ERRORLEVEL>WARNING</ERRORLEVEL>
<DESCRIPTION>Stupid emails - go out!</DESCRIPTION>
</MAILQERROR>
</MAILQ>
You can define MAILQERROR-entries for every mailq-error, you want to check.
The common XML tags as described in Section 9.8, “Tags Common to All Checks and/or Checkpoints”
As many as you like.
Look at MAILQERROR
how many mails can be in the queue with that error ?
integer value
1
Look at MAILQERROR