diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 02:54:48 +0100 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 02:54:48 +0100 |
commit | ebb453f55ef6e64033ac50341963eb49cf457796 (patch) | |
tree | 90cf0cf6eea21449d832a9ea19396d4e131a196a /plugins | |
parent | a30f0c6c08f90de8abe6ca277e98102aa4d6950c (diff) | |
download | monitoring-plugins-ebb453f55ef6e64033ac50341963eb49cf457796.tar.gz |
check_cluster: do not export local symbols
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_cluster.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/plugins/check_cluster.c b/plugins/check_cluster.c index 6ca43c63..0afb3f42 100644 --- a/plugins/check_cluster.c +++ b/plugins/check_cluster.c | |||
@@ -33,29 +33,29 @@ const char *email = "devel@monitoring-plugins.org"; | |||
33 | #define CHECK_SERVICES 1 | 33 | #define CHECK_SERVICES 1 |
34 | #define CHECK_HOSTS 2 | 34 | #define CHECK_HOSTS 2 |
35 | 35 | ||
36 | void print_help(void); | 36 | static void print_help(void); |
37 | void print_usage(void); | 37 | void print_usage(void); |
38 | 38 | ||
39 | int total_services_ok = 0; | 39 | static int total_services_ok = 0; |
40 | int total_services_warning = 0; | 40 | static int total_services_warning = 0; |
41 | int total_services_unknown = 0; | 41 | static int total_services_unknown = 0; |
42 | int total_services_critical = 0; | 42 | static int total_services_critical = 0; |
43 | 43 | ||
44 | int total_hosts_up = 0; | 44 | static int total_hosts_up = 0; |
45 | int total_hosts_down = 0; | 45 | static int total_hosts_down = 0; |
46 | int total_hosts_unreachable = 0; | 46 | static int total_hosts_unreachable = 0; |
47 | 47 | ||
48 | char *warn_threshold; | 48 | static char *warn_threshold; |
49 | char *crit_threshold; | 49 | static char *crit_threshold; |
50 | 50 | ||
51 | int check_type = CHECK_SERVICES; | 51 | static int check_type = CHECK_SERVICES; |
52 | 52 | ||
53 | char *data_vals = NULL; | 53 | static char *data_vals = NULL; |
54 | char *label = NULL; | 54 | static char *label = NULL; |
55 | 55 | ||
56 | int verbose = 0; | 56 | static int verbose = 0; |
57 | 57 | ||
58 | int process_arguments(int, char **); | 58 | static int process_arguments(int, char **); |
59 | 59 | ||
60 | int main(int argc, char **argv) { | 60 | int main(int argc, char **argv) { |
61 | char *ptr; | 61 | char *ptr; |