initial commit; version 22.5.12042

This commit is contained in:
2022-12-12 23:28:25 -05:00
commit af1b03d79f
17653 changed files with 22692970 additions and 0 deletions

View File

@ -0,0 +1,31 @@
<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
*
*/
if (is_numeric($vars['id']))
{
$radio = dbFetchRow("SELECT * FROM `wifi_radios` WHERE `wifi_radio_id` = ?", array($vars['id']));
if (is_numeric($radio['device_id']) && ($auth || device_permitted($radio['device_id'])))
{
$device = device_by_id_cache($radio['device_id']);
$rrd_filename = get_rrd_path($device, "wifi-radio-" . $radio['radio_ap'] . "-" . $radio['radio_number'] . ".rrd");
$title = generate_device_link($device);
$title .= " :: WiFi - Radio :: " . escape_html($radio['radio_number']);
$auth = TRUE;
}
}
// EOF

View File

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

View File

@ -0,0 +1,38 @@
<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
*
*/
// $scale_min = 0;
$colours = "reds";
$nototal = 0;
$unit_text = "Errors";
$array = array(
'num_stations' => array('descr' => 'Stations'),
'auth_stations' => array('descr' => 'Authenticated Stations'),
);
if (rrd_is_file($rrd_filename))
{
foreach ($array as $ds => $data)
{
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $data['descr'];
$rrd_list[$i]['ds'] = $ds;
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
$i++;
}
} else {
echo("file missing: $file");
}
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");

View File

@ -0,0 +1,32 @@
<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
*
*/
$ds_in = "rx_frames";
$ds_out = "tx_frames";
$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_out_max = $config['colours']['graphs']['pkts']['out_max'];
$graph_max = 1;
$unit_text = "Frames/s";
$args['nototal'] = 1; $print_total = 0; $nototal = 1;
include($config['html_dir']."/includes/graphs/generic_duplex.inc.php");
?>

View File

@ -0,0 +1,42 @@
<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
*
*/
// $scale_min = 0;
$colours = "reds";
$nototal = 0;
$unit_text = "Errors";
$log_y = FALSE;
$array = array(
'rx_errors' => array('descr' => 'Errors'),
'rx_wep_fail' => array('descr' => 'WEP Errors'),
'rx_mic_error' => array('descr' => 'MIC Errors'),
'rx_decrypt_crcerr' => array('descr' => 'Decrypt CRC Errors')
);
if (rrd_is_file($rrd_filename))
{
foreach ($array as $ds => $data)
{
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $data['descr'];
$rrd_list[$i]['ds'] = $ds;
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
$i++;
}
} else {
echo("file missing: $file");
}
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");