<p>With my change you format a web page response like Nagios plugin output, put the numeric exit code in the X-NRPE-Status header, set the Content-Type to text/nagios and the check_http plugin behaves like check_nrpe.</p>

<p>Instead of having to parse the output of your own web applications to suit Nagios, why not have them output the status in that format already.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1355'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1355</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Added NRPE like funtionality to check_http</li>
  <li>Removed old get_content_length</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1355/files#diff-0">plugins/check_http.c</a>
    (66)
  </li>
</ul>

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

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1355">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2S3YPFnKzk3mh1A1LCax7HDnHQnNks5o0TpygaJpZM4GBjYK.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1355"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>