summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql_query.d/config.h
diff options
context:
space:
mode:
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}