[Nagiosplug-devel] [ nagiosplug-Bugs-961327 ] Check_mailq only shows one of multiple queues

SourceForge.net noreply at sourceforge.net
Mon Apr 18 17:31:01 CEST 2005


Bugs item #961327, was opened at 2004-05-26 23:42
Message generated for change (Comment added) made by seanius
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=961327&group_id=29880

Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: T Everett (teamc26)
>Assigned to: M. Sean Finney (seanius)
Summary: Check_mailq only shows one of multiple queues

Initial Comment:
I am running sendmail with 6 queue directories.  The 
path is /var/spool/mqueue/q01 through q06.

Is there any way to make the check_mailq plugin check 
all of the queues?

----------------------------------------------------------------------

Comment By: M. Sean Finney (seanius)
Date: 2005-04-18 20:28

Message:
Logged In: YES 
user_id=226838

this problem is now fixed in cvs.  thank you for your report.

----------------------------------------------------------------------

Comment By: M. Sean Finney (seanius)
Date: 2005-04-14 00:14

Message:
Logged In: YES 
user_id=226838

i've made the test case insenstive, which should both fix
your problem and ensure that the fix doesn't cause a problem
for anyone else.

fix committed to cvs...

----------------------------------------------------------------------

Comment By: Spiggles (spig68ca)
Date: 2005-04-11 08:47

Message:
Logged In: YES 
user_id=1257046

I think have run into this on our servers. It was not
showing the summary for all queues, only the last one. The
problem was a pattern match that is case sensitive in the
check_mailq script.

On line 174 I changed;

            } elsif (/^\s+Total\sRequests:\s(\d+)$/) {
to
            } elsif (/^\s+Total\srequests:\s(\d+)$/) {

This fixed our problem anyway.



----------------------------------------------------------------------

Comment By: Ton Voon (tonvoon)
Date: 2004-11-23 19:54

Message:
Logged In: YES 
user_id=664364

Moving to Bugs tracker as Support Requests will be closed.

----------------------------------------------------------------------

Comment By: T Everett (teamc26)
Date: 2004-05-27 00:08

Message:
Logged In: YES 
user_id=1050807

I downloaded the latest plugins and the check_mailq plugin 
does state the it supports mutliple queues.  I tested it but 
the plugin is only reporting back the last queue (q06) number 
of queued messages. 

/usr/bin/mailq =                /var/spool/mqueue/q05 (6 
requests)
 /usr/bin/mailq = srcdomain = hotmail.com 
/usr/bin/mailq = srcdomain = panasonic.com 
/usr/bin/mailq = dstdomain = pcsystems.net 
/usr/bin/mailq = dstdomain = net.mx 
/usr/bin/mailq = dstdomain = net.mx 
/usr/bin/mailq = dstdomain = net.mx 
/usr/bin/mailq = dstdomain = cryptsoft.com 
/usr/bin/mailq =                /var/spool/mqueue/q06 (2 
requests)
 /usr/bin/mailq = srcdomain = com.br 
/usr/bin/mailq = srcdomain = panasonic.com 
/usr/bin/mailq = dstdomain = pcsystems.net 
msg_q = 2 warn=2 crit=9
WARNING: mailq is 2 (threshold w = 2)|unsent=2;2;9;0

Thanks,

Tony

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=961327&group_id=29880




More information about the Devel mailing list