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