mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
26
includes/definitions/discovery/netscaler-sdwan.yaml
Normal file
26
includes/definitions/discovery/netscaler-sdwan.yaml
Normal 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 }
|
9
includes/polling/os/netscaler-sdwan.inc.php
Normal file
9
includes/polling/os/netscaler-sdwan.inc.php
Normal 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');
|
3722
mibs/citrix/CITRIX-NetScaler-SD-WAN-MIB
Normal file
3722
mibs/citrix/CITRIX-NetScaler-SD-WAN-MIB
Normal file
File diff suppressed because it is too large
Load Diff
@@ -8,13 +8,13 @@
|
||||
"sysDescr": "Citrix Virtual WAN Appliance",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": "",
|
||||
"hardware": null,
|
||||
"features": null,
|
||||
"location": null,
|
||||
"os": "netscaler-sdwan",
|
||||
"type": "appliance",
|
||||
"serial": null,
|
||||
"icon": "citrix.svg"
|
||||
"icon": "citrix.svg",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -25,16 +25,122 @@
|
||||
"sysObjectID": ".1.3.6.1.4.1.3845.31.4",
|
||||
"sysDescr": "Citrix Virtual WAN Appliance",
|
||||
"sysContact": "<private>",
|
||||
"version": null,
|
||||
"hardware": "",
|
||||
"version": "OS: 4.6, SW: 9.3.4.29.662777",
|
||||
"hardware": "PRIVATESTRING01-CB410",
|
||||
"features": null,
|
||||
"location": "<private>",
|
||||
"os": "netscaler-sdwan",
|
||||
"type": "appliance",
|
||||
"serial": null,
|
||||
"icon": "citrix.svg"
|
||||
"serial": "FXPA6CSPG9",
|
||||
"icon": "citrix.svg",
|
||||
"location": "<private>"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"sensors": {
|
||||
"discovery": {
|
||||
"sensors": [
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "state",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.3845.31.4.2.2.12.1.9",
|
||||
"sensor_index": "sdWANStatsApplianceHAState",
|
||||
"sensor_type": "sdWANStatsApplianceHAState",
|
||||
"sensor_descr": "HA State",
|
||||
"group": "",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 1,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": "sdWANStatsApplianceHAState"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "state",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.3845.31.4.2.2.12.1.8",
|
||||
"sensor_index": "sdWANStatsApplianceState",
|
||||
"sensor_type": "sdWANStatsApplianceState",
|
||||
"sensor_descr": "State",
|
||||
"group": "",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 2,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": "sdWANStatsApplianceState"
|
||||
}
|
||||
],
|
||||
"state_indexes": [
|
||||
{
|
||||
"state_name": "sdWANStatsApplianceHAState",
|
||||
"state_descr": "undefined",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 0,
|
||||
"state_generic_value": 3
|
||||
},
|
||||
{
|
||||
"state_name": "sdWANStatsApplianceHAState",
|
||||
"state_descr": "notConfigured",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 1,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "sdWANStatsApplianceHAState",
|
||||
"state_descr": "active",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 2,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "sdWANStatsApplianceHAState",
|
||||
"state_descr": "standby",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 3,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "sdWANStatsApplianceState",
|
||||
"state_descr": "undefined",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 0,
|
||||
"state_generic_value": 3
|
||||
},
|
||||
{
|
||||
"state_name": "sdWANStatsApplianceState",
|
||||
"state_descr": "disabled",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 1,
|
||||
"state_generic_value": 1
|
||||
},
|
||||
{
|
||||
"state_name": "sdWANStatsApplianceState",
|
||||
"state_descr": "enabled",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 2,
|
||||
"state_generic_value": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
||||
|
@@ -299,3 +299,9 @@
|
||||
1.3.6.1.2.1.31.1.1.1.19.6|67|0
|
||||
1.3.6.1.2.1.31.1.1.1.19.7|67|0
|
||||
1.3.6.1.2.1.31.1.1.1.19.8|67|0
|
||||
1.3.6.1.4.1.3845.31.4.2.2.12.1.1|4|PRIVATESTRING01-CB410
|
||||
1.3.6.1.4.1.3845.31.4.2.2.12.1.8|2|2
|
||||
1.3.6.1.4.1.3845.31.4.2.2.12.1.9|2|1
|
||||
1.3.6.1.4.1.3845.31.4.2.2.12.1.10|4|FXPA6CSPG9
|
||||
1.3.6.1.4.1.3845.31.4.2.2.12.1.11|4|4.6
|
||||
1.3.6.1.4.1.3845.31.4.2.2.12.1.12|4|9.3.4.29.662777
|
||||
|
Reference in New Issue
Block a user