summaryrefslogtreecommitdiffstats
path: root/plugins/check_cluster.d/config.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-09-17 13:51:22 +0200
committerGitHub <noreply@github.com>2025-09-17 13:51:22 +0200
commita51ff78f83c822f0a809ee3dbb6a1856b1fcc589 (patch)
tree4520e80a9c22b02d5777c2027b934247eadfa19f /plugins/check_cluster.d/config.h
parent5ce7b57c74ecb2cf1b53f75764382ec26e818551 (diff)
parent88f316bb2721921f2f7fa12e196fc299db60c2f8 (diff)
downloadmonitoring-plugins-a51ff78f83c822f0a809ee3dbb6a1856b1fcc589.tar.gz
Merge pull request #2154 from RincewindsHat/new-output/check_cluster
check_cluster: new output functionality
Diffstat (limited to 'plugins/check_cluster.d/config.h')
-rw-r--r--plugins/check_cluster.d/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/check_cluster.d/config.h b/plugins/check_cluster.d/config.h
index fc386415..054657b0 100644
--- a/plugins/check_cluster.d/config.h
+++ b/plugins/check_cluster.d/config.h
@@ -2,6 +2,7 @@
2 2
3#include "../../config.h" 3#include "../../config.h"
4#include "../../lib/thresholds.h" 4#include "../../lib/thresholds.h"
5#include "output.h"
5#include <stddef.h> 6#include <stddef.h>
6 7
7enum { 8enum {
@@ -14,6 +15,9 @@ typedef struct {
14 thresholds *thresholds; 15 thresholds *thresholds;
15 int check_type; 16 int check_type;
16 char *label; 17 char *label;
18
19 mp_output_format output_format;
20 bool output_format_is_set;
17} check_cluster_config; 21} check_cluster_config;
18 22
19check_cluster_config check_cluster_config_init() { 23check_cluster_config check_cluster_config_init() {
@@ -22,6 +26,8 @@ check_cluster_config check_cluster_config_init() {
22 .thresholds = NULL, 26 .thresholds = NULL,
23 .check_type = CHECK_SERVICES, 27 .check_type = CHECK_SERVICES,
24 .label = NULL, 28 .label = NULL,
29
30 .output_format_is_set = false,
25 }; 31 };
26 return tmp; 32 return tmp;
27} 33}