check ldap count entries (#1335)

Gerhard Lausser notifications at github.com
Sun Apr 19 01:17:25 CEST 2015


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.
The parameters accept threshold ranges as arguments, e.g.:
--warn-entries 10: --crit-entries 1:
This will result in CRITICAL if the ldap-query was correct, but returned no
entry records.
You can view, comment on, or merge this pull request online at:

  https://github.com/monitoring-plugins/monitoring-plugins/pull/1335

-- Commit Summary --

  * add sperfdata function which can handle threshold ranges
  * add counting of entries to check_ldap

-- File Changes --

    M plugins/check_ldap.c (69)
    M plugins/utils.c (40)

-- Patch Links --

https://github.com/monitoring-plugins/monitoring-plugins/pull/1335.patch
https://github.com/monitoring-plugins/monitoring-plugins/pull/1335.diff

-- 
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/pull/1335
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20150418/f3b921cb/attachment.html>


More information about the Devel mailing list