diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-26 13:50:58 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-26 13:57:12 +0100 |
| commit | 317ee266a88bd8752113df39f12e2d133edd6802 (patch) | |
| tree | a676bd3f036767d598dbe7a8b3ecc9328e4bb360 /plugins/check_mysql.d | |
| parent | 3657197cf77ca78f6e2d003a71d48dc5d4dc45ae (diff) | |
| download | monitoring-plugins-317ee266a88bd8752113df39f12e2d133edd6802.tar.gz | |
Add output formatting option where they were forgotten
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 | } |
