diff options
author | ghciv6 <ghciv6@maginus.de> | 2020-04-13 20:44:26 +0200 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.org> | 2020-04-14 12:37:00 +0200 |
commit | 4264e7a6edb651793ef751723537767656a89e44 (patch) | |
tree | 080a76653745399136986d756a8729a71cfa3b8d /configure.ac | |
parent | d008be68255b192f0354c523938c40643e39795f (diff) | |
download | monitoring-plugins-4264e7a6edb651793ef751723537767656a89e44.tar.gz |
- workaround for issue #1550
- better use "ping -4" instead of "ping" if supported
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 08a0e782..4a9a92a8 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1064,6 +1064,14 @@ then | |||
1064 | ac_cv_ping_packets_first=yes | 1064 | ac_cv_ping_packets_first=yes |
1065 | AC_MSG_RESULT([$with_ping_command]) | 1065 | AC_MSG_RESULT([$with_ping_command]) |
1066 | 1066 | ||
1067 | elif $PATH_TO_PING -4 -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \ | ||
1068 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1069 | then | ||
1070 | # check if -4 is supported - issue #1550 | ||
1071 | with_ping_command="$PATH_TO_PING -4 -n -U -w %d -c %d %s" | ||
1072 | ac_cv_ping_packets_first=yes | ||
1073 | ac_cv_ping_has_timeout=yes | ||
1074 | AC_MSG_RESULT([$with_ping_command]) | ||
1067 | elif $PATH_TO_PING -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \ | 1075 | elif $PATH_TO_PING -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \ |
1068 | egrep -i "^round-trip|^rtt" >/dev/null | 1076 | egrep -i "^round-trip|^rtt" >/dev/null |
1069 | then | 1077 | then |