From 0fb65a3a90e778f942a1f61f210a2dd969dd9597 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Fri, 7 Nov 2025 13:31:27 +0100 Subject: check_mysql: implement modern output --- plugins/check_mysql.d/config.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'plugins/check_mysql.d') 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 { bool check_replica; bool ignore_auth; - double warning_time; - double critical_time; - thresholds *my_threshold; + mp_thresholds replica_thresholds; } check_mysql_config; @@ -50,9 +48,7 @@ check_mysql_config check_mysql_config_init() { .check_replica = false, .ignore_auth = false, - .warning_time = 0, - .critical_time = 0, - .my_threshold = NULL, + .replica_thresholds = mp_thresholds_init(), }; return tmp; } -- cgit v1.2.3-74-g34f1