From 07d3eb9e2c729b6ab5effc0f664b6d5d9958fa72 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Tue, 25 Nov 2025 12:31:00 +0100 Subject: check_ldap: modern output implementation --- plugins/check_ldap.d/config.h | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'plugins/check_ldap.d/config.h') diff --git a/plugins/check_ldap.d/config.h b/plugins/check_ldap.d/config.h index c8a40610..9e6bb845 100644 --- a/plugins/check_ldap.d/config.h +++ b/plugins/check_ldap.d/config.h @@ -25,13 +25,8 @@ typedef struct { int ld_protocol; #endif - char *warn_entries; - char *crit_entries; - thresholds *entries_thresholds; - bool warn_time_set; - double warn_time; - bool crit_time_set; - double crit_time; + mp_thresholds entries_thresholds; + mp_thresholds connection_time_threshold; } check_ldap_config; check_ldap_config check_ldap_config_init() { @@ -48,13 +43,8 @@ check_ldap_config check_ldap_config_init() { .ld_protocol = DEFAULT_PROTOCOL, #endif - .warn_entries = NULL, - .crit_entries = NULL, - .entries_thresholds = NULL, - .warn_time_set = false, - .warn_time = 0, - .crit_time_set = false, - .crit_time = 0, + .entries_thresholds = mp_thresholds_init(), + .connection_time_threshold = mp_thresholds_init(), }; return tmp; } -- cgit v1.2.3-74-g34f1