summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql.d/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_mysql.d/config.h')
-rw-r--r--plugins/check_mysql.d/config.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/check_mysql.d/config.h b/plugins/check_mysql.d/config.h
index 71ddbe8d..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>
@@ -24,10 +25,10 @@ typedef struct {
24 bool check_replica; 25 bool check_replica;
25 bool ignore_auth; 26 bool ignore_auth;
26 27
27 double warning_time; 28 mp_thresholds replica_thresholds;
28 double critical_time;
29 thresholds *my_threshold;
30 29
30 bool output_format_is_set;
31 mp_output_format output_format;
31} check_mysql_config; 32} check_mysql_config;
32 33
33check_mysql_config check_mysql_config_init() { 34check_mysql_config check_mysql_config_init() {
@@ -50,9 +51,9 @@ check_mysql_config check_mysql_config_init() {
50 .check_replica = false, 51 .check_replica = false,
51 .ignore_auth = false, 52 .ignore_auth = false,
52 53
53 .warning_time = 0, 54 .replica_thresholds = mp_thresholds_init(),
54 .critical_time = 0, 55
55 .my_threshold = NULL, 56 .output_format_is_set = false,
56 }; 57 };
57 return tmp; 58 return tmp;
58} 59}