mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
accesspoint support (probably) from ethan sommer (#50)
git-svn-id: http://www.observium.org/svn/observer/trunk@3223 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
17
html/includes/graphs/accesspoints/auth.inc.php
Normal file
17
html/includes/graphs/accesspoints/auth.inc.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
if (is_numeric($vars['id']))
|
||||
{
|
||||
$ap = accesspoint_by_id($id);
|
||||
|
||||
if (is_numeric($ap['device_id']) && ($auth || device_permitted($ap['device_id'])))
|
||||
{
|
||||
$device = device_by_id_cache($ap['device_id']);
|
||||
|
||||
$title = generate_device_link($device);
|
||||
$title .= " :: AP :: " . htmlentities($ap['name']);
|
||||
$auth = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
24
html/includes/graphs/accesspoints/channel.inc.php
Normal file
24
html/includes/graphs/accesspoints/channel.inc.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] ."/". safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Channel";
|
||||
$rrd_list[0]['ds'] = "channel";
|
||||
|
||||
$unit_text = "Channel";
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
}
|
||||
|
||||
?>
|
27
html/includes/graphs/accesspoints/interference.inc.php
Normal file
27
html/includes/graphs/accesspoints/interference.inc.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
$ap=accesspoint_by_id($id);
|
||||
$device = device_by_id_cache($ap['device_id']);
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] ."/".
|
||||
safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Interference";
|
||||
$rrd_list[0]['ds'] = "interference";
|
||||
|
||||
$unit_text = "Int";
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
}
|
||||
|
||||
?>
|
28
html/includes/graphs/accesspoints/numasoclients.inc.php
Normal file
28
html/includes/graphs/accesspoints/numasoclients.inc.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
$ap=accesspoint_by_id($id);
|
||||
$device = device_by_id_cache($ap['device_id']);
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] ."/".
|
||||
safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Num Clients";
|
||||
$rrd_list[0]['ds'] = "numasoclients";
|
||||
|
||||
$unit_text = "Clients";
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
}
|
||||
|
||||
?>
|
29
html/includes/graphs/accesspoints/nummonbssid.inc.php
Normal file
29
html/includes/graphs/accesspoints/nummonbssid.inc.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
$ap=accesspoint_by_id($id);
|
||||
$device = device_by_id_cache($ap['device_id']);
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] ."/".
|
||||
safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "MonBSSIDs";
|
||||
$rrd_list[0]['ds'] = "nummonbssid";
|
||||
|
||||
$unit_text = "BSSIDs";
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
}
|
||||
|
||||
|
||||
?>
|
28
html/includes/graphs/accesspoints/nummonclients.inc.php
Normal file
28
html/includes/graphs/accesspoints/nummonclients.inc.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
$ap=accesspoint_by_id($id);
|
||||
$device = device_by_id_cache($ap['device_id']);
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] ."/".
|
||||
safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Mon Clients";
|
||||
$rrd_list[0]['ds'] = "nummonclients";
|
||||
|
||||
$unit_text = "Clients";
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
}
|
||||
|
||||
?>
|
30
html/includes/graphs/accesspoints/radioutil.inc.php
Normal file
30
html/includes/graphs/accesspoints/radioutil.inc.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
$ap=accesspoint_by_id($id);
|
||||
$device = device_by_id_cache($ap['device_id']);
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] ."/".
|
||||
safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "radioutil";
|
||||
$rrd_list[0]['ds'] = "radioutil";
|
||||
|
||||
$unit_text = "Percent";
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
}
|
||||
|
||||
?>
|
31
html/includes/graphs/accesspoints/txpow.inc.php
Normal file
31
html/includes/graphs/accesspoints/txpow.inc.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
$ap=accesspoint_by_id($id);
|
||||
$device = device_by_id_cache($ap['device_id']);
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] ."/".
|
||||
safename("arubaap-$ap[name].$ap[radio_number].rrd");
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "txpow";
|
||||
$rrd_list[0]['ds'] = "txpow";
|
||||
|
||||
$unit_text = "dBm";
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
}
|
||||
|
||||
|
||||
?>
|
Reference in New Issue
Block a user