mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Use fping6 instead of fping for hosts with udp6/tcp6 SNMP transports
This commit is contained in:
@@ -154,7 +154,9 @@ function poll_device($device, $options) {
|
||||
echo "Created directory : $host_rrd\n";
|
||||
}
|
||||
|
||||
$ping_response = isPingable($device['hostname'], $device['device_id']);
|
||||
$address_family = snmpTransportToAddressFamily($device['transport']);
|
||||
|
||||
$ping_response = isPingable($device['hostname'], $address_family, $device['device_id']);
|
||||
|
||||
$device_perf = $ping_response['db'];
|
||||
$device_perf['device_id'] = $device['device_id'];
|
||||
|
Reference in New Issue
Block a user