summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql.d
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-11-07 14:15:26 +0100
committerGitHub <noreply@github.com>2025-11-07 14:15:26 +0100
commitb5e7f4e6cc8c586fdb20949369e05105157a61a7 (patch)
treefa0690f4f78a828f5bc8fb2bec07222bb5a6ab0e /plugins/check_mysql.d
parentca3acbe274bf44578c5ec5d0e5414379cbddb21f (diff)
parent0fb65a3a90e778f942a1f61f210a2dd969dd9597 (diff)
downloadmonitoring-plugins-b5e7f4e6cc8c586fdb20949369e05105157a61a7.tar.gz
Merge pull request #2174 from RincewindsHat/modern_output/check_mysql
Modern output/check mysql
Diffstat (limited to 'plugins/check_mysql.d')
-rw-r--r--plugins/check_mysql.d/config.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/check_mysql.d/config.h b/plugins/check_mysql.d/config.h
index 71ddbe8d..ef086cfc 100644
--- a/plugins/check_mysql.d/config.h
+++ b/plugins/check_mysql.d/config.h
@@ -24,9 +24,7 @@ typedef struct {
24 bool check_replica; 24 bool check_replica;
25 bool ignore_auth; 25 bool ignore_auth;
26 26
27 double warning_time; 27 mp_thresholds replica_thresholds;
28 double critical_time;
29 thresholds *my_threshold;
30 28
31} check_mysql_config; 29} check_mysql_config;
32 30
@@ -50,9 +48,7 @@ check_mysql_config check_mysql_config_init() {
50 .check_replica = false, 48 .check_replica = false,
51 .ignore_auth = false, 49 .ignore_auth = false,
52 50
53 .warning_time = 0, 51 .replica_thresholds = mp_thresholds_init(),
54 .critical_time = 0,
55 .my_threshold = NULL,
56 }; 52 };
57 return tmp; 53 return tmp;
58} 54}