diff --git a/html/pages/device/latency.inc.php b/html/pages/device/latency.inc.php index 72f882be67..0cd9215a68 100644 --- a/html/pages/device/latency.inc.php +++ b/html/pages/device/latency.inc.php @@ -64,10 +64,15 @@ if($vars['view'] == "incoming") { $hostname = str_replace(".rrd", "", $host); $host = device_by_name($src); + if ($config['smokeping']['integration'] === true) { + $dest = device_by_name(str_replace("_",".",$hostname)); + } else { + $dest = $host; + } if (is_numeric($host['device_id'])) { echo(''); - echo('

'.generate_device_link($host).'

'); + echo('

'.generate_device_link($dest).'

'); $graph_array['type'] = "smokeping_in"; $graph_array['device'] = $device['device_id']; $graph_array['src'] = $host['device_id'];