diff --git a/html/pages/device/hrdevice.inc.php b/html/pages/device/hrdevice.inc.php
index ad37e75ca1..dd885360d1 100644
--- a/html/pages/device/hrdevice.inc.php
+++ b/html/pages/device/hrdevice.inc.php
@@ -8,11 +8,12 @@ while($hrdevice = mysql_fetch_array($hrdevices)) {
echo("
".$hrdevice['hrDeviceIndex']." | ");
if($hrdevice['hrDeviceType'] == "hrDeviceProcessor") {
- $proc_url = "?page=device/".$device['device_id']."/health/hrprocessors/";
+ $proc_id = mysql_result(mysql_query("SELECT processor_id FROM processors WHERE device_id = '".$device['device_id']."' AND hrDeviceIndex = '".$hrdevice['hrDeviceIndex']."'"),0);
+ $proc_url = $config['base_url'] . "/device/".$device['device_id']."/health/processors/";
$proc_popup = "onmouseover=\"return overlib('".$device['hostname']." - ".$hrdevice['hrDeviceDescr'];
- $proc_popup .= "
";
+ $proc_popup .= "
";
$proc_popup .= "', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\"";
- echo("".$hrdevice['hrDeviceDescr']." | ");
+ echo("".$hrdevice['hrDeviceDescr']." | ");
} elseif ($hrdevice['hrDeviceType'] == "hrDeviceNetwork") {
$int = str_replace("network interface ", "", $hrdevice['hrDeviceDescr']);
$interface = mysql_fetch_array(mysql_query("SELECT * FROM ports WHERE device_id = '".$device['device_id']."' AND ifDescr = '".$int."'"));