summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql.d
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-11-26 14:04:51 +0100
committerGitHub <noreply@github.com>2025-11-26 14:04:51 +0100
commit0378484a57f219fc0156e208bff5152ee8624837 (patch)
treea676bd3f036767d598dbe7a8b3ecc9328e4bb360 /plugins/check_mysql.d
parent3657197cf77ca78f6e2d003a71d48dc5d4dc45ae (diff)
parent317ee266a88bd8752113df39f12e2d133edd6802 (diff)
downloadmonitoring-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.d')
-rw-r--r--plugins/check_mysql.d/config.h5
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
31check_mysql_config check_mysql_config_init() { 34check_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}