check ldap count entries (#1335)

Gerhard Lausser <[email protected]>
Newsgroups gmane.network.nagios.devel,gmane.network.monitoring.plugins.devel
Message-ID <monitoring-plugins/monitoring-plugins/pull/[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.