diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 +0000 |
commit | caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe (patch) | |
tree | 118fd80cc8ba27ef695a8e8ce409e5d70f4fa451 /plugins/check_ping.c | |
parent | 16f53e0717b60660145388b0feb351628f606211 (diff) | |
download | monitoring-plugins-caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe.tar.gz |
Bulk EOL cleanup
$ git diff --ignore-space-change|diffstat
0 files changed
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r-- | plugins/check_ping.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c index 0f3292d0..c457ad64 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c | |||
@@ -112,7 +112,7 @@ main (int argc, char **argv) | |||
112 | #endif | 112 | #endif |
113 | 113 | ||
114 | for (i = 0 ; i < n_addresses ; i++) { | 114 | for (i = 0 ; i < n_addresses ; i++) { |
115 | 115 | ||
116 | #ifdef PING6_COMMAND | 116 | #ifdef PING6_COMMAND |
117 | if (address_family != AF_INET && is_inet6_addr(addresses[i])) | 117 | if (address_family != AF_INET && is_inet6_addr(addresses[i])) |
118 | rawcmd = strdup(PING6_COMMAND); | 118 | rawcmd = strdup(PING6_COMMAND); |
@@ -150,8 +150,8 @@ main (int argc, char **argv) | |||
150 | else if (pl >= wpl || rta >= wrta) | 150 | else if (pl >= wpl || rta >= wrta) |
151 | this_result = STATE_WARNING; | 151 | this_result = STATE_WARNING; |
152 | else if (pl >= 0 && rta >= 0) | 152 | else if (pl >= 0 && rta >= 0) |
153 | this_result = max_state (STATE_OK, this_result); | 153 | this_result = max_state (STATE_OK, this_result); |
154 | 154 | ||
155 | if (n_addresses > 1 && this_result != STATE_UNKNOWN) | 155 | if (n_addresses > 1 && this_result != STATE_UNKNOWN) |
156 | die (STATE_OK, "%s is alive\n", addresses[i]); | 156 | die (STATE_OK, "%s is alive\n", addresses[i]); |
157 | 157 | ||
@@ -370,7 +370,7 @@ get_threshold (char *arg, float *trta, int *tpl) | |||
370 | return OK; | 370 | return OK; |
371 | else if (strpbrk (arg, ",:") && strstr (arg, "%") && sscanf (arg, "%f%*[:,]%d%%", trta, tpl) == 2) | 371 | else if (strpbrk (arg, ",:") && strstr (arg, "%") && sscanf (arg, "%f%*[:,]%d%%", trta, tpl) == 2) |
372 | return OK; | 372 | return OK; |
373 | else if (strstr (arg, "%") && sscanf (arg, "%d%%", tpl) == 1) | 373 | else if (strstr (arg, "%") && sscanf (arg, "%d%%", tpl) == 1) |
374 | return OK; | 374 | return OK; |
375 | 375 | ||
376 | usage2 (_("%s: Warning threshold must be integer or percentage!\n\n"), arg); | 376 | usage2 (_("%s: Warning threshold must be integer or percentage!\n\n"), arg); |