diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 12:32:45 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 12:32:45 +0100 |
commit | 458af516886dc6e6373734f4c5b48ea0ffa7e987 (patch) | |
tree | 186f0b61cfcafe18417898ec426089ee1ec5c3b7 /plugins/check_mysql.c | |
parent | b7b8abb8533d8d21e76481eb26bae9215e56b2fd (diff) | |
download | monitoring-plugins-458af51.tar.gz |
check_mysql: delare file local variables static
Diffstat (limited to 'plugins/check_mysql.c')
-rw-r--r-- | plugins/check_mysql.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index 1f0b7099..8a73772d 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c | |||
@@ -45,23 +45,23 @@ const char *email = "devel@monitoring-plugins.org"; | |||
45 | #include <mysqld_error.h> | 45 | #include <mysqld_error.h> |
46 | #include <errmsg.h> | 46 | #include <errmsg.h> |
47 | 47 | ||
48 | char *db_user = NULL; | 48 | static char *db_user = NULL; |
49 | char *db_host = NULL; | 49 | static char *db_host = NULL; |
50 | char *db_socket = NULL; | 50 | static char *db_socket = NULL; |
51 | char *db_pass = NULL; | 51 | static char *db_pass = NULL; |
52 | char *db = NULL; | 52 | static char *db = NULL; |
53 | char *ca_cert = NULL; | 53 | static char *ca_cert = NULL; |
54 | char *ca_dir = NULL; | 54 | static char *ca_dir = NULL; |
55 | char *cert = NULL; | 55 | static char *cert = NULL; |
56 | char *key = NULL; | 56 | static char *key = NULL; |
57 | char *ciphers = NULL; | 57 | static char *ciphers = NULL; |
58 | bool ssl = false; | 58 | static bool ssl = false; |
59 | char *opt_file = NULL; | 59 | static char *opt_file = NULL; |
60 | char *opt_group = NULL; | 60 | static char *opt_group = NULL; |
61 | unsigned int db_port = MYSQL_PORT; | 61 | static unsigned int db_port = MYSQL_PORT; |
62 | bool check_slave = false; | 62 | static bool check_slave = false; |
63 | bool ignore_auth = false; | 63 | static bool ignore_auth = false; |
64 | int verbose = 0; | 64 | static int verbose = 0; |
65 | 65 | ||
66 | static double warning_time = 0; | 66 | static double warning_time = 0; |
67 | static double critical_time = 0; | 67 | static double critical_time = 0; |
@@ -91,11 +91,11 @@ static const char *metric_counter[LENGTH_METRIC_COUNTER] = { | |||
91 | 91 | ||
92 | #define MYSQLDUMP_THREADS_QUERY "SELECT COUNT(1) mysqldumpThreads FROM information_schema.processlist WHERE info LIKE 'SELECT /*!40001 SQL_NO_CACHE */%'" | 92 | #define MYSQLDUMP_THREADS_QUERY "SELECT COUNT(1) mysqldumpThreads FROM information_schema.processlist WHERE info LIKE 'SELECT /*!40001 SQL_NO_CACHE */%'" |
93 | 93 | ||
94 | thresholds *my_threshold = NULL; | 94 | static thresholds *my_threshold = NULL; |
95 | 95 | ||
96 | int process_arguments (int, char **); | 96 | static int process_arguments (int, char **); |
97 | int validate_arguments (void); | 97 | static int validate_arguments (void); |
98 | void print_help (void); | 98 | static void print_help (void); |
99 | void print_usage (void); | 99 | void print_usage (void); |
100 | 100 | ||
101 | int | 101 | int |