diff options
Diffstat (limited to 'plugins/check_mysql.d')
| -rw-r--r-- | plugins/check_mysql.d/config.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/check_mysql.d/config.h b/plugins/check_mysql.d/config.h index ef086cfc..1d8c82bb 100644 --- a/plugins/check_mysql.d/config.h +++ b/plugins/check_mysql.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 "thresholds.h" | 5 | #include "thresholds.h" |
| 5 | #include <stddef.h> | 6 | #include <stddef.h> |
| 6 | #include <mysql.h> | 7 | #include <mysql.h> |
| @@ -26,6 +27,8 @@ typedef struct { | |||
| 26 | 27 | ||
| 27 | mp_thresholds replica_thresholds; | 28 | mp_thresholds replica_thresholds; |
| 28 | 29 | ||
| 30 | bool output_format_is_set; | ||
| 31 | mp_output_format output_format; | ||
| 29 | } check_mysql_config; | 32 | } check_mysql_config; |
| 30 | 33 | ||
| 31 | check_mysql_config check_mysql_config_init() { | 34 | check_mysql_config check_mysql_config_init() { |
| @@ -49,6 +52,8 @@ check_mysql_config check_mysql_config_init() { | |||
| 49 | .ignore_auth = false, | 52 | .ignore_auth = false, |
| 50 | 53 | ||
| 51 | .replica_thresholds = mp_thresholds_init(), | 54 | .replica_thresholds = mp_thresholds_init(), |
| 55 | |||
| 56 | .output_format_is_set = false, | ||
| 52 | }; | 57 | }; |
| 53 | return tmp; | 58 | return tmp; |
| 54 | } | 59 | } |
