summaryrefslogtreecommitdiffstats
path: root/plugins/check_nt.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-08 22:04:19 (GMT)
committerGitHub <noreply@github.com>2024-11-08 22:04:19 (GMT)
commitb370072a5a1e21876abf8cf95f4622c02565ae07 (patch)
tree5856b120cba767922c8af0cf9d9b25c48bb32ed9 /plugins/check_nt.c
parentef39064f5148d96a6923f60a2fadd12810fcfa06 (diff)
parente8905c9e9c96b5b57f64edf0d5c7429aa39341b8 (diff)
downloadmonitoring-plugins-b370072a5a1e21876abf8cf95f4622c02565ae07.tar.gz
Merge pull request #2043 from RincewindsHat/cleanup/leftovers
Cleanup/leftovers
Diffstat (limited to 'plugins/check_nt.c')
-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) {