Merge pull request #1959 from n-st/ipv6-ping

Use fping6 instead of fping for hosts with udp6/tcp6 SNMP transports
This commit is contained in:
Daniel Preussker
2015-09-27 08:14:50 +00:00
4 changed files with 54 additions and 8 deletions

View File

@@ -158,7 +158,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'];