summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_nt.c39
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
62char *server_address = NULL; 62static char *server_address = NULL;
63char *volume_name = NULL; 63static int server_port = PORT;
64int server_port = PORT; 64static char *value_list = NULL;
65char *value_list = NULL; 65static char *req_password = NULL;
66char *req_password = NULL; 66static unsigned long lvalue_list[MAX_VALUE_LIST];
67unsigned long lvalue_list[MAX_VALUE_LIST]; 67static unsigned long warning_value = 0L;
68unsigned long warning_value = 0L; 68static unsigned long critical_value = 0L;
69unsigned long critical_value = 0L; 69static bool check_warning_value = false;
70bool check_warning_value = false; 70static bool check_critical_value = false;
71bool check_critical_value = false; 71static enum checkvars vars_to_check = CHECK_NONE;
72enum checkvars vars_to_check = CHECK_NONE; 72static bool show_all = false;
73bool show_all = false; 73
74 74static char recv_buffer[MAX_INPUT_BUFFER];
75char recv_buffer[MAX_INPUT_BUFFER]; 75
76 76static void fetch_data(const char *address, int port, const char *sendb);
77void fetch_data(const char *address, int port, const char *sendb); 77static int process_arguments(int /*argc*/, char ** /*argv*/);
78int process_arguments(int, char **); 78static void preparelist(char *string);
79void preparelist(char *string); 79static bool strtoularray(unsigned long *array, char *string, const char *delim);
80bool strtoularray(unsigned long *array, char *string, const char *delim); 80static void print_help(void);
81void print_help(void);
82void print_usage(void); 81void print_usage(void);
83 82
84int main(int argc, char **argv) { 83int main(int argc, char **argv) {