30 lines
817 B
PHP
30 lines
817 B
PHP
<?php
|
|
|
|
/**
|
|
* Observium
|
|
*
|
|
* This file is part of Observium.
|
|
*
|
|
* @package observium
|
|
* @subpackage graphs
|
|
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
|
*
|
|
*/
|
|
|
|
if ($vars['id'] && is_numeric($vars['id'])) { $atm_vp_id = $vars['id']; }
|
|
|
|
$vp = dbFetchRow("SELECT * FROM `juniAtmVp` as J, `ports` AS I, `devices` AS D WHERE J.juniAtmVp_id = ? AND I.port_id = J.port_id AND I.device_id = D.device_id", array($atm_vp_id));
|
|
|
|
if ($auth || port_permitted($vp['port_id']))
|
|
{
|
|
$port = $vp;
|
|
$device = device_by_id_cache($port['device_id']);
|
|
$title = generate_device_link($device);
|
|
$title .= " :: Port ".generate_port_link($port);
|
|
$title .= " :: VP ".$vp['vp_id'];
|
|
$auth = TRUE;
|
|
$rrd_filename = get_rrd_path($device, "vp-" . $vp['ifIndex'] . "-".$vp['vp_id'].".rrd");
|
|
}
|
|
|
|
?>
|