summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql_query.d/config.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2026-01-09 14:57:57 +0100
committerGitHub <noreply@github.com>2026-01-09 14:57:57 +0100
commitda4fb28fca51b180d50608b0c847b1c0927cd8c5 (patch)
treed20769e0a61ac2ba76920190050d3e0a3e7c85b7 /plugins/check_mysql_query.d/config.h
parentb09a8b530df8a23610889d0b89b148f22db3568a (diff)
parentf694f4cd4dfead0da6feab04d92335d9bbe185b6 (diff)
downloadmonitoring-plugins-da4fb28fca51b180d50608b0c847b1c0927cd8c5.tar.gz
Merge branch 'master' into refactor/check_ide_smart
Diffstat (limited to 'plugins/check_mysql_query.d/config.h')
-rw-r--r--plugins/check_mysql_query.d/config.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/check_mysql_query.d/config.h b/plugins/check_mysql_query.d/config.h
index be019160..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
@@ -15,7 +16,10 @@ typedef struct {
15 unsigned int db_port; 16 unsigned int db_port;
16 17
17 char *sql_query; 18 char *sql_query;
18 thresholds *my_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() {
@@ -30,7 +34,9 @@ check_mysql_query_config check_mysql_query_config_init() {
30 .db_port = MYSQL_PORT, 34 .db_port = MYSQL_PORT,
31 35
32 .sql_query = NULL, 36 .sql_query = NULL,
33 .my_thresholds = NULL, 37 .thresholds = mp_thresholds_init(),
38
39 .output_format_is_set = false,
34 }; 40 };
35 return tmp; 41 return tmp;
36} 42}