<p>Hi, this patch adds --warn-entries and --crit-entries. As soon as you use one of them, not only the runtime of the ldap query will be checked but also the number of returned entries.<br>
The parameters accept threshold ranges as arguments, e.g.:<br>
--warn-entries 10: --crit-entries 1:<br>
This will result in CRITICAL if the ldap-query was correct, but returned no entry records.</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/1335'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1335</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>add sperfdata function which can handle threshold ranges</li>
  <li>add counting of entries to check_ldap</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1335/files#diff-0">plugins/check_ldap.c</a>
    (69)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1335/files#diff-1">plugins/utils.c</a>
    (40)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1335.patch'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1335.patch</a></li>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1335.diff'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1335.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/1335">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2QOP5S0l8mCmIzJz9wM-UhPLm9Ccks5oAt2FgaJpZM4EDhSV.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/1335"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>