diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-05 12:04:30 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-05 12:04:30 +0100 |
| commit | a9b63deedb1775271fa1335a5d3eb034d0628e91 (patch) | |
| tree | e9ff510b5ec2f7af3b79f2d9bc12b5f23cb05289 /plugins/check_ntp_peer.d/config.h | |
| parent | 99351f0560a5f457e499417366bdfdec0172a428 (diff) | |
| download | monitoring-plugins-a9b63deedb1775271fa1335a5d3eb034d0628e91.tar.gz | |
check_ntp_peer: add cli param to set output format
Diffstat (limited to 'plugins/check_ntp_peer.d/config.h')
| -rw-r--r-- | plugins/check_ntp_peer.d/config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/check_ntp_peer.d/config.h b/plugins/check_ntp_peer.d/config.h index a6dd5c4c..488d936c 100644 --- a/plugins/check_ntp_peer.d/config.h +++ b/plugins/check_ntp_peer.d/config.h | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | #pragma once | 1 | #pragma once |
| 2 | 2 | ||
| 3 | #include "../../config.h" | 3 | #include "../../config.h" |
| 4 | #include "output.h" | ||
| 4 | #include "perfdata.h" | 5 | #include "perfdata.h" |
| 5 | #include "thresholds.h" | 6 | #include "thresholds.h" |
| 6 | #include <stddef.h> | 7 | #include <stddef.h> |
| @@ -29,6 +30,9 @@ typedef struct { | |||
| 29 | // jitter stuff | 30 | // jitter stuff |
| 30 | bool do_jitter; | 31 | bool do_jitter; |
| 31 | mp_thresholds jitter_thresholds; | 32 | mp_thresholds jitter_thresholds; |
| 33 | |||
| 34 | bool output_format_is_set; | ||
| 35 | mp_output_format output_format; | ||
| 32 | } check_ntp_peer_config; | 36 | } check_ntp_peer_config; |
| 33 | 37 | ||
| 34 | check_ntp_peer_config check_ntp_peer_config_init() { | 38 | check_ntp_peer_config check_ntp_peer_config_init() { |
| @@ -47,6 +51,8 @@ check_ntp_peer_config check_ntp_peer_config_init() { | |||
| 47 | 51 | ||
| 48 | .do_jitter = false, | 52 | .do_jitter = false, |
| 49 | .jitter_thresholds = mp_thresholds_init(), | 53 | .jitter_thresholds = mp_thresholds_init(), |
| 54 | |||
| 55 | .output_format_is_set = false, | ||
| 50 | }; | 56 | }; |
| 51 | 57 | ||
| 52 | mp_range stratum_default = mp_range_init(); | 58 | mp_range stratum_default = mp_range_init(); |
