From 71e0d5e0732225e95affbacd1a08f2a8513d2802 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 5 Nov 2025 12:19:20 +0100 Subject: check_ntp_time: add cli option for output format --- plugins/check_ntp_time.d/config.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/check_ntp_time.d/config.h') diff --git a/plugins/check_ntp_time.d/config.h b/plugins/check_ntp_time.d/config.h index a62e4ceb..9bbd82aa 100644 --- a/plugins/check_ntp_time.d/config.h +++ b/plugins/check_ntp_time.d/config.h @@ -1,6 +1,7 @@ #pragma once #include "../../config.h" +#include "output.h" #include "thresholds.h" #include @@ -12,6 +13,9 @@ typedef struct { int time_offset; mp_thresholds offset_thresholds; + + bool output_format_is_set; + mp_output_format output_format; } check_ntp_time_config; check_ntp_time_config check_ntp_time_config_init() { @@ -23,6 +27,8 @@ check_ntp_time_config check_ntp_time_config_init() { .time_offset = 0, .offset_thresholds = mp_thresholds_init(), + + .output_format_is_set = false, }; mp_range warning = mp_range_init(); -- cgit v1.2.3-74-g34f1