summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 02:15:12 (GMT)
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 02:15:12 (GMT)
commit981f1d562990d96001a88ea1227bc047561879c7 (patch)
tree9791c4540540129fb03bcd484dbc7199d70bff87
parent267c6689813d6acac60a8cb4dce1e58055f8471d (diff)
downloadmonitoring-plugins-981f1d562990d96001a88ea1227bc047561879c7.tar.gz
check_dbi: do not export local symbols
-rw-r--r--plugins/check_dbi.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/plugins/check_dbi.c b/plugins/check_dbi.c
index cb7c881..e896448 100644
--- a/plugins/check_dbi.c
+++ b/plugins/check_dbi.c
@@ -70,38 +70,38 @@ typedef struct {
70 char *value; 70 char *value;
71} driver_option_t; 71} driver_option_t;
72 72
73char *host = NULL; 73static char *host = NULL;
74int verbose = 0; 74static int verbose = 0;
75 75
76char *warning_range = NULL; 76static char *warning_range = NULL;
77char *critical_range = NULL; 77static char *critical_range = NULL;
78thresholds *dbi_thresholds = NULL; 78static thresholds *dbi_thresholds = NULL;
79 79
80char *expect = NULL; 80static char *expect = NULL;
81 81
82regex_t expect_re; 82static regex_t expect_re;
83char *expect_re_str = NULL; 83static char *expect_re_str = NULL;
84int expect_re_cflags = 0; 84static int expect_re_cflags = 0;
85 85
86np_dbi_metric_t metric = METRIC_QUERY_RESULT; 86static np_dbi_metric_t metric = METRIC_QUERY_RESULT;
87np_dbi_type_t type = TYPE_NUMERIC; 87static np_dbi_type_t type = TYPE_NUMERIC;
88 88
89char *np_dbi_driver = NULL; 89static char *np_dbi_driver = NULL;
90driver_option_t *np_dbi_options = NULL; 90static driver_option_t *np_dbi_options = NULL;
91int np_dbi_options_num = 0; 91static int np_dbi_options_num = 0;
92char *np_dbi_database = NULL; 92static char *np_dbi_database = NULL;
93char *np_dbi_query = NULL; 93static char *np_dbi_query = NULL;
94 94
95int process_arguments(int, char **); 95static int process_arguments(int, char **);
96int validate_arguments(void); 96static int validate_arguments(void);
97void print_usage(void); 97void print_usage(void);
98void print_help(void); 98static void print_help(void);
99 99
100double timediff(struct timeval, struct timeval); 100static double timediff(struct timeval, struct timeval);
101 101
102void np_dbi_print_error(dbi_conn, char *, ...); 102static void np_dbi_print_error(dbi_conn, char *, ...);
103 103
104int do_query(dbi_conn, const char **, double *, double *); 104static int do_query(dbi_conn, const char **, double *, double *);
105 105
106int main(int argc, char **argv) { 106int main(int argc, char **argv) {
107 int status = STATE_UNKNOWN; 107 int status = STATE_UNKNOWN;