Check_mailq always reports queue empty

Philipp Geschke nagios at pgmail.net
Thu Mar 6 14:44:23 CET 2008


Hi,

Gregory Wong schrieb:
> 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.
> 
> 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:
> 
>  /usr/local/nagios/libexec/libexec/check_nrpe -H 127.0.0.1 -c check_mailq
> 
> it returns: OK: mailq is empty|unsent=0;10;15;0
> 
> 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.
> 
> Any suggestions why this command is always reporting the mailq is empty? 
> Also, does anyone have any good NRPE scripts that check MailScanner?
> 
> Thanks.
> 

Did you set the plugin's -M Switch to the mailserver software you are using?

-M (--mailserver) = [ sendmail | qmail | postfix | exim ] (default = 
sendmail)


Regards,
Philipp

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list