diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-07 15:01:36 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-07 15:01:36 +0100 |
| commit | 9d827acbe1aac0edaa91a8765a87412a189cadf1 (patch) | |
| tree | 89d4c09957e7b9e1787742e6ce1bdf14e18fc537 /plugins/check_mysql_query.d | |
| parent | b5e7f4e6cc8c586fdb20949369e05105157a61a7 (diff) | |
| download | monitoring-plugins-9d827acbe1aac0edaa91a8765a87412a189cadf1.tar.gz | |
check_mysql_query: implement modern output
Diffstat (limited to 'plugins/check_mysql_query.d')
| -rw-r--r-- | plugins/check_mysql_query.d/config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_mysql_query.d/config.h b/plugins/check_mysql_query.d/config.h index be019160..1c9952e5 100644 --- a/plugins/check_mysql_query.d/config.h +++ b/plugins/check_mysql_query.d/config.h | |||
| @@ -15,7 +15,7 @@ typedef struct { | |||
| 15 | unsigned int db_port; | 15 | unsigned int db_port; |
| 16 | 16 | ||
| 17 | char *sql_query; | 17 | char *sql_query; |
| 18 | thresholds *my_thresholds; | 18 | mp_thresholds thresholds; |
| 19 | } check_mysql_query_config; | 19 | } check_mysql_query_config; |
| 20 | 20 | ||
| 21 | check_mysql_query_config check_mysql_query_config_init() { | 21 | check_mysql_query_config check_mysql_query_config_init() { |
| @@ -30,7 +30,7 @@ check_mysql_query_config check_mysql_query_config_init() { | |||
| 30 | .db_port = MYSQL_PORT, | 30 | .db_port = MYSQL_PORT, |
| 31 | 31 | ||
| 32 | .sql_query = NULL, | 32 | .sql_query = NULL, |
| 33 | .my_thresholds = NULL, | 33 | .thresholds = mp_thresholds_init(), |
| 34 | }; | 34 | }; |
| 35 | return tmp; | 35 | return tmp; |
| 36 | } | 36 | } |
