summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-08 12:32:45 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-08 12:32:45 +0100
commit458af516886dc6e6373734f4c5b48ea0ffa7e987 (patch)
tree186f0b61cfcafe18417898ec426089ee1ec5c3b7 /plugins/check_mysql.c
parentb7b8abb8533d8d21e76481eb26bae9215e56b2fd (diff)
downloadmonitoring-plugins-458af51.tar.gz
check_mysql: delare file local variables static
Diffstat (limited to 'plugins/check_mysql.c')
-rw-r--r--plugins/check_mysql.c42
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
48char *db_user = NULL; 48static char *db_user = NULL;
49char *db_host = NULL; 49static char *db_host = NULL;
50char *db_socket = NULL; 50static char *db_socket = NULL;
51char *db_pass = NULL; 51static char *db_pass = NULL;
52char *db = NULL; 52static char *db = NULL;
53char *ca_cert = NULL; 53static char *ca_cert = NULL;
54char *ca_dir = NULL; 54static char *ca_dir = NULL;
55char *cert = NULL; 55static char *cert = NULL;
56char *key = NULL; 56static char *key = NULL;
57char *ciphers = NULL; 57static char *ciphers = NULL;
58bool ssl = false; 58static bool ssl = false;
59char *opt_file = NULL; 59static char *opt_file = NULL;
60char *opt_group = NULL; 60static char *opt_group = NULL;
61unsigned int db_port = MYSQL_PORT; 61static unsigned int db_port = MYSQL_PORT;
62bool check_slave = false; 62static bool check_slave = false;
63bool ignore_auth = false; 63static bool ignore_auth = false;
64int verbose = 0; 64static int verbose = 0;
65 65
66static double warning_time = 0; 66static double warning_time = 0;
67static double critical_time = 0; 67static 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
94thresholds *my_threshold = NULL; 94static thresholds *my_threshold = NULL;
95 95
96int process_arguments (int, char **); 96static int process_arguments (int, char **);
97int validate_arguments (void); 97static int validate_arguments (void);
98void print_help (void); 98static void print_help (void);
99void print_usage (void); 99void print_usage (void);
100 100
101int 101int