mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add some ASA support, clean up polling, clean up MAC table generation, add ARP table
git-svn-id: http://www.observium.org/svn/observer/trunk@467 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -280,7 +280,8 @@ function geteventicon ($message)
|
||||
function generateiflink($interface, $text=0,$type=bits)
|
||||
{
|
||||
global $twoday; global $now; global $config; global $day; global $month;
|
||||
if(!$text) { $text = fixIfName($interface['ifDescr']); }
|
||||
$interface = ifNameDescr($interface);
|
||||
if(!$text) { $text = fixIfName($interface['label']); }
|
||||
if(!$type) { $type = 'bits'; }
|
||||
$class = ifclass($interface['ifOperStatus'], $interface['ifAdminStatus']);
|
||||
$graph_url = $config['base_url'] . "/graph.php?if=" . $interface['interface_id'] . "&from=$day&to=$now&width=400&height=100&type=" . $type;
|
||||
@ -288,7 +289,7 @@ function generateiflink($interface, $text=0,$type=bits)
|
||||
$device_id = getifhost($interface['interface_id']);
|
||||
$link = "<a class=$class href='".$config['base_url']."/device/$device_id/interface/" . $interface['interface_id'] . "/' ";
|
||||
$link .= "onmouseover=\" return overlib('";
|
||||
$link .= "<img src=\'$graph_url\'><br /><img src=\'$graph_url_month\'>', CAPTION, '<span class=list-large>" . $interface['hostname'] . " - " . fixifName($interface['ifDescr']) . "</span>";
|
||||
$link .= "<img src=\'$graph_url\'><br /><img src=\'$graph_url_month\'>', CAPTION, '<span class=list-large>" . $interface['hostname'] . " - " . fixifName($interface['label']) . "</span>";
|
||||
if($interface['ifAlias']) { $link .= "<br />" . $interface['ifAlias']; }
|
||||
$link .= "' ";
|
||||
$link .= $config['overlib_defaults'].");\" onmouseout=\"return nd();\" >$text</a>";
|
||||
|
Reference in New Issue
Block a user