summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 12:39:35 (GMT)
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 12:39:35 (GMT)
commit6d4e76680c96d21b00d565fa0128e6956d0be8a3 (patch)
tree36a54c6fdfef41fe3c4cdebb16f2eed7a7f80f30
parentbf53f05ebfa10641a70e85a998928aad8ce8c4b7 (diff)
downloadmonitoring-plugins-6d4e76680c96d21b00d565fa0128e6956d0be8a3.tar.gz
check_ping: do not export local symbols
-rw-r--r--plugins/check_ping.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 3fff341..6dfb6b6 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -47,29 +47,29 @@ enum {
47 DEFAULT_MAX_PACKETS = 5 /* default no. of ICMP ECHO packets */ 47 DEFAULT_MAX_PACKETS = 5 /* default no. of ICMP ECHO packets */
48}; 48};
49 49
50int process_arguments(int, char **); 50static int process_arguments(int, char **);
51int get_threshold(char *, float *, int *); 51static int get_threshold(char *, float *, int *);
52int validate_arguments(void); 52static int validate_arguments(void);
53int run_ping(const char *cmd, const char *addr); 53static int run_ping(const char *cmd, const char *addr);
54int error_scan(char buf[MAX_INPUT_BUFFER], const char *addr); 54static int error_scan(char buf[MAX_INPUT_BUFFER], const char *addr);
55static void print_help(void);
55void print_usage(void); 56void print_usage(void);
56void print_help(void); 57
57 58static bool display_html = false;
58bool display_html = false; 59static int wpl = UNKNOWN_PACKET_LOSS;
59int wpl = UNKNOWN_PACKET_LOSS; 60static int cpl = UNKNOWN_PACKET_LOSS;
60int cpl = UNKNOWN_PACKET_LOSS; 61static float wrta = UNKNOWN_TRIP_TIME;
61float wrta = UNKNOWN_TRIP_TIME; 62static float crta = UNKNOWN_TRIP_TIME;
62float crta = UNKNOWN_TRIP_TIME; 63static char **addresses = NULL;
63char **addresses = NULL; 64static int n_addresses = 0;
64int n_addresses = 0; 65static int max_addr = 1;
65int max_addr = 1; 66static int max_packets = -1;
66int max_packets = -1; 67static int verbose = 0;
67int verbose = 0; 68
68 69static float rta = UNKNOWN_TRIP_TIME;
69float rta = UNKNOWN_TRIP_TIME; 70static int pl = UNKNOWN_PACKET_LOSS;
70int pl = UNKNOWN_PACKET_LOSS; 71
71 72static char *warn_text;
72char *warn_text;
73 73
74int main(int argc, char **argv) { 74int main(int argc, char **argv) {
75 char *cmd = NULL; 75 char *cmd = NULL;