[nagios-plugins] check_mailq.pl: separate submission queue (#1192)

waja <notifications-9UaJU3cA/F/[email protected]> Tue, 01 Oct 2013 06:10:25 -0700
Newsgroups gmane.network.nagios.plugins.devel
Message-ID <nagios-plugins/nagios-plugins/pull/[email protected]>
--===============2082680624611402250==
Content-Type: multipart/alternative;
	boundary="--==_mimepart_524ac9c1a316_144da6fdd4447273";
	charset=UTF-8
Content-Transfer-Encoding: 7bit

----==_mimepart_524ac9c1a316_144da6fdd4447273
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

check_mailq.pl ignores the separate submission queue used in (modern?) sendmail
implementations.

For the queue output below with one message in the submission queue and no
messages in the transport queue, check_mailq.pl reports zero messages in the
queue because the request count from the last queue always overwrites previous
queues. If the sendmail MTA isn&#39;t running or has become wedged, messages will
sit in the submission queue forever.

The attached patch fixes this in a backwards compatible way (i.e., it shouldn&#39;t
break any of the currently supported formats).
--
Just turning attached patch of github issue #972 into a push request.
(Closes #972)
You can merge this Pull Request by running:

  git pull https://github.com/waja/nagios-plugins github972

Or you can view, comment on it, or merge it online at:

  https://github.com/nagios-plugins/nagios-plugins/pull/1192

-- Commit Summary --

  * check_mailq.pl: separate submission queue

-- File Changes --

    M THANKS.in (1)
    M plugins-scripts/check_mailq.pl (36)

-- Patch Links --

https://github.com/nagios-plugins/nagios-plugins/pull/1192.patch
https://github.com/nagios-plugins/nagios-plugins/pull/1192.diff

----==_mimepart_524ac9c1a316_144da6fdd4447273
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

<p>check_mailq.pl ignores the separate submission queue used in (modern?) sendmail<br>
implementations.</p>

<p>For the queue output below with one message in the submission queue and no<br>
messages in the transport queue, check_mailq.pl reports zero messages in the<br>
queue because the request count from the last queue always overwrites previous<br>
queues. If the sendmail MTA isn't running or has become wedged, messages will<br>
sit in the submission queue forever.</p>

<p>The attached patch fixes this in a backwards compatible way (i.e., it shouldn't</p>

<h2>break any of the currently supported formats).</h2>

<p>Just turning attached patch of github issue <a href="https://github.com/nagios-plugins/nagios-plugins/issues/972" class="issue-link" title="check_mailq.pl ignores separate submission queue [sf#3112695]">#972</a> into a push request.<br>
(Closes <a href="https://github.com/nagios-plugins/nagios-plugins/issues/972" class="issue-link" title="check_mailq.pl ignores separate submission queue [sf#3112695]">#972</a>)</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/waja/nagios-plugins github972</pre>
<p>Or view, comment on, or merge it at:</p>
<p>&nbsp;&nbsp;<a href='https://github.com/nagios-plugins/nagios-plugins/pull/1192'>https://github.com/nagios-plugins/nagios-plugins/pull/1192</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>check_mailq.pl: separate submission queue</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/nagios-plugins/nagios-plugins/pull/1192/files#diff-0">THANKS.in</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/nagios-plugins/nagios-plugins/pull/1192/files#diff-1">plugins-scripts/check_mailq.pl</a>
    (36)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/nagios-plugins/nagios-plugins/pull/1192.patch'>https://github.com/nagios-plugins/nagios-plugins/pull/1192.patch</a></li>
  <li><a href='https://github.com/nagios-plugins/nagios-plugins/pull/1192.diff'>https://github.com/nagios-plugins/nagios-plugins/pull/1192.diff</a></li>
</ul>

----==_mimepart_524ac9c1a316_144da6fdd4447273--


--===============2082680624611402250==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
--===============2082680624611402250==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________________
Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
--===============2082680624611402250==--