diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-26 14:04:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-26 14:04:51 +0100 |
| commit | 0378484a57f219fc0156e208bff5152ee8624837 (patch) | |
| tree | a676bd3f036767d598dbe7a8b3ecc9328e4bb360 /plugins/check_mysql_query.d | |
| parent | 3657197cf77ca78f6e2d003a71d48dc5d4dc45ae (diff) | |
| parent | 317ee266a88bd8752113df39f12e2d133edd6802 (diff) | |
| download | monitoring-plugins-0378484a57f219fc0156e208bff5152ee8624837.tar.gz | |
Merge pull request #2181 from RincewindsHat/fix/output_arguments
Add output formatting option where they were forgotten
Diffstat (limited to 'plugins/check_mysql_query.d')
| -rw-r--r-- | plugins/check_mysql_query.d/config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/check_mysql_query.d/config.h b/plugins/check_mysql_query.d/config.h index 1c9952e5..32ab455a 100644 --- a/plugins/check_mysql_query.d/config.h +++ b/plugins/check_mysql_query.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 <mysql.h> | 6 | #include <mysql.h> |
| 6 | 7 | ||
| @@ -16,6 +17,9 @@ typedef struct { | |||
| 16 | 17 | ||
| 17 | char *sql_query; | 18 | char *sql_query; |
| 18 | mp_thresholds thresholds; | 19 | mp_thresholds thresholds; |
| 20 | |||
| 21 | bool output_format_is_set; | ||
| 22 | mp_output_format output_format; | ||
| 19 | } check_mysql_query_config; | 23 | } check_mysql_query_config; |
| 20 | 24 | ||
| 21 | check_mysql_query_config check_mysql_query_config_init() { | 25 | check_mysql_query_config check_mysql_query_config_init() { |
| @@ -31,6 +35,8 @@ check_mysql_query_config check_mysql_query_config_init() { | |||
| 31 | 35 | ||
| 32 | .sql_query = NULL, | 36 | .sql_query = NULL, |
| 33 | .thresholds = mp_thresholds_init(), | 37 | .thresholds = mp_thresholds_init(), |
| 38 | |||
| 39 | .output_format_is_set = false, | ||
| 34 | }; | 40 | }; |
| 35 | return tmp; | 41 | return tmp; |
| 36 | } | 42 | } |
