monitoring-plugins/plugins/check_cluster.d/config.h
2025-09-17 11:25:13 +02:00

33 lines
568 B
C

#pragma once
#include "../../config.h"
#include "../../lib/thresholds.h"
#include "output.h"
#include <stddef.h>
enum {
CHECK_SERVICES = 1,
CHECK_HOSTS = 2
};
typedef struct {
char *data_vals;
thresholds *thresholds;
int check_type;
char *label;
mp_output_format output_format;
bool output_format_is_set;
} 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,
.output_format_is_set = false,
};
return tmp;
}