<HTML>
<HEAD>
<TITLE>Check_mailq always reports queue empty</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi Everyone. I have NRPE running on my Ubuntu mail gateway (referred to as SMTP) that is running MailScanner, clamav, etc. I am having problems with the check_mailq command. It doesn’t seem to be reporting correctly.<BR>
<BR>
When I run the mailq command (as of about 1 minute ago) there were 10 messages in the queue. They were all MAILER-DAEMON emails so nothing that would suggest a relay problem. When I run the following command from SMTP:<BR>
<BR>
/usr/local/nagios/libexec/libexec/check_nrpe -H 127.0.0.1 -c check_mailq <BR>
<BR>
it returns: OK: mailq is empty|unsent=0;10;15;0<BR>
<BR>
The same thing happens when it is run from Nagios. Yesterday a Exchange server who the SMTP server relays for went down and we got no notification that mail started spooling on the SMTP box.<BR>
<BR>
Any suggestions why this command is always reporting the mailq is empty? Also, does anyone have any good NRPE scripts that check MailScanner?<BR>
<BR>
Thanks.<BR>
<BR>
<BR>
</SPAN></FONT></FONT>
</BODY>
</HTML>