Commit version 24.12.13800
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
@ -7,21 +6,22 @@
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
if (is_numeric($vars['id']))
|
||||
{
|
||||
$radio = dbFetchRow("SELECT * FROM `wifi_accesspoints`, `wifi_radios` WHERE `wifi_accesspoints`.`wifi_accesspoint_id` = `wifi_radios`.`accesspoint_id` AND `wifi_radios`.`wifi_radio_id` = ? ", array($vars['id']));
|
||||
if (is_numeric($radio['device_id']) && ($auth || device_permitted($radio['device_id'])))
|
||||
{
|
||||
if (!is_intnum($vars['id'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
$radio = dbFetchRow("SELECT * FROM `wifi_accesspoints`, `wifi_radios` WHERE `wifi_accesspoints`.`wifi_accesspoint_id` = `wifi_radios`.`accesspoint_id` AND `wifi_radios`.`wifi_radio_id` = ? ", [$vars['id']]);
|
||||
if (is_numeric($radio['device_id']) && ($auth || device_permitted($radio['device_id']))) {
|
||||
$device = device_by_id_cache($radio['device_id']);
|
||||
|
||||
$title = generate_device_link($device);
|
||||
$title .= " :: WIFI - Accesspoint :: " . escape_html($radio['name']);
|
||||
$auth = TRUE;
|
||||
}
|
||||
$auth = TRUE;
|
||||
|
||||
$graph_title = device_name($device, TRUE);
|
||||
$graph_title .= " :: WiFi Accesspoint :: " . $radio['name'];
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
@ -5,31 +5,30 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrdfile = get_rrd_path($device, "wifi-radio-". $radio['serial'] . '-' . $radio['radio_number'].".rrd");
|
||||
$rrdfile = get_rrd_path($device, "wifi-radio-" . $radio['serial'] . '-' . $radio['radio_number'] . ".rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrdfile;
|
||||
$rrd_list[0]['descr'] = "Client failed associations";
|
||||
$rrd_list[0]['ds'] = "ClientFailedAssocia";
|
||||
$rrd_list[0]['descr'] = "Client failed associations";
|
||||
$rrd_list[0]['ds'] = "ClientFailedAssocia";
|
||||
|
||||
$unit_text = "associations";
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
@ -5,31 +5,30 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrdfile = get_rrd_path($device, "wifi-radio-". $radio['serial'] . '-' . $radio['radio_number'].".rrd");
|
||||
$rrdfile = get_rrd_path($device, "wifi-radio-" . $radio['serial'] . '-' . $radio['radio_number'] . ".rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrdfile;
|
||||
$rrd_list[0]['descr'] = "Noise Floor";
|
||||
$rrd_list[0]['ds'] = "NoiseFloor";
|
||||
$rrd_list[0]['descr'] = "Noise Floor";
|
||||
$rrd_list[0]['ds'] = "NoiseFloor";
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -5,31 +5,30 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrdfile = get_rrd_path($device, "wifi-radio-". $radio['serial'] . '-' . $radio['radio_number'].".rrd");
|
||||
$rrdfile = get_rrd_path($device, "wifi-radio-" . $radio['serial'] . '-' . $radio['radio_number'] . ".rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrdfile;
|
||||
$rrd_list[0]['descr'] = "Refused connections";
|
||||
$rrd_list[0]['ds'] = "RefusedConnectionCo";
|
||||
$rrd_list[0]['descr'] = "Refused connections";
|
||||
$rrd_list[0]['ds'] = "RefusedConnectionCo";
|
||||
|
||||
$unit_text = "connections";
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -5,31 +5,30 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrdfile = get_rrd_path($device, "wifi-radio-". $radio['serial'] . '-' . $radio['radio_number'].".rrd");
|
||||
$rrdfile = get_rrd_path($device, "wifi-radio-" . $radio['serial'] . '-' . $radio['radio_number'] . ".rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrdfile;
|
||||
$rrd_list[0]['descr'] = "Reset count";
|
||||
$rrd_list[0]['ds'] = "ResetCount";
|
||||
$rrd_list[0]['descr'] = "Reset count";
|
||||
$rrd_list[0]['ds'] = "ResetCount";
|
||||
|
||||
$unit_text = "Resets";
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -5,31 +5,30 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrdfile = get_rrd_path($device, "wifi-radio-". $radio['serial'] . '-' . $radio['radio_number'].".rrd");
|
||||
$rrdfile = get_rrd_path($device, "wifi-radio-" . $radio['serial'] . '-' . $radio['radio_number'] . ".rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrdfile;
|
||||
$rrd_list[0]['descr'] = "Octets retransmits";
|
||||
$rrd_list[0]['ds'] = "ReTransmitOctet";
|
||||
$rrd_list[0]['descr'] = "Octets retransmits";
|
||||
$rrd_list[0]['ds'] = "ReTransmitOctet";
|
||||
|
||||
$unit_text = "Octets";
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -5,31 +5,30 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrdfile = get_rrd_path($device, "wifi-radio-". $radio['serial'] . '-' . $radio['radio_number'].".rrd");
|
||||
$rrdfile = get_rrd_path($device, "wifi-radio-" . $radio['serial'] . '-' . $radio['radio_number'] . ".rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrdfile;
|
||||
$rrd_list[0]['descr'] = "Retries";
|
||||
$rrd_list[0]['ds'] = "TxRetriesCount";
|
||||
$rrd_list[0]['descr'] = "Retries";
|
||||
$rrd_list[0]['ds'] = "TxRetriesCount";
|
||||
|
||||
$unit_text = "Retries";
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -5,31 +5,30 @@
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
$rrdfile = get_rrd_path($device, "wifi-radio-". $radio['serial'] . '-' . $radio['radio_number'].".rrd");
|
||||
$rrdfile = get_rrd_path($device, "wifi-radio-" . $radio['serial'] . '-' . $radio['radio_number'] . ".rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrdfile;
|
||||
$rrd_list[0]['descr'] = "User sessions";
|
||||
$rrd_list[0]['ds'] = "UserSessions";
|
||||
$rrd_list[0]['descr'] = "User sessions";
|
||||
$rrd_list[0]['ds'] = "UserSessions";
|
||||
|
||||
$unit_text = "Sessions";
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user