diff options
-rw-r--r-- | plugins/check_dbi.c | 44 |
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 | ||
73 | char *host = NULL; | 73 | static char *host = NULL; |
74 | int verbose = 0; | 74 | static int verbose = 0; |
75 | 75 | ||
76 | char *warning_range = NULL; | 76 | static char *warning_range = NULL; |
77 | char *critical_range = NULL; | 77 | static char *critical_range = NULL; |
78 | thresholds *dbi_thresholds = NULL; | 78 | static thresholds *dbi_thresholds = NULL; |
79 | 79 | ||
80 | char *expect = NULL; | 80 | static char *expect = NULL; |
81 | 81 | ||
82 | regex_t expect_re; | 82 | static regex_t expect_re; |
83 | char *expect_re_str = NULL; | 83 | static char *expect_re_str = NULL; |
84 | int expect_re_cflags = 0; | 84 | static int expect_re_cflags = 0; |
85 | 85 | ||
86 | np_dbi_metric_t metric = METRIC_QUERY_RESULT; | 86 | static np_dbi_metric_t metric = METRIC_QUERY_RESULT; |
87 | np_dbi_type_t type = TYPE_NUMERIC; | 87 | static np_dbi_type_t type = TYPE_NUMERIC; |
88 | 88 | ||
89 | char *np_dbi_driver = NULL; | 89 | static char *np_dbi_driver = NULL; |
90 | driver_option_t *np_dbi_options = NULL; | 90 | static driver_option_t *np_dbi_options = NULL; |
91 | int np_dbi_options_num = 0; | 91 | static int np_dbi_options_num = 0; |
92 | char *np_dbi_database = NULL; | 92 | static char *np_dbi_database = NULL; |
93 | char *np_dbi_query = NULL; | 93 | static char *np_dbi_query = NULL; |
94 | 94 | ||
95 | int process_arguments(int, char **); | 95 | static int process_arguments(int, char **); |
96 | int validate_arguments(void); | 96 | static int validate_arguments(void); |
97 | void print_usage(void); | 97 | void print_usage(void); |
98 | void print_help(void); | 98 | static void print_help(void); |
99 | 99 | ||
100 | double timediff(struct timeval, struct timeval); | 100 | static double timediff(struct timeval, struct timeval); |
101 | 101 | ||
102 | void np_dbi_print_error(dbi_conn, char *, ...); | 102 | static void np_dbi_print_error(dbi_conn, char *, ...); |
103 | 103 | ||
104 | int do_query(dbi_conn, const char **, double *, double *); | 104 | static int do_query(dbi_conn, const char **, double *, double *); |
105 | 105 | ||
106 | int main(int argc, char **argv) { | 106 | int main(int argc, char **argv) { |
107 | int status = STATE_UNKNOWN; | 107 | int status = STATE_UNKNOWN; |