ewc: more WirelessSensors and processor/mempools support (#8294)

* Add Errors, NoiseFloor, RSSI, SNR and Utilization Wireless Sensors for ewc

* Enable processor/mempool support for ewc using existing enterasys implementation

* Add test data
This commit is contained in:
James Andrewartha
2018-03-05 23:46:59 +08:00
committed by Tony Murray
parent 84b0b32bd8
commit 6c3473a7f8
6 changed files with 946 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
mib: ENTERASYS-RESOURCE-UTILIZATION-MIB
modules:
processors:
data:
-
oid: etsysResourceCpuLoad5min
num_oid: '.1.3.6.1.4.1.5624.1.2.49.1.1.1.1.4.{{ $index }}'
index: '{{ $count }}'
precision: 10

View File

@@ -4,8 +4,12 @@ type: wireless
icon: extreme
over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_processor, text: 'CPU Usage' }
- { graph: device_mempool, text: 'Memory Usage' }
- { graph: device_wireless_ap-count, text: 'Connected APs' }
- { graph: device_wireless_clients, text: 'Connected Clients' }
discovery:
- sysObjectID:
- .1.3.6.1.4.1.4329.15.1.1.
mib_dir:
- enterasys

View File

@@ -11,7 +11,7 @@
* the source code distribution for details.
*/
if ($device['os'] == 'enterasys') {
if ($device['os'] == 'enterasys' || $device['os'] == 'ewc') {
$enterasys_mem = snmpwalk_cache_threepart_oid($device, 'etsysResourceStorageTable', array(), 'ENTERASYS-RESOURCE-UTILIZATION-MIB');
foreach ($enterasys_mem as $index => $mem_data) {
foreach ($mem_data['ram'] as $mem_id => $ram) {