2010-08-02 16:38:03 +00:00
|
|
|
<?php
|
2010-07-25 14:21:05 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
if (is_numeric($vars['id']) && ($auth || port_permitted($vars['id']))) {
|
2017-04-04 08:08:23 +01:00
|
|
|
$port = cleanPort(get_port_by_id($vars['id']));
|
2015-07-13 20:10:26 +02:00
|
|
|
$device = device_by_id_cache($port['device_id']);
|
|
|
|
$title = generate_device_link($device);
|
|
|
|
$title .= ' :: Port '.generate_port_link($port);
|
2011-09-14 13:38:01 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
$graph_title = shorthost($device['hostname']).'::'.strtolower(makeshortif($port['ifDescr']));
|
2011-09-14 13:38:01 +00:00
|
|
|
|
2017-04-08 17:14:12 +01:00
|
|
|
if (($port['ifAlias'] != '') && ($port['ifAlias'] != $port['ifDescr'])) {
|
|
|
|
$title .= ', '.display($port['ifAlias']);
|
|
|
|
$graph_title .= '::'.display($port['ifAlias']);
|
|
|
|
}
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
$auth = true;
|
2010-08-10 15:54:01 +00:00
|
|
|
|
2016-08-18 20:28:22 -05:00
|
|
|
$rrd_filename = get_port_rrdfile_path($device['hostname'], $port['port_id']);
|
2010-08-01 00:38:01 +00:00
|
|
|
}
|