summaryrefslogtreecommitdiffstats
path: root/plugins/check_ntp_time.d
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ntp_time.d')
-rw-r--r--plugins/check_ntp_time.d/config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/check_ntp_time.d/config.h b/plugins/check_ntp_time.d/config.h
index 9bbd82aa..c1aa142c 100644
--- a/plugins/check_ntp_time.d/config.h
+++ b/plugins/check_ntp_time.d/config.h
@@ -5,6 +5,9 @@
5#include "thresholds.h" 5#include "thresholds.h"
6#include <stddef.h> 6#include <stddef.h>
7 7
8/* Time in microseconds to delay between polling to avoid a blocking response. */
9const long default_polling_delay = 500000L;
10
8typedef struct { 11typedef struct {
9 char *server_address; 12 char *server_address;
10 char *port; 13 char *port;
@@ -15,6 +18,7 @@ typedef struct {
15 mp_thresholds offset_thresholds; 18 mp_thresholds offset_thresholds;
16 19
17 bool output_format_is_set; 20 bool output_format_is_set;
21 long poll_delay;
18 mp_output_format output_format; 22 mp_output_format output_format;
19} check_ntp_time_config; 23} check_ntp_time_config;
20 24
@@ -29,6 +33,7 @@ check_ntp_time_config check_ntp_time_config_init() {
29 .offset_thresholds = mp_thresholds_init(), 33 .offset_thresholds = mp_thresholds_init(),
30 34
31 .output_format_is_set = false, 35 .output_format_is_set = false,
36 .poll_delay = default_polling_delay,
32 }; 37 };
33 38
34 mp_range warning = mp_range_init(); 39 mp_range warning = mp_range_init();