Netscaler SDWAN appliance - Serial# + Version and state sensors (#9834)

* mib

* versions and serial

* sensors

* sensors

* tests

* cleaning

* (force travis rerun)
This commit is contained in:
PipoCanaja
2019-02-18 17:16:40 +01:00
committed by Tony Murray
parent 9dba9f6265
commit cc08235fe2
5 changed files with 3877 additions and 8 deletions

View File

@@ -0,0 +1,26 @@
mib: CITRIX-NetScaler-SD-WAN-MIB
modules:
sensors:
state:
data:
-
oid: sdWANStatsApplianceHAState
num_oid: '.1.3.6.1.4.1.3845.31.4.2.2.12.1.9'
index: 'sdWANStatsApplianceHAState'
descr: HA State
state_name: sdWANStatsApplianceHAState
states:
- { value: 0, generic: 3, graph: 1, descr: undefined }
- { value: 1, generic: 0, graph: 1, descr: notConfigured }
- { value: 2, generic: 0, graph: 1, descr: active }
- { value: 3, generic: 0, graph: 1, descr: standby }
-
oid: sdWANStatsApplianceState
num_oid: '.1.3.6.1.4.1.3845.31.4.2.2.12.1.8'
index: 'sdWANStatsApplianceState'
descr: State
state_name: sdWANStatsApplianceState
states:
- { value: 0, generic: 3, graph: 1, descr: undefined }
- { value: 1, generic: 1, graph: 1, descr: disabled }
- { value: 2, generic: 0, graph: 1, descr: enabled }

View File

@@ -0,0 +1,9 @@
<?php
$osVersion = snmp_get($device, 'sdWANStatsApplianceOSVersion', '-Osqv', 'CITRIX-NetScaler-SD-WAN-MIB');
$swVersion = snmp_get($device, 'sdWANStatsApplianceSoftwareVersion', '-Osqv', 'CITRIX-NetScaler-SD-WAN-MIB');
$version = "OS: $osVersion, SW: $swVersion";
$serial = snmp_get($device, 'sdWANStatsApplianceSerialNumber', '-Osqv', 'CITRIX-NetScaler-SD-WAN-MIB');
// Appears to be the model name from the MIB, to be checked in real
$hardware = snmp_get($device, 'sdWANStatsApplianceName', '-Osqv', 'CITRIX-NetScaler-SD-WAN-MIB');