summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql_query.d
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2026-06-18 16:47:56 +0200
committerGitHub <noreply@github.com>2026-06-18 16:47:56 +0200
commitc48c426a8e11c878d9c882b90025eaf2c97da2b0 (patch)
treea46634b9cfa327e966360c911220c6bebd2efe03 /plugins/check_mysql_query.d
parent9bf8c49b07de25c187ebebb79a7af664c9a2574f (diff)
downloadmonitoring-plugins-c48c426a8e11c878d9c882b90025eaf2c97da2b0.tar.gz
check_mysql_query: add option to hide query in output (#2279)
Co-authored-by: Lorenz Kästle <lorenz.kaestle@netways.de>
Diffstat (limited to 'plugins/check_mysql_query.d')
-rw-r--r--plugins/check_mysql_query.d/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/check_mysql_query.d/config.h b/plugins/check_mysql_query.d/config.h
index 32ab455a..99df44ee 100644
--- a/plugins/check_mysql_query.d/config.h
+++ b/plugins/check_mysql_query.d/config.h
@@ -16,6 +16,7 @@ typedef struct {
16 unsigned int db_port; 16 unsigned int db_port;
17 17
18 char *sql_query; 18 char *sql_query;
19 char *queryname;
19 mp_thresholds thresholds; 20 mp_thresholds thresholds;
20 21
21 bool output_format_is_set; 22 bool output_format_is_set;
@@ -28,12 +29,14 @@ check_mysql_query_config check_mysql_query_config_init() {
28 .db_socket = NULL, 29 .db_socket = NULL,
29 .db = NULL, 30 .db = NULL,
30 .db_user = NULL, 31 .db_user = NULL,
32
31 .db_pass = NULL, 33 .db_pass = NULL,
32 .opt_file = NULL, 34 .opt_file = NULL,
33 .opt_group = NULL, 35 .opt_group = NULL,
34 .db_port = MYSQL_PORT, 36 .db_port = MYSQL_PORT,
35 37
36 .sql_query = NULL, 38 .sql_query = NULL,
39 .queryname = NULL,
37 .thresholds = mp_thresholds_init(), 40 .thresholds = mp_thresholds_init(),
38 41
39 .output_format_is_set = false, 42 .output_format_is_set = false,