[monitoring-plugins] check_ldap: fix thresholds for number of entries
Lorenz Kästle
git at monitoring-plugins.org
Tue Nov 25 14:00:13 CET 2025
Module: monitoring-plugins
Branch: master
Commit: dccc974e45b2ee533f83b3485caf5130f5736196
Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
Date: Tue Nov 25 13:48:01 2025 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=dccc974e
check_ldap: fix thresholds for number of entries
---
plugins/check_ldap.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c
index 1070650e..1b2e2826 100644
--- a/plugins/check_ldap.c
+++ b/plugins/check_ldap.c
@@ -419,7 +419,7 @@ check_ldap_config_wrapper process_arguments(int argc, char **argv) {
if (tmp.error != MP_PARSING_SUCCES) {
die(STATE_UNKNOWN, "failed to parse number of entries warning threshold");
}
- result.config.connection_time_threshold =
+ result.config.entries_thresholds =
mp_thresholds_set_warn(result.config.entries_thresholds, tmp.range);
} break;
case 'C': {
@@ -427,8 +427,8 @@ check_ldap_config_wrapper process_arguments(int argc, char **argv) {
if (tmp.error != MP_PARSING_SUCCES) {
die(STATE_UNKNOWN, "failed to parse number of entries critical threshold");
}
- result.config.connection_time_threshold =
- mp_thresholds_set_crit(result.config.entries_thresholds, tmp.range);
+ result.config.entries_thresholds =
+ mp_thresholds_set_crit(result.config.entries_thresholds, tmp.range);
} break;
#ifdef HAVE_LDAP_SET_OPTION
case '2':
More information about the Commits
mailing list