blob: 1c9952e5381571f6bd0ae531a387e0af9e6130de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#pragma once
#include "../../config.h"
#include "thresholds.h"
#include <mysql.h>
typedef struct {
char *db_host;
char *db_socket;
char *db;
char *db_user;
char *db_pass;
char *opt_file;
char *opt_group;
unsigned int db_port;
char *sql_query;
mp_thresholds thresholds;
} check_mysql_query_config;
check_mysql_query_config check_mysql_query_config_init() {
check_mysql_query_config tmp = {
.db_host = NULL,
.db_socket = NULL,
.db = NULL,
.db_user = NULL,
.db_pass = NULL,
.opt_file = NULL,
.opt_group = NULL,
.db_port = MYSQL_PORT,
.sql_query = NULL,
.thresholds = mp_thresholds_init(),
};
return tmp;
}
|