diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 22:04:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-08 22:04:19 (GMT) |
commit | b370072a5a1e21876abf8cf95f4622c02565ae07 (patch) | |
tree | 5856b120cba767922c8af0cf9d9b25c48bb32ed9 /plugins/check_overcr.c | |
parent | ef39064f5148d96a6923f60a2fadd12810fcfa06 (diff) | |
parent | e8905c9e9c96b5b57f64edf0d5c7429aa39341b8 (diff) | |
download | monitoring-plugins-b370072a5a1e21876abf8cf95f4622c02565ae07.tar.gz |
Merge pull request #2043 from RincewindsHat/cleanup/leftovers
Cleanup/leftovers
Diffstat (limited to 'plugins/check_overcr.c')
-rw-r--r-- | plugins/check_overcr.c | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c index e80d477..599540b 100644 --- a/plugins/check_overcr.c +++ b/plugins/check_overcr.c | |||
@@ -52,23 +52,22 @@ enum { | |||
52 | PORT = 2000 | 52 | PORT = 2000 |
53 | }; | 53 | }; |
54 | 54 | ||
55 | char *server_address = NULL; | 55 | static char *server_address = NULL; |
56 | int server_port = PORT; | 56 | static int server_port = PORT; |
57 | double warning_value = 0L; | 57 | static double warning_value = 0L; |
58 | double critical_value = 0L; | 58 | static double critical_value = 0L; |
59 | bool check_warning_value = false; | 59 | static bool check_warning_value = false; |
60 | bool check_critical_value = false; | 60 | static bool check_critical_value = false; |
61 | enum checkvar vars_to_check = NONE; | 61 | static enum checkvar vars_to_check = NONE; |
62 | int cmd_timeout = 1; | 62 | |
63 | 63 | static int netstat_port = 0; | |
64 | int netstat_port = 0; | 64 | static char *disk_name = NULL; |
65 | char *disk_name = NULL; | 65 | static char *process_name = NULL; |
66 | char *process_name = NULL; | 66 | static char send_buffer[MAX_INPUT_BUFFER]; |
67 | char send_buffer[MAX_INPUT_BUFFER]; | 67 | |
68 | 68 | static int process_arguments(int, char **); | |
69 | int process_arguments(int, char **); | ||
70 | void print_usage(void); | 69 | void print_usage(void); |
71 | void print_help(void); | 70 | static void print_help(void); |
72 | 71 | ||
73 | int main(int argc, char **argv) { | 72 | int main(int argc, char **argv) { |
74 | int result = STATE_UNKNOWN; | 73 | int result = STATE_UNKNOWN; |