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,26 +6,27 @@
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @copyright (C) Adam Armstrong
*
*/
if (is_numeric($vars['id']))
{
$ap = accesspoint_by_id($vars['id']);
if (!is_intnum($vars['id'])) {
return;
}
if (is_numeric($ap['device_id']) && ($auth || device_permitted($ap['device_id'])))
{
$ap = accesspoint_by_id($vars['id']);
if (is_numeric($ap['device_id']) && ($auth || device_permitted($ap['device_id']))) {
$device = device_by_id_cache($ap['device_id']);
$cleanmac = str_replace(':','', $ap['mac_addr']);
$auth = TRUE;
$rrd_filename = get_rrd_path($device, "arubaap-".$cleanmac."-".$ap['radio_number'].".rrd");
$cleanmac = str_replace(':', '', $ap['mac_addr']);
$title = generate_device_link($device);
$title .= " :: AP :: " . escape_html($ap['name']);
$auth = TRUE;
}
$rrd_filename = get_rrd_path($device, "arubaap-" . $cleanmac . "-" . $ap['radio_number'] . ".rrd");
$graph_title = device_name($device, TRUE);
$graph_title .= " :: AP :: " . $ap['name'];
}
// EOF

View File

@ -5,29 +5,28 @@
*
* 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
*
*/
$rrd_list[0]['filename'] = $rrd_filename;
$rrd_list[0]['descr'] = "Channel";
$rrd_list[0]['ds'] = "channel";
$rrd_list[0]['descr'] = "Channel";
$rrd_list[0]['ds'] = "channel";
$unit_text = "Channel";
$units='';
$total_units='';
$colours='mixed';
$units = '';
$total_units = '';
$colours = 'mixed';
$scale_min = "0";
$nototal = 1;
if ($rrd_list)
{
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
if ($rrd_list) {
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
}
?>

View File

@ -5,29 +5,28 @@
*
* 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
*
*/
$rrd_list[0]['filename'] = $rrd_filename;
$rrd_list[0]['descr'] = "Interference";
$rrd_list[0]['ds'] = "interference";
$rrd_list[0]['descr'] = "Interference";
$rrd_list[0]['ds'] = "interference";
$unit_text = "Int";
$units='';
$total_units='';
$colours='mixed';
$units = '';
$total_units = '';
$colours = 'mixed';
$scale_min = "0";
$nototal = 1;
if ($rrd_list)
{
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
if ($rrd_list) {
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
}
?>

View File

@ -5,20 +5,20 @@
*
* 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 = "numasoclients";
$colour_line = "008C00";
$colour_area = "CDEB8B";
$ds = "numasoclients";
$colour_line = "008C00";
$colour_area = "CDEB8B";
$colour_area_max = "c0c0c0";
$graph_max = 1;
$graph_min = 0;
$unit_text = "Clients";
$graph_max = 1;
$graph_min = 0;
$unit_text = "Clients";
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
?>

View File

@ -5,29 +5,28 @@
*
* 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
*
*/
$rrd_list[0]['filename'] = $rrd_filename;
$rrd_list[0]['descr'] = "MonBSSIDs";
$rrd_list[0]['ds'] = "nummonbssid";
$rrd_list[0]['descr'] = "MonBSSIDs";
$rrd_list[0]['ds'] = "nummonbssid";
$unit_text = "BSSIDs";
$units='';
$total_units='';
$colours='mixed';
$units = '';
$total_units = '';
$colours = 'mixed';
$scale_min = "0";
$nototal = 1;
if ($rrd_list)
{
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
if ($rrd_list) {
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
}
?>

View File

@ -5,29 +5,28 @@
*
* 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
*
*/
$rrd_list[0]['filename'] = $rrd_filename;
$rrd_list[0]['descr'] = "Mon Clients";
$rrd_list[0]['ds'] = "nummonclients";
$rrd_list[0]['descr'] = "Mon Clients";
$rrd_list[0]['ds'] = "nummonclients";
$unit_text = "Clients";
$units='';
$total_units='';
$colours='mixed';
$units = '';
$total_units = '';
$colours = 'mixed';
$scale_min = "0";
$nototal = 1;
if ($rrd_list)
{
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
if ($rrd_list) {
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
}
?>

View File

@ -5,21 +5,21 @@
*
* 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 = "radioutil";
$colour_line = "555555";
$colour_area = "999999";
$ds = "radioutil";
$colour_line = "555555";
$colour_area = "999999";
$colour_area_max = "e0e0e0";
$scale_max = 100;
$scale_min = 0;
$unit_text = "Utilisation";
$units = "%";
$scale_max = 100;
$scale_min = 0;
$unit_text = "Utilisation";
$units = "%";
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
?>

View File

@ -5,29 +5,28 @@
*
* 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
*
*/
$rrd_list[0]['filename'] = $rrd_filename;
$rrd_list[0]['descr'] = "txpow";
$rrd_list[0]['ds'] = "txpow";
$rrd_list[0]['descr'] = "txpow";
$rrd_list[0]['ds'] = "txpow";
$unit_text = "dBm";
$units='';
$total_units='';
$colours='mixed';
$units = '';
$total_units = '';
$colours = 'mixed';
$scale_min = "0";
$nototal = 1;
if ($rrd_list)
{
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
if ($rrd_list) {
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
}
?>