2009-09-25 12:18:25 +00:00
|
|
|
<?php
|
|
|
|
|
2010-02-20 17:22:22 +00:00
|
|
|
if($_GET['port']) { $ports = $_GET['port']; }
|
|
|
|
if($_GET['ports']) { $ports = $_GET['ports']; }
|
2009-09-30 12:27:18 +00:00
|
|
|
|
2009-11-03 20:03:26 +00:00
|
|
|
|
2009-10-27 13:04:16 +00:00
|
|
|
$i = 1;
|
2010-02-20 17:22:22 +00:00
|
|
|
foreach(explode(",", $ports) as $ifid) {
|
|
|
|
$query = mysql_query("SELECT `ifIndex`, `hostname` FROM `ports` AS I, devices as D WHERE I.interface_id = '" . $ifid . "' AND I.device_id = D.device_id");
|
2009-10-27 13:04:16 +00:00
|
|
|
$int = mysql_fetch_row($query);
|
2010-02-05 22:10:06 +00:00
|
|
|
if(is_file($config['rrd_dir'] . "/" . $int[1] . "/" . safename($int[0] . ".rrd"))) {
|
|
|
|
$rrd_filenames[] = $config['rrd_dir'] . "/" . $int[1] . "/" . safename($int[0] . ".rrd");
|
2009-10-27 13:04:16 +00:00
|
|
|
$i++;
|
2009-09-25 12:18:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-10-27 13:04:16 +00:00
|
|
|
$rra_in = "INOCTETS";
|
|
|
|
$rra_out = "OUTOCTETS";
|
|
|
|
|
|
|
|
$colour_line_in = "006600";
|
|
|
|
$colour_line_out = "000099";
|
|
|
|
$colour_area_in = "CDEB8B";
|
|
|
|
$colour_area_out = "C3D9FF";
|
|
|
|
|
|
|
|
include ("generic_multi_bits.inc.php");
|
2009-09-25 12:18:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
?>
|