diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index 260a75e004..673e0c5b7c 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -357,7 +357,9 @@ function generate_entity_link($type, $entity, $text = NULL, $graph_type=NULL) $link = generate_port_link($entity, $text, $graph_type); break; case "storage": - $url = generate_url(array('page' => 'device', 'device' => $entity['device_id'], 'tab' => 'health', 'metric' => 'storage')); + if(empty($text)) { $text = $entity['storage_descr']; } + $link = generate_link($text, array('page' => 'device', 'device' => $entity['device_id'], 'tab' => 'health', 'metric' => 'storage')); + break; default: $link = $entity[$type.'_id']; } diff --git a/html/includes/graphs/location/bits.inc.php b/html/includes/graphs/location/bits.inc.php index e11f13d636..07f1f2b85a 100644 --- a/html/includes/graphs/location/bits.inc.php +++ b/html/includes/graphs/location/bits.inc.php @@ -37,7 +37,7 @@ foreach ($devices as $device) $rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/port-" . safename($int['ifIndex'] . ".rrd"); $rrd_list[$i]['filename'] = $rrd_filename; $rrd_list[$i]['descr'] = $port['label']; - $rrd_list[$i]['descr_in'] = $port['label']; + $rrd_list[$i]['descr_in'] = $device['hostname']; $rrd_list[$i]['descr_out'] = $port['ifAlias']; $rrd_list[$i]['ds_in'] = $ds_in; $rrd_list[$i]['ds_out'] = $ds_out; diff --git a/html/pages/device/alerts.inc.php b/html/pages/device/alerts.inc.php index e7c633b021..6d88cbd53e 100644 --- a/html/pages/device/alerts.inc.php +++ b/html/pages/device/alerts.inc.php @@ -23,8 +23,9 @@ echo('
Entities: '); + echo(' | |||||||||
'); foreach($entities as $entity) { - echo(generate_entity_link($type, $entity)." "); + echo(''.generate_entity_link($type, $entity).""); } - echo(' |