diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-07-06 23:41:07 +0200 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-07-06 23:41:07 +0200 |
| commit | 6a7c0d067f9be08ea64d456d570bde02bd6d6c1c (patch) | |
| tree | e6eb03fac46c10a790af603178dc36f25c305ae5 /plugins/check_mysql_query.d | |
| parent | 9a520acdf4c39f8906046ab239d3e83959cd5350 (diff) | |
| parent | 55c0bb748ec04354a5d63e95b3703fcec2cbd588 (diff) | |
| download | monitoring-plugins-6a7c0d067f9be08ea64d456d570bde02bd6d6c1c.tar.gz | |
Merge branch 'master' into refactor/check_curl
Diffstat (limited to 'plugins/check_mysql_query.d')
| -rw-r--r-- | plugins/check_mysql_query.d/config.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/plugins/check_mysql_query.d/config.h b/plugins/check_mysql_query.d/config.h new file mode 100644 index 00000000..be019160 --- /dev/null +++ b/plugins/check_mysql_query.d/config.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "../../config.h" | ||
| 4 | #include "thresholds.h" | ||
| 5 | #include <mysql.h> | ||
| 6 | |||
| 7 | typedef struct { | ||
| 8 | char *db_host; | ||
| 9 | char *db_socket; | ||
| 10 | char *db; | ||
| 11 | char *db_user; | ||
| 12 | char *db_pass; | ||
| 13 | char *opt_file; | ||
| 14 | char *opt_group; | ||
| 15 | unsigned int db_port; | ||
| 16 | |||
| 17 | char *sql_query; | ||
| 18 | thresholds *my_thresholds; | ||
| 19 | } check_mysql_query_config; | ||
| 20 | |||
| 21 | check_mysql_query_config check_mysql_query_config_init() { | ||
| 22 | check_mysql_query_config tmp = { | ||
| 23 | .db_host = NULL, | ||
| 24 | .db_socket = NULL, | ||
| 25 | .db = NULL, | ||
| 26 | .db_user = NULL, | ||
| 27 | .db_pass = NULL, | ||
| 28 | .opt_file = NULL, | ||
| 29 | .opt_group = NULL, | ||
| 30 | .db_port = MYSQL_PORT, | ||
| 31 | |||
| 32 | .sql_query = NULL, | ||
| 33 | .my_thresholds = NULL, | ||
| 34 | }; | ||
| 35 | return tmp; | ||
| 36 | } | ||
