From 8a71cf947f14d731e8ffaa4214d5c82eead912d1 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 5 Nov 2025 13:59:08 +0100 Subject: check_pgsql: implement cli params for output format --- plugins/check_pgsql.d/config.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/check_pgsql.d/config.h') diff --git a/plugins/check_pgsql.d/config.h b/plugins/check_pgsql.d/config.h index 7c1ff55a..7cf0637b 100644 --- a/plugins/check_pgsql.d/config.h +++ b/plugins/check_pgsql.d/config.h @@ -1,6 +1,7 @@ #pragma once #include "../../config.h" +#include "output.h" #include "perfdata.h" #include "thresholds.h" #include @@ -27,6 +28,9 @@ typedef struct { mp_thresholds time_thresholds; mp_thresholds qthresholds; + + bool output_format_is_set; + mp_output_format output_format; } check_pgsql_config; /* begin, by setting the parameters for a backend connection if the @@ -51,6 +55,8 @@ check_pgsql_config check_pgsql_config_init() { .time_thresholds = mp_thresholds_init(), .qthresholds = mp_thresholds_init(), + + .output_format_is_set = false, }; mp_range tmp_range = mp_range_init(); -- cgit v1.2.3-74-g34f1