Check_mailq always reports queue empty

Gregory Wong gwong at wong-consulting.com
Thu Mar 6 15:00:30 CET 2008


Specifying the mail server using the ­M switch seem to have worked. Thanks
Philipp!


On 3/6/08 8:44 AM, "Philipp Geschke" <nagios at pgmail.net> wrote:

> 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
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080306/f61f183f/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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/
-------------- next part --------------
_______________________________________________
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