Forráskód Böngészése

Revert commit b7ee01a257d0bee30b3ef4d579ad56533f389e70 (Fix for issue #139) which incorrectly modifies timeout behaviour of check_ping plugin.
See also:
https://github.com/nagios-plugins/nagios-plugins/issues/139
https://github.com/nagios-plugins/nagios-plugins/issues/323

Barak Shohat 6 éve
szülő
commit
0030c7fa46
1 módosított fájl, 4 hozzáadás és 4 törlés
  1. 4 4
      configure.ac

+ 4 - 4
configure.ac

@@ -1119,10 +1119,10 @@ then
 	ac_cv_ping_packets_first=yes
 	AC_MSG_RESULT([$with_ping_command])
 
-elif $PATH_TO_PING -n -U -W 10 -c 1 127.0.0.1 2>/dev/null | \
+elif $PATH_TO_PING -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \
 	egrep -i "^round-trip|^rtt" >/dev/null
 then
-	with_ping_command="$PATH_TO_PING -n -U -W %d -c %d %s"
+	with_ping_command="$PATH_TO_PING -n -U -w %d -c %d %s"
 	ac_cv_ping_packets_first=yes
 	ac_cv_ping_has_timeout=yes
 	AC_MSG_RESULT([$with_ping_command])
@@ -1243,10 +1243,10 @@ elif test "x$PATH_TO_PING6" != "x"; then
 		ac_cv_ping6_packets_first=yes
 		AC_MSG_RESULT([$with_ping6_command])
 
-	elif $PATH_TO_PING6 -n -U -W 10 -c 1 ::1 2>/dev/null | \
+	elif $PATH_TO_PING6 -n -U -w 10 -c 1 ::1 2>/dev/null | \
 		egrep -i "^round-trip|^rtt" >/dev/null
 	then
-		with_ping6_command="$PATH_TO_PING6 -n -U -W %d -c %d %s"
+		with_ping6_command="$PATH_TO_PING6 -n -U -w %d -c %d %s"
 		ac_cv_ping6_packets_first=yes
 		ac_cv_ping_has_timeout=yes
 		AC_MSG_RESULT([$with_ping6_command])