| ".$hrdevice['hrDeviceIndex']." | ");
+
+if($hrdevice['hrDeviceType'] == "hrDeviceProcessor") {
+ $proc_url = "?page=device/".$device['device_id']."/health/hrprocessors/";
+ $proc_popup = "onmouseover=\"return overlib('".$device['hostname']." - ".$hrdevice['hrDeviceDescr'];
+ $proc_popup .= "
";
+ $proc_popup .= "', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\"";
+ echo("".$hrdevice['hrDeviceDescr']." | ");
+} elseif ($hrdevice['hrDeviceType'] == "hrDeviceNetwork") {
+ $int = str_replace("network interface ", "", $hrdevice['hrDeviceDescr']);
+ $interface = mysql_fetch_array(mysql_query("SELECT * FROM interfaces WHERE device_id = '".$device['device_id']."' AND ifDescr = '".$int."'"));
+ if($interface['ifIndex']) {
+ echo("".generateiflink($interface)." | ");
+ } else {
+ echo("".$hrdevice['hrDeviceDescr']." | ");
+ }
+} else {
+ echo("".$hrdevice['hrDeviceDescr']." | ");
+}
+
+ echo("".$hrdevice['hrDeviceType']." | ".$hrdevice['hrDeviceStatus']." | ");
+ echo("".$hrdevice['hrDeviceErrors']." | ".$hrdevice['hrProcessorLoad']." | ");
+ echo("
");
+
+}
+
+echo("");
+
+?>
+