2010-08-02 16:38:03 +00:00
|
|
|
<?php
|
2010-07-25 14:21:05 +00:00
|
|
|
|
2012-05-11 13:26:14 +00:00
|
|
|
if (is_numeric($vars['id']) && ($config['allow_unauth_graphs'] || port_permitted($vars['id'])))
|
2011-03-17 13:25:37 +00:00
|
|
|
{
|
2012-05-11 13:26:14 +00:00
|
|
|
$port = get_port_by_id($vars['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
|
|
|
|
2011-09-22 15:54:16 +00:00
|
|
|
$graph_title = shorthost($device['hostname']) . "::" . strtolower(makeshortif($port['ifDescr']));
|
2011-09-14 13:38:01 +00:00
|
|
|
|
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
|
|
|
?>
|