mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
fixes to aruba accesspoint graphing
git-svn-id: http://www.observium.org/svn/observer/trunk@3225 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
if (is_numeric($vars['id']))
|
||||
{
|
||||
$ap = accesspoint_by_id($id);
|
||||
$ap = accesspoint_by_id($vars['id']);
|
||||
|
||||
if (is_numeric($ap['device_id']) && ($auth || device_permitted($ap['device_id'])))
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<?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");
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
<?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");
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
<?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");
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
<?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");
|
||||
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
<?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");
|
||||
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
<?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");
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
$device = device_by_id_cache($_REQUEST['device']);
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/".$device['hostname']."/aruba-controller.rrd";
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Number of APs";
|
||||
$rrd_list[0]['ds'] = "NUMAPS";
|
||||
|
||||
$unit_text = "APs";
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
$nototal = 1;
|
||||
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$device = device_by_id_cache($_REQUEST['device']);
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/".$device['hostname']."/aruba-controller.rrd";
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Clients";
|
||||
$rrd_list[0]['ds'] = "NUMCLIENTS";
|
||||
|
||||
$unit_text = "Clients";
|
||||
|
||||
$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