From dccc974e45b2ee533f83b3485caf5130f5736196 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Tue, 25 Nov 2025 13:48:01 +0100 Subject: check_ldap: fix thresholds for number of entries --- plugins/check_ldap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') 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': -- cgit v1.2.3-74-g34f1