mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 08:03:30 +02:00
fix to hrdevice inventory page (print processor graph in new location)
git-svn-id: http://www.observium.org/svn/observer/trunk@1487 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -11,7 +11,7 @@ if($hrdevice['hrDeviceType'] == "hrDeviceProcessor") {
|
||||
$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('<div class=list-large>".$device['hostname']." - ".$hrdevice['hrDeviceDescr'];
|
||||
$proc_popup .= "</div><img src=\'".$config['base_url']."/graph.php?id=" . $proc_id . "&type=processor&from=$month&to=$now&width=400&height=125\'>";
|
||||
$proc_popup .= "</div><img src=\'".$config['base_url']."/graph.php?id=" . $proc_id . "&type=processor_usage&from=$month&to=$now&width=400&height=125\'>";
|
||||
$proc_popup .= "', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\"";
|
||||
echo("<td><a href='$proc_url' $proc_popup>".$hrdevice['hrDeviceDescr']."</a></td>");
|
||||
|
||||
@@ -19,7 +19,7 @@ if($hrdevice['hrDeviceType'] == "hrDeviceProcessor") {
|
||||
$graph_array['width'] = "100";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['id'] = $proc_id;
|
||||
$graph_array['type'] = 'processor';
|
||||
$graph_array['type'] = 'processor_usage';
|
||||
$graph_array['from'] = $day;
|
||||
$graph_array_zoom = $graph_array; $graph_array_zoom['height'] = "150"; $graph_array_zoom['width'] = "400";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user