diff options
Diffstat (limited to 'plugins/check_pgsql.d')
| -rw-r--r-- | plugins/check_pgsql.d/config.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ | |||
| 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> |
| @@ -27,6 +28,9 @@ typedef struct { | |||
| 27 | 28 | ||
| 28 | mp_thresholds time_thresholds; | 29 | mp_thresholds time_thresholds; |
| 29 | mp_thresholds qthresholds; | 30 | mp_thresholds qthresholds; |
| 31 | |||
| 32 | bool output_format_is_set; | ||
| 33 | mp_output_format output_format; | ||
| 30 | } check_pgsql_config; | 34 | } check_pgsql_config; |
| 31 | 35 | ||
| 32 | /* begin, by setting the parameters for a backend connection if the | 36 | /* begin, by setting the parameters for a backend connection if the |
| @@ -51,6 +55,8 @@ check_pgsql_config check_pgsql_config_init() { | |||
| 51 | 55 | ||
| 52 | .time_thresholds = mp_thresholds_init(), | 56 | .time_thresholds = mp_thresholds_init(), |
| 53 | .qthresholds = mp_thresholds_init(), | 57 | .qthresholds = mp_thresholds_init(), |
| 58 | |||
| 59 | .output_format_is_set = false, | ||
| 54 | }; | 60 | }; |
| 55 | 61 | ||
| 56 | mp_range tmp_range = mp_range_init(); | 62 | mp_range tmp_range = mp_range_init(); |
