diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-25 12:31:00 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-25 12:31:00 +0100 |
| commit | 07d3eb9e2c729b6ab5effc0f664b6d5d9958fa72 (patch) | |
| tree | caf834fe566d59dd50481b1445be453076407583 /plugins/check_ldap.d/config.h | |
| parent | 983519d07d5ddf3e0cb99282fda6583bba2a6e96 (diff) | |
| download | monitoring-plugins-07d3eb9e2c729b6ab5effc0f664b6d5d9958fa72.tar.gz | |
check_ldap: modern output implementation
Diffstat (limited to 'plugins/check_ldap.d/config.h')
| -rw-r--r-- | plugins/check_ldap.d/config.h | 18 |
1 files changed, 4 insertions, 14 deletions
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 { | |||
| 25 | int ld_protocol; | 25 | int ld_protocol; |
| 26 | #endif | 26 | #endif |
| 27 | 27 | ||
| 28 | char *warn_entries; | 28 | mp_thresholds entries_thresholds; |
| 29 | char *crit_entries; | 29 | mp_thresholds connection_time_threshold; |
| 30 | thresholds *entries_thresholds; | ||
| 31 | bool warn_time_set; | ||
| 32 | double warn_time; | ||
| 33 | bool crit_time_set; | ||
| 34 | double crit_time; | ||
| 35 | } check_ldap_config; | 30 | } check_ldap_config; |
| 36 | 31 | ||
| 37 | check_ldap_config check_ldap_config_init() { | 32 | check_ldap_config check_ldap_config_init() { |
| @@ -48,13 +43,8 @@ check_ldap_config check_ldap_config_init() { | |||
| 48 | .ld_protocol = DEFAULT_PROTOCOL, | 43 | .ld_protocol = DEFAULT_PROTOCOL, |
| 49 | #endif | 44 | #endif |
| 50 | 45 | ||
| 51 | .warn_entries = NULL, | 46 | .entries_thresholds = mp_thresholds_init(), |
| 52 | .crit_entries = NULL, | 47 | .connection_time_threshold = mp_thresholds_init(), |
| 53 | .entries_thresholds = NULL, | ||
| 54 | .warn_time_set = false, | ||
| 55 | .warn_time = 0, | ||
| 56 | .crit_time_set = false, | ||
| 57 | .crit_time = 0, | ||
| 58 | }; | 48 | }; |
| 59 | return tmp; | 49 | return tmp; |
| 60 | } | 50 | } |
