mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
more time period corrections
git-svn-id: http://www.observium.org/svn/observer/trunk@3145 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -31,9 +31,9 @@ foreach ($vlan_ports as $port)
|
||||
<a href='device/device=".$device['device_id']."/tab=port/port=".$port['interface_id']."/' onmouseover=\"return overlib('\
|
||||
<div style=\'font-size: 16px; padding:5px; font-weight: bold; color: #e5e5e5;\'>".$device['hostname']." - ".$port['ifDescr']."</div>\
|
||||
".$port['ifAlias']." \
|
||||
<img src=\'graph.php?type=$graph_type&id=".$port['interface_id']."&from=-2day&to=".$config['time']['now']."&width=450&height=150\'>\
|
||||
<img src=\'graph.php?type=$graph_type&id=".$port['interface_id']."&from=" .$config['time']['twoday']."&to=".$config['time']['now']."&width=450&height=150\'>\
|
||||
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
||||
"<img src='graph.php?type=$graph_type&id=".$port['interface_id']."&from=-2day&to=".$config['time']['now']."&width=132&height=40&legend=no'>
|
||||
"<img src='graph.php?type=$graph_type&id=".$port['interface_id']."&from=".$config['time']['twoday']."&to=".$config['time']['now']."&width=132&height=40&legend=no'>
|
||||
</a>
|
||||
<div style='font-size: 9px;'>".truncate(short_port_descr($port['ifAlias']), 22, '')."</div>
|
||||
</div>");
|
||||
|
@ -19,9 +19,9 @@ foreach (dbFetchRows("SELECT * FROM ports WHERE `device_id` = ? AND `ifVrf` = ?"
|
||||
<a href='device/".$device['device_id']."/port/".$port['interface_id']."/' onmouseover=\"return overlib('\
|
||||
<div style=\'font-size: 16px; padding:5px; font-weight: bold; color: #e5e5e5;\'>".$device['hostname']." - ".$port['ifDescr']."</div>\
|
||||
".$port['ifAlias']." \
|
||||
<img src=\'graph.php?type=$graph_type&id=".$port['interface_id']."&from=-2day&to=".$config['time']['now']."&width=450&height=150\'>\
|
||||
<img src=\'graph.php?type=$graph_type&id=".$port['interface_id']."&from=".$config['time']['twoday']."&to=".$config['time']['now']."&width=450&height=150\'>\
|
||||
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
|
||||
"<img src='graph.php?type=$graph_type&id=".$port['interface_id']."&from=-2day&to=".$config['time']['now']."&width=132&height=40&legend=no'>
|
||||
"<img src='graph.php?type=$graph_type&id=".$port['interface_id']."&from=".$config['time']['twoday']."&to=".$config['time']['now']."&width=132&height=40&legend=no'>
|
||||
</a>
|
||||
<div style='font-size: 9px;'>".truncate(short_port_descr($port['ifAlias']), 22, '')."</div>
|
||||
</div>");
|
||||
|
@ -34,73 +34,73 @@ if ($vars['subview'] == "top10")
|
||||
<div style='margin: 0px 10px 5px 0px; padding:5px; background: #e5e5e5;'>
|
||||
<span class=device-head>Day</span><br />
|
||||
|
||||
<a href='".generate_url($link_array,array('view' => 'macaccounting', 'subview' => 'top10', 'graph'=>$vars['graph'], sort => $vars['sort'], 'period' => '1day'))."'>
|
||||
<a href='".generate_url($link_array,array('view' => 'macaccounting', 'subview' => 'top10', 'graph'=>$vars['graph'], sort => $vars['sort'], 'period' => 'day'))."'>
|
||||
|
||||
<img style='border: #5e5e5e 2px;' valign=middle src='graph.php?id=".$port['interface_id'].
|
||||
"&stat=".$vars['graph']."&type=port_mac_acc_total&sort=".$vars['sort']."&from=-1day&to=now&width=150&height=50' />
|
||||
"&stat=".$vars['graph']."&type=port_mac_acc_total&sort=".$vars['sort']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=150&height=50' />
|
||||
</a>
|
||||
</div>
|
||||
<div style='margin: 0px 10px 5px 0px; padding:5px; background: #e5e5e5;'>
|
||||
<span class=device-head>Two Day</span><br />
|
||||
<a href='".generate_url($link_array,array('view' => 'macaccounting', 'subview' => 'top10', 'graph'=>$vars['graph'], sort => $vars['sort'], 'period' => '2day'))."/'>
|
||||
<a href='".generate_url($link_array,array('view' => 'macaccounting', 'subview' => 'top10', 'graph'=>$vars['graph'], sort => $vars['sort'], 'period' => 'twoday'))."/'>
|
||||
<img style='border: #5e5e5e 2px;' valign=middle src='graph.php?id=".$port['interface_id'].
|
||||
"&stat=".$vars['graph']."&type=port_mac_acc_total&sort=".$vars['sort']."&from=-2day&to=now&width=150&height=50' />
|
||||
"&stat=".$vars['graph']."&type=port_mac_acc_total&sort=".$vars['sort']."&from=".$config['time']['twoday']."&to=".$config['time']['now']."&width=150&height=50' />
|
||||
</a>
|
||||
</div>
|
||||
<div style='margin: 0px 10px 5px 0px; padding:5px; background: #e5e5e5;'>
|
||||
<span class=device-head>Week</span><br />
|
||||
<a href='".generate_url($link_array,array('view' => 'macaccounting', 'subview' => 'top10', 'graph'=>$vars['graph'], sort => $vars['sort'], 'period' => '1week'))."/'>
|
||||
<img style='border: #5e5e5e 2px;' valign=middle src='graph.php?id=".$port['interface_id']."&type=port_mac_acc_total&sort=".$vars['sort']."&stat=".$vars['graph']."&from=-1week&to=now&width=150&height=50' />
|
||||
<a href='".generate_url($link_array,array('view' => 'macaccounting', 'subview' => 'top10', 'graph'=>$vars['graph'], sort => $vars['sort'], 'period' => 'week'))."/'>
|
||||
<img style='border: #5e5e5e 2px;' valign=middle src='graph.php?id=".$port['interface_id']."&type=port_mac_acc_total&sort=".$vars['sort']."&stat=".$vars['graph']."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=150&height=50' />
|
||||
</a>
|
||||
</div>
|
||||
<div style='margin: 0px 10px 5px 0px; padding:5px; background: #e5e5e5;'>
|
||||
<span class=device-head>Month</span><br />
|
||||
<a href='".generate_url($link_array,array('view' => 'macaccounting', 'subview' => 'top10', 'graph'=>$vars['graph'], sort => $vars['sort'], 'period' => '1month'))."/'>
|
||||
<img style='border: #5e5e5e 2px;' valign=middle src='graph.php?id=".$port['interface_id']."&type=port_mac_acc_total&sort=".$vars['sort']."&stat=".$vars['graph']."&from=-1month&to=now&width=150&height=50' />
|
||||
<a href='".generate_url($link_array,array('view' => 'macaccounting', 'subview' => 'top10', 'graph'=>$vars['graph'], sort => $vars['sort'], 'period' => 'month'))."/'>
|
||||
<img style='border: #5e5e5e 2px;' valign=middle src='graph.php?id=".$port['interface_id']."&type=port_mac_acc_total&sort=".$vars['sort']."&stat=".$vars['graph']."&from=".$config['time']['month']."&to=".$config['time']['now']."&width=150&height=50' />
|
||||
</a>
|
||||
</div>
|
||||
<div style='margin: 0px 10px 5px 0px; padding:5px; background: #e5e5e5;'>
|
||||
<span class=device-head>Year</span><br />
|
||||
<a href='".generate_url($link_array,array('view' => 'macaccounting', 'subview' => 'top10', 'graph'=>$vars['graph'], sort => $vars['sort'], 'period' => '1year'))."/'>
|
||||
<img style='border: #5e5e5e 2px;' valign=middle src='graph.php?id=".$port['interface_id']."&type=port_mac_acc_total&sort=".$vars['sort']."&stat=".$vars['graph']."&from=-1year&to=now&width=150&height=50' />
|
||||
<a href='".generate_url($link_array,array('view' => 'macaccounting', 'subview' => 'top10', 'graph'=>$vars['graph'], sort => $vars['sort'], 'period' => 'year'))."/'>
|
||||
<img style='border: #5e5e5e 2px;' valign=middle src='graph.php?id=".$port['interface_id']."&type=port_mac_acc_total&sort=".$vars['sort']."&stat=".$vars['graph']."&from=".$config['time']['year']."&to=".$config['time']['now']."&width=150&height=50' />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div style='float: left;'>
|
||||
<img src='graph.php?id=".$port['interface_id']."&type=port_mac_acc_total&sort=".$vars['sort']."&stat=".$vars['graph']."&from=$from&to=now&width=745&height=300' />
|
||||
<img src='graph.php?id=".$port['interface_id']."&type=port_mac_acc_total&sort=".$vars['sort']."&stat=".$vars['graph']."&from=$from&to=".$config['time']['now']."&width=745&height=300' />
|
||||
</div>
|
||||
<div style=' margin:0px; float: left;';>
|
||||
<div style='margin: 0px 0px 5px 10px; padding:5px; background: #e5e5e5;'>
|
||||
<span class=device-head>Traffic</span><br />
|
||||
<a href='".generate_url($link_array,array('view' => 'macaccounting', 'subview' => 'top10', 'graph'=>'bits', sort => $vars['sort'], 'period' => $vars['period']))."'>
|
||||
<img style='border: #5e5e5e 2px;' valign=middle src='graph.php?id=".$port['interface_id']."&stat=bits&type=port_mac_acc_total&sort=".$vars['sort']."&from=$from&to=now&width=150&height=50' />
|
||||
<img style='border: #5e5e5e 2px;' valign=middle src='graph.php?id=".$port['interface_id']."&stat=bits&type=port_mac_acc_total&sort=".$vars['sort']."&from=$from&to=".$config['time']['now']."&width=150&height=50' />
|
||||
</a>
|
||||
</div>
|
||||
<div style='margin: 0px 0px 5px 10px; padding:5px; background: #e5e5e5;'>
|
||||
<span class=device-head>Packets</span><br />
|
||||
<a href='".generate_url($link_array,array('view' => 'macaccounting', 'subview' => 'top10', 'graph'=>'pkts', sort => $vars['sort'], 'period' => $vars['period']))."/'>
|
||||
<img style='border: #5e5e5e 2px;' valign=middle src='graph.php?id=".$port['interface_id']."&stat=pkts&type=port_mac_acc_total&sort=".$vars['sort']."&from=$from&to=now&width=150&height=50' />
|
||||
<img style='border: #5e5e5e 2px;' valign=middle src='graph.php?id=".$port['interface_id']."&stat=pkts&type=port_mac_acc_total&sort=".$vars['sort']."&from=$from&to=".$config['time']['now']."&width=150&height=50' />
|
||||
</a>
|
||||
</div>
|
||||
<div style='margin: 0px 0px 5px 10px; padding:5px; background: #e5e5e5;'>
|
||||
<span class=device-head>Top Input</span><br />
|
||||
<a href='".generate_url($link_array,array('view' => 'macaccounting', 'subview' => 'top10', 'graph'=>$vars['graph'], sort => 'in', 'period' => $vars['period']))."'>
|
||||
<img style='border: #5e5e5e 2px;' valign=middle src='graph.php?id=".$port['interface_id'].
|
||||
"&stat=".$vars['graph']."&type=port_mac_acc_total&sort=in&from=$from&to=now&width=150&height=50' />
|
||||
"&stat=".$vars['graph']."&type=port_mac_acc_total&sort=in&from=$from&to=".$config['time']['now']."&width=150&height=50' />
|
||||
</a>
|
||||
</div>
|
||||
<div style='margin: 0px 0px 5px 10px; padding:5px; background: #e5e5e5;'>
|
||||
<span class=device-head>Top Output</span><br />
|
||||
<a href='".generate_url($link_array,array('view' => 'macaccounting', 'subview' => 'top10', 'graph'=>$vars['graph'], sort => 'out', 'period' => $vars['period']))."'>
|
||||
<img style='border: #5e5e5e 2px;' valign=middle src='graph.php?id=".$port['interface_id'].
|
||||
"&stat=".$vars['graph']."&type=port_mac_acc_total&sort=out&from=$from&to=now&width=150&height=50' />
|
||||
"&stat=".$vars['graph']."&type=port_mac_acc_total&sort=out&from=$from&to=".$config['time']['now']."&width=150&height=50' />
|
||||
</a>
|
||||
</div>
|
||||
<div style='margin: 0px 0px 5px 10px; padding:5px; background: #e5e5e5;'>
|
||||
<span class=device-head>Top Aggregate</span><br />
|
||||
<a href='".generate_url($link_array,array('view' => 'macaccounting', 'subview' => 'top10', 'graph'=>$vars['graph'], sort => 'both', 'period' => $vars['period']))."'>
|
||||
<img style='border: #5e5e5e 2px;' valign=middle src='graph.php?id=".$port['interface_id'].
|
||||
"&stat=".$vars['graph']."&type=port_mac_acc_total&sort=both&from=$from&to=now&width=150&height=50' />
|
||||
"&stat=".$vars['graph']."&type=port_mac_acc_total&sort=both&from=$from&to=".$config['time']['now']."&width=150&height=50' />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@ -151,9 +151,9 @@ if ($vars['subview'] == "top10")
|
||||
".$addy['ipv4_address']." - ".$asn."
|
||||
<a href='#' onmouseover=\"return overlib('\
|
||||
<div style=\'font-size: 16px; padding:5px; font-weight: bold; color: #555555;\'>".$name." - ".$addy['ipv4_address']." - ".$asn."</div>\
|
||||
<img src=\'graph.php?id=" . $acc['ma_id'] . "&type=$graph_type&from=-2day&to=".$config['time']['now']."&width=450&height=150\'>\
|
||||
<img src=\'graph.php?id=" . $acc['ma_id'] . "&type=$graph_type&from=".$config['time']['twoday']."&to=".$config['time']['now']."&width=450&height=150\'>\
|
||||
', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >
|
||||
<img src='graph.php?id=" . $acc['ma_id'] . "&type=$graph_type&from=-2day&to=".$config['time']['now']."&width=213&height=45'></a>
|
||||
<img src='graph.php?id=" . $acc['ma_id'] . "&type=$graph_type&from=".$config['time']['twoday']."&to=".$config['time']['now']."&width=213&height=45'></a>
|
||||
|
||||
<span style='font-size: 10px;'>".$name."</span>
|
||||
</div>");
|
||||
|
Reference in New Issue
Block a user