summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql_query.d
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-11-26 13:50:58 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-11-26 13:57:12 +0100
commit317ee266a88bd8752113df39f12e2d133edd6802 (patch)
treea676bd3f036767d598dbe7a8b3ecc9328e4bb360 /plugins/check_mysql_query.d
parent3657197cf77ca78f6e2d003a71d48dc5d4dc45ae (diff)
downloadmonitoring-plugins-317ee266a88bd8752113df39f12e2d133edd6802.tar.gz
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.h6
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
21check_mysql_query_config check_mysql_query_config_init() { 25check_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}