summaryrefslogtreecommitdiffstats
path: root/plugins/check_ldap.d/config.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-11-25 12:41:07 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-11-25 12:42:50 +0100
commitd6c4b799e3416d70448dea9ea886d29dbf69c820 (patch)
tree4b2b9d4a299a3184af6490de589f0f9e6ab424d1 /plugins/check_ldap.d/config.h
parent2e3dff775dd92ea9880221c800f6dc6e53162fb4 (diff)
downloadmonitoring-plugins-d6c4b799e3416d70448dea9ea886d29dbf69c820.tar.gz
check_ldap: implement output format selection
Diffstat (limited to 'plugins/check_ldap.d/config.h')
-rw-r--r--plugins/check_ldap.d/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/check_ldap.d/config.h b/plugins/check_ldap.d/config.h
index 9e6bb845..50191725 100644
--- a/plugins/check_ldap.d/config.h
+++ b/plugins/check_ldap.d/config.h
@@ -1,6 +1,7 @@
1#pragma once 1#pragma once
2 2
3#include "../../config.h" 3#include "../../config.h"
4#include "output.h"
4#include "thresholds.h" 5#include "thresholds.h"
5#include <stddef.h> 6#include <stddef.h>
6 7
@@ -27,6 +28,9 @@ typedef struct {
27 28
28 mp_thresholds entries_thresholds; 29 mp_thresholds entries_thresholds;
29 mp_thresholds connection_time_threshold; 30 mp_thresholds connection_time_threshold;
31
32 bool output_format_is_set;
33 mp_output_format output_format;
30} check_ldap_config; 34} check_ldap_config;
31 35
32check_ldap_config check_ldap_config_init() { 36check_ldap_config check_ldap_config_init() {
@@ -45,6 +49,8 @@ check_ldap_config check_ldap_config_init() {
45 49
46 .entries_thresholds = mp_thresholds_init(), 50 .entries_thresholds = mp_thresholds_init(),
47 .connection_time_threshold = mp_thresholds_init(), 51 .connection_time_threshold = mp_thresholds_init(),
52
53 .output_format_is_set = false,
48 }; 54 };
49 return tmp; 55 return tmp;
50} 56}