--- observium/includes/functions.inc.php.original 2021-09-11 11:30:27.246859570 -0600 +++ observium/includes/functions.inc.php 2021-09-11 11:55:01.592769911 -0600 @@ -2467,7 +2467,7 @@ // Ping by IP if ($ip_version === 6) { - $cmd = $config['fping6'] . " -t $timeout -c 1 -q $hostname 2>&1"; + $cmd = $config['fping'] . " --ipv6 --timeout $timeout --period 1 --count 5 --quiet $hostname 2>&1"; } else { if (!$try_a) { @@ -2477,20 +2477,20 @@ return 0; } // Forced check for actual IPv4 address - $cmd = $config['fping'] . " -t $timeout -c 1 -q $hostname 2>&1"; + $cmd = $config['fping'] . " --ipv4 --timeout $timeout --period 1 --count 5 --quiet $hostname 2>&1"; } } else { // First try IPv4 $ip = ($try_a ? gethostbyname6($hostname, OBS_DNS_A) : FALSE); // Do not check IPv4 if transport IPv6 if ($ip && $ip != $hostname) { - $cmd = $config['fping'] . " -t $timeout -c 1 -q $ip 2>&1"; + $cmd = $config['fping'] . " --ipv4 --timeout $timeout --period 1 --count 5 --quiet $ip 2>&1"; } else { $ip = gethostbyname6($hostname, OBS_DNS_AAAA); // Second try IPv6 if ($ip) { - $cmd = $config['fping6'] . " -t $timeout -c 1 -q $ip 2>&1"; + $cmd = $config['fping'] . " --ipv6 --timeout $timeout --period 1 --count 5 --quiet $ip 2>&1"; } else { // No DNS records if ($ping_debug) { logfile('debug.log', __FUNCTION__ . "() | DEVICE: $hostname | NO DNS record found"); }