39 lines
886 B
PHP

<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage graphs
* @copyright (C) Adam Armstrong
*
*/
// Generate a list of ports and then call the multi_bits grapher to generate from the list
$i = 0;
foreach (dbFetchRows("SELECT * FROM `ports` WHERE `device_id` = ? AND `pagpGroupIfIndex` = ?", [$port['device_id'], $port['ifIndex']]) as $int) {
$rrdfile = get_port_rrdfilename($int, NULL, TRUE);
if (rrd_is_file($rrdfile)) {
$rrd_list[$i]['filename'] = $rrdfile;
$rrd_list[$i]['descr'] = $int['ifDescr'];
$i++;
}
}
$units = 'bps';
$total_units = 'B';
$colours_in = 'greens';
$multiplier = "8";
$colours_out = 'blues';
$nototal = 1;
$ds_in = "INOCTETS";
$ds_out = "OUTOCTETS";
include($config['html_dir'] . "/includes/graphs/generic_multi_bits_separated.inc.php");
?>