mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
improve some graphing stuff. sexypants.
git-svn-id: http://www.observium.org/svn/observer/trunk@1024 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,8 +1,34 @@
|
||||
<?php
|
||||
|
||||
if($ports['total']) {
|
||||
echo('<div style="background-color: #eeeeee; margin: 5px; padding: 5px;">
|
||||
' . device_traffic_image($device['device_id'], 490, 100, $day, '-300s'));
|
||||
echo('<div style="background-color: #eeeeee; margin: 5px; padding: 5px;">');
|
||||
# ' . device_traffic_image($device['device_id'], 490, 100, $day, '-300s'));
|
||||
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "490";
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['device'] = $device['device_id'];
|
||||
$graph_array['type'] = "device_bits";
|
||||
$graph_array['from'] = $day;
|
||||
$graph = generate_graph_tag($graph_array);
|
||||
|
||||
|
||||
$content = "<div class=list-large>".$device['hostname']." - Device Traffic</div>";
|
||||
$content .= "<div style=\'width: 850px\'>";
|
||||
$graph_array['width'] = "340";
|
||||
$graph_array['from'] = $day;
|
||||
$content .= generate_graph_tag($graph_array);
|
||||
$graph_array['from'] = $week;
|
||||
$content .= generate_graph_tag($graph_array);
|
||||
$graph_array['from'] = $month;
|
||||
$content .= generate_graph_tag($graph_array);
|
||||
$graph_array['from'] = $year;
|
||||
$content .= generate_graph_tag($graph_array);
|
||||
$content .= "</div>";
|
||||
|
||||
echo(overlib_link("#", $graph, $content, NULL));
|
||||
|
||||
|
||||
echo(' <div style="height: 5px;"></div>');
|
||||
|
||||
echo(' <table class="tablehead" cellpadding="2" cellspacing="0" width="100%">
|
||||
|
||||
Reference in New Issue
Block a user