monitoring-plugins/plugins/check_cluster.d/config.h
2025-03-10 22:49:38 +01:00

27 lines
452 B
C

#pragma once
#include "../../config.h"
#include "../../lib/thresholds.h"
#include <stddef.h>
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;
}