2010-07-31 21:08:35 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
## Generate a list of ports and then call the multi_bits grapher to generate from the list
|
|
|
|
|
2011-03-17 13:35:25 +00:00
|
|
|
$i = 0;
|
|
|
|
|
|
|
|
while ($port = mysql_fetch_array($ports))
|
|
|
|
{
|
|
|
|
if (is_file($config['rrd_dir'] . "/" . $port['hostname'] . "/port-" . safename($port['ifIndex'] . ".rrd")))
|
|
|
|
{
|
2010-08-13 12:50:01 +00:00
|
|
|
$rrd_list[$i]['filename'] = $config['rrd_dir'] . "/" . $port['hostname'] . "/port-" . safename($port['ifIndex'] . ".rrd");
|
2010-07-31 21:08:35 +00:00
|
|
|
$rrd_list[$i]['descr'] = $port['ifDescr'];
|
|
|
|
$i++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-03-17 13:35:25 +00:00
|
|
|
$units='bps';
|
|
|
|
$total_units='B';
|
|
|
|
$colours_in='greens';
|
|
|
|
$multiplier = "8";
|
2010-07-31 21:08:35 +00:00
|
|
|
$colours_out = 'blues';
|
|
|
|
|
|
|
|
$nototal = 1;
|
|
|
|
$rra_in = "INOCTETS";
|
|
|
|
$rra_out = "OUTOCTETS";
|
|
|
|
|
2011-03-17 13:35:25 +00:00
|
|
|
include("includes/graphs/generic_multi_bits_separated.inc.php");
|
2010-07-31 21:08:35 +00:00
|
|
|
|
2011-03-17 13:35:25 +00:00
|
|
|
?>
|