mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
more smokeping
git-svn-id: http://www.observium.org/svn/observer/trunk@2704 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -31,6 +31,7 @@ unset($sep);
|
||||
|
||||
print_optionbar_end();
|
||||
|
||||
echo('<table>');
|
||||
|
||||
if($vars['view'] == "incoming")
|
||||
{
|
||||
@@ -41,7 +42,35 @@ if($vars['view'] == "incoming")
|
||||
$graph_array['type'] = "device_smokeping_in_all";
|
||||
$graph_array['id'] = $device['device_id'];
|
||||
|
||||
$graph_array['legend'] = no;
|
||||
|
||||
echo('<tr><td>');
|
||||
echo('<h3>Aggregate</h3>');
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
echo('</td></tr>');
|
||||
|
||||
unset($graph_array['legend']);
|
||||
|
||||
|
||||
ksort($smokeping_files['in'][$device['hostname']]);
|
||||
foreach($smokeping_files['in'][$device['hostname']] AS $src => $host)
|
||||
{
|
||||
echo("$src -> $host");
|
||||
$hostname = str_replace(".rrd", "", $host);
|
||||
$host = device_by_name($src);
|
||||
if(is_numeric($host['device_id']))
|
||||
{
|
||||
echo('<tr><td>');
|
||||
echo('<h3>'.generate_device_link($host).'</h3>');
|
||||
$graph_array['type'] = "smokeping_in";
|
||||
$graph_array['id'] = $device['device_id'];
|
||||
$graph_array['src'] = $host['device_id'];
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
echo('</td></tr>');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -52,19 +81,37 @@ if($vars['view'] == "incoming")
|
||||
|
||||
$graph_array['type'] = "device_smokeping_out_all";
|
||||
$graph_array['id'] = $device['device_id'];
|
||||
$graph_array['legend'] = no;
|
||||
|
||||
echo('<tr><td>');
|
||||
echo('<h3>Aggregate</h3>');
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
echo('</td></tr>');
|
||||
|
||||
unset($graph_array['legend']);
|
||||
|
||||
foreach($smokeping_files['out'][$device['hostname']] AS $host)
|
||||
asort($smokeping_files['out'][$device['hostname']]);
|
||||
foreach($smokeping_files['out'][$device['hostname']] AS $host)
|
||||
{
|
||||
print_r($);
|
||||
$hostname = str_replace(".rrd", "", $host);
|
||||
$host = device_by_name($hostname);
|
||||
if(is_numeric($host['device_id']))
|
||||
{
|
||||
echo('<tr><td>');
|
||||
echo('<h3>'.generate_device_link($host).'</h3>');
|
||||
$graph_array['type'] = "smokeping_out";
|
||||
$graph_array['id'] = $device['device_id'];
|
||||
$graph_array['dest'] = $host['device_id'];
|
||||
include("includes/print-quadgraphs.inc.php");
|
||||
echo('</td></tr>');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
echo('</table>');
|
||||
|
||||
$pagetitle[] = "Latency";
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user