From 2ce110bf57f5a412a48fd8baf4d5e498e0acc6c6 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Mon, 10 Mar 2025 22:49:38 +0100 Subject: refactor check_cluster --- plugins/check_cluster.d/config.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 plugins/check_cluster.d/config.h (limited to 'plugins/check_cluster.d') diff --git a/plugins/check_cluster.d/config.h b/plugins/check_cluster.d/config.h new file mode 100644 index 00000000..fc386415 --- /dev/null +++ b/plugins/check_cluster.d/config.h @@ -0,0 +1,27 @@ +#pragma once + +#include "../../config.h" +#include "../../lib/thresholds.h" +#include + +enum { + CHECK_SERVICES = 1, + CHECK_HOSTS = 2 +}; + +typedef struct { + char *data_vals; + thresholds *thresholds; + int check_type; + char *label; +} check_cluster_config; + +check_cluster_config check_cluster_config_init() { + check_cluster_config tmp = { + .data_vals = NULL, + .thresholds = NULL, + .check_type = CHECK_SERVICES, + .label = NULL, + }; + return tmp; +} -- cgit v1.2.3-74-g34f1