summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql.d
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.d
parentb09a8b530df8a23610889d0b89b148f22db3568a (diff)
parentf694f4cd4dfead0da6feab04d92335d9bbe185b6 (diff)
downloadmonitoring-plugins-da4fb28fca51b180d50608b0c847b1c0927cd8c5.tar.gz
Merge branch 'master' into refactor/check_ide_smart
Diffstat (limited to 'plugins/check_mysql.d')
-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}