diff options
Diffstat (limited to 'plugins/check_nt.c')
-rw-r--r-- | plugins/check_nt.c | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/plugins/check_nt.c b/plugins/check_nt.c index 413aad6..dec0b66 100644 --- a/plugins/check_nt.c +++ b/plugins/check_nt.c | |||
@@ -59,26 +59,25 @@ enum { | |||
59 | PORT = 1248 | 59 | PORT = 1248 |
60 | }; | 60 | }; |
61 | 61 | ||
62 | char *server_address = NULL; | 62 | static char *server_address = NULL; |
63 | char *volume_name = NULL; | 63 | static int server_port = PORT; |
64 | int server_port = PORT; | 64 | static char *value_list = NULL; |
65 | char *value_list = NULL; | 65 | static char *req_password = NULL; |
66 | char *req_password = NULL; | 66 | static unsigned long lvalue_list[MAX_VALUE_LIST]; |
67 | unsigned long lvalue_list[MAX_VALUE_LIST]; | 67 | static unsigned long warning_value = 0L; |
68 | unsigned long warning_value = 0L; | 68 | static unsigned long critical_value = 0L; |
69 | unsigned long critical_value = 0L; | 69 | static bool check_warning_value = false; |
70 | bool check_warning_value = false; | 70 | static bool check_critical_value = false; |
71 | bool check_critical_value = false; | 71 | static enum checkvars vars_to_check = CHECK_NONE; |
72 | enum checkvars vars_to_check = CHECK_NONE; | 72 | static bool show_all = false; |
73 | bool show_all = false; | 73 | |
74 | 74 | static char recv_buffer[MAX_INPUT_BUFFER]; | |
75 | char recv_buffer[MAX_INPUT_BUFFER]; | 75 | |
76 | 76 | static void fetch_data(const char *address, int port, const char *sendb); | |
77 | void fetch_data(const char *address, int port, const char *sendb); | 77 | static int process_arguments(int /*argc*/, char ** /*argv*/); |
78 | int process_arguments(int, char **); | 78 | static void preparelist(char *string); |
79 | void preparelist(char *string); | 79 | static bool strtoularray(unsigned long *array, char *string, const char *delim); |
80 | bool strtoularray(unsigned long *array, char *string, const char *delim); | 80 | static void print_help(void); |
81 | void print_help(void); | ||
82 | void print_usage(void); | 81 | void print_usage(void); |
83 | 82 | ||
84 | int main(int argc, char **argv) { | 83 | int main(int argc, char **argv) { |