ArubaOS - Addtional support to poll Active VPN sessions (#16137)

* This commit changes two files in the LibreNMS repo, to enable polling of the ArubaOS OID that reports active vpn sessions.

The first file is the arubaos.yaml discovery file to enable polling of the following OID WLSX-USER-MIB::wlsxNumOfUsersVPN(OID: .1.3.6.1.4.1.14823.2.2.1.4.1.4.2.0).

The second file  arubacontroller_vpnsessions.inc.php is a graphing file to allow the use of this sensor on a dashboard.

* Update arubacontroller_vpnsessions.inc.php

Added newline at end of file to follow style guide

* Update arubaos.yaml

Added newline at end of file to follow style guide

* keep {{ $index }} in the num_oid and index

* Update arubacontroller_vpnsessions.inc.php

fix to match the rrdfilename change

* Added test data

* Added test data

* Removed extra file

* added variant vmc json test data

* revert arubaos.json

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
This commit is contained in:
schnobbc
2024-06-25 04:15:28 -04:00
committed by GitHub
parent 137bd231f9
commit 73e6376de1
4 changed files with 3437 additions and 0 deletions

View File

@@ -18,3 +18,11 @@ modules:
value: WLSX-SYSTEMEXT-MIB::sysExtProcessorLoad
num_oid: '.1.3.6.1.4.1.14823.2.2.1.2.1.13.1.3.{{ $index }}'
descr: WLSX-SYSTEMEXT-MIB::sysExtProcessorDescr
sensors:
count:
data:
-
oid: WLSX-USER-MIB::wlsxNumOfUsersVPN
num_oid: '.1.3.6.1.4.1.14823.2.2.1.4.1.4.2.{{ $index }}'
descr: 'Active VPN sessions'
index: 'vpnsessions{{ $index }}'

View File

@@ -0,0 +1,13 @@
<?php
require 'includes/html/graphs/common.inc.php';
$rrd_filename = Rrd::name($device['hostname'], 'sensor-count-arubaos-vpnsessions0');
$ds = 'sensor';
$colour_area = '9999cc';
$colour_line = '0000cc';
$colour_area_max = 'aaaaacc';
$scale_min = 0;
$unit_text = 'Active Tunnels';
require 'includes/html/graphs/generic_simplex.inc.php';