Commit version 24.12.13800

This commit is contained in:
2025-01-06 17:35:06 -05:00
parent b7f6a79c2c
commit 55d9218816
6133 changed files with 4239740 additions and 1374287 deletions

View File

@ -1,5 +1,4 @@
<?php
/**
* Observium
*
@ -7,23 +6,27 @@
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @copyright (C) Adam Armstrong
*
*/
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");
if (!is_intnum($vars['id'])) {
return;
}
?>
$vp = dbFetchRow("SELECT * FROM `juniAtmVp` as J, `ports` AS I WHERE J.juniAtmVp_id = ? AND I.port_id = J.port_id", [ $vars['id'] ]);
if ($auth || port_permitted($vp['port_id'])) {
$port = $vp;
$device = device_by_id_cache($vp['device_id']);
$rrd_filename = get_rrd_path($device, "vp-" . $vp['ifIndex'] . "-" . $vp['vp_id'] . ".rrd");
$auth = TRUE;
$graph_title = device_name($device, TRUE);
$graph_title .= " :: Port " . $port['port_label_short'];
$graph_title .= " :: VP " . $vp['vp_id'];
}
// EOF

View File

@ -5,15 +5,15 @@
*
* This file is part of Observium.
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage graphs
* @copyright (C) Adam Armstrong
*
*/
$ds_in = "inpacketoctets";
$ds_in = "inpacketoctets";
$ds_out = "outpacketoctets";
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
include($config['html_dir'] . "/includes/graphs/generic_data.inc.php");
?>

View File

@ -5,26 +5,26 @@
*
* This file is part of Observium.
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage graphs
* @copyright (C) Adam Armstrong
*
*/
$ds_in = "incells";
$ds_in = "incells";
$ds_out = "outcells";
$colour_area_in = $config['colours']['graphs']['pkts']['in_area'];
$colour_line_in = $config['colours']['graphs']['pkts']['in_line'];
$colour_area_in = $config['colours']['graphs']['pkts']['in_area'];
$colour_line_in = $config['colours']['graphs']['pkts']['in_line'];
$colour_area_out = $config['colours']['graphs']['pkts']['out_area'];
$colour_line_out = $config['colours']['graphs']['pkts']['out_line'];
$colour_area_in_max = $config['colours']['graphs']['pkts']['in_max'];
$colour_area_in_max = $config['colours']['graphs']['pkts']['in_max'];
$colour_area_out_max = $config['colours']['graphs']['pkts']['out_max'];
$graph_max = 1;
$unit_text = "Cells";
include($config['html_dir']."/includes/graphs/generic_duplex.inc.php");
include($config['html_dir'] . "/includes/graphs/generic_duplex.inc.php");
?>

View File

@ -5,27 +5,27 @@
*
* This file is part of Observium.
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage graphs
* @copyright (C) Adam Armstrong
*
*/
$ds_in = "inpacketerrors";
$ds_in = "inpacketerrors";
$ds_out = "outpacketerrors";
$colour_area_in = "FF3300";
$colour_line_in = "FF0000";
$colour_area_in = "FF3300";
$colour_line_in = "FF0000";
$colour_area_out = "FF6633";
$colour_line_out = "CC3300";
$colour_area_in_max = "FF6633";
$colour_area_in_max = "FF6633";
$colour_area_out_max = "FF9966";
$graph_max = 1;
$unit_text = "Errors";
include($config['html_dir']."/includes/graphs/generic_duplex.inc.php");
include($config['html_dir'] . "/includes/graphs/generic_duplex.inc.php");
?>

View File

@ -5,26 +5,26 @@
*
* This file is part of Observium.
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage graphs
* @copyright (C) Adam Armstrong
*
*/
$ds_in = "inpackets";
$ds_in = "inpackets";
$ds_out = "outpackets";
$colour_area_in = $config['colours']['graphs']['pkts']['in_area'];
$colour_line_in = $config['colours']['graphs']['pkts']['in_line'];
$colour_area_in = $config['colours']['graphs']['pkts']['in_area'];
$colour_line_in = $config['colours']['graphs']['pkts']['in_line'];
$colour_area_out = $config['colours']['graphs']['pkts']['out_area'];
$colour_line_out = $config['colours']['graphs']['pkts']['out_line'];
$colour_area_in_max = $config['colours']['graphs']['pkts']['in_max'];
$colour_area_in_max = $config['colours']['graphs']['pkts']['in_max'];
$colour_area_out_max = $config['colours']['graphs']['pkts']['out_max'];
$graph_max = 1;
$unit_text = "Packets";
include($config['html_dir']."/includes/graphs/generic_duplex.inc.php");
include($config['html_dir'] . "/includes/graphs/generic_duplex.inc.php");
?>