2010-08-02 16:38:03 +00:00
|
|
|
<?php
|
2010-07-25 14:21:05 +00:00
|
|
|
|
2011-03-17 13:25:37 +00:00
|
|
|
if (is_numeric($id) && ($config['allow_unauth_graphs'] || port_permitted($id)))
|
|
|
|
{
|
2010-08-01 14:17:06 +00:00
|
|
|
$port = get_port_by_id($id);
|
2010-07-25 14:21:05 +00:00
|
|
|
$device = device_by_id_cache($port['device_id']);
|
2010-08-02 22:09:52 +00:00
|
|
|
$title = generate_device_link($device);
|
|
|
|
$title .= " :: Port ".generate_port_link($port);
|
2011-09-14 13:38:01 +00:00
|
|
|
|
|
|
|
$graph_title = $device['hostname'] . "::" . $port['ifDescr'];
|
|
|
|
|
2011-03-17 13:25:37 +00:00
|
|
|
$auth = TRUE;
|
2010-08-10 15:54:01 +00:00
|
|
|
|
|
|
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/port-" . safename($port['ifIndex'] . ".rrd");
|
2010-08-01 00:38:01 +00:00
|
|
|
}
|
2010-07-25 14:21:05 +00:00
|
|
|
|
2011-09-14 13:38:01 +00:00
|
|
|
?>
|