summaryrefslogtreecommitdiffstats
path: root/plugins/check_ldap.d
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ldap.d')
-rw-r--r--plugins/check_ldap.d/config.h18
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
37check_ldap_config check_ldap_config_init() { 32check_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}