mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Added support for EDFA (#9912)
* Create edfa.yaml * Create edfa.inc.php * Create NSCRTV-ROOT * Create edfa.yaml * Add files via upload * Add files via upload
This commit is contained in:
parent
f55302d0c5
commit
54893b9c4e
128
includes/definitions/discovery/edfa.yaml
Normal file
128
includes/definitions/discovery/edfa.yaml
Normal file
@ -0,0 +1,128 @@
|
||||
mib: NSCRTV-ROOT
|
||||
modules:
|
||||
sensors:
|
||||
state:
|
||||
data:
|
||||
-
|
||||
oid: commonDeviceResetCause
|
||||
num_oid: '.1.3.6.1.4.1.17409.1.3.3.2.2.1.13.{{ $index }}'
|
||||
descr: "Last Reset Cause"
|
||||
group: Common
|
||||
state_name: commonDeviceResetCause
|
||||
states:
|
||||
- { value: 1, generic: 3, graph: 1, descr: 'other' }
|
||||
- { value: 2, generic: 2, graph: 1, descr: 'powerup' }
|
||||
- { value: 3, generic: 1, graph: 1, descr: 'command' }
|
||||
- { value: 4, generic: 1, graph: 1, descr: 'watchdog' }
|
||||
- { value: 5, generic: 1, graph: 1, descr: 'craft' }
|
||||
-
|
||||
oid: commonDeviceTamperStatus
|
||||
num_oid: '.1.3.6.1.4.1.17409.1.3.3.2.2.1.11.{{ $index }}'
|
||||
descr: "Safety Switch"
|
||||
group: Common
|
||||
state_name: commonDeviceTamperStatus
|
||||
states:
|
||||
- { value: 1, generic: 1, graph: 1, descr: 'intact' }
|
||||
- { value: 2, generic: 0, graph: 1, descr: 'compromised' }
|
||||
-
|
||||
oid: commonDeviceCraftStatus
|
||||
num_oid: '.1.3.6.1.4.1.17409.1.3.3.2.2.1.14.{{ $index }}'
|
||||
descr: "RS232 or RS485 Status"
|
||||
group: Common
|
||||
state_name: commonDeviceCraftStatus
|
||||
states:
|
||||
- { value: 1, generic: 2, graph: 1, descr: 'disconnected' }
|
||||
- { value: 2, generic: 0, graph: 1, descr: 'connected' }
|
||||
-
|
||||
oid: powerSupplyStatusA
|
||||
num_oid: '.1.3.6.1.4.1.17409.1.11.32.{{ $index }}'
|
||||
descr: "Power Supply A"
|
||||
group: Power
|
||||
state_name: powerSupplyStatusA
|
||||
states:
|
||||
- { value: 0, generic: 3, graph: 1, descr: 'undefined' }
|
||||
- { value: 1, generic: 0, graph: 1, descr: 'nominal' }
|
||||
- { value: 2, generic: 2, graph: 1, descr: 'failure' }
|
||||
- { value: 3, generic: 1, graph: 1, descr: 'notInstalled' }
|
||||
-
|
||||
oid: powerSupplyStatusB
|
||||
num_oid: '.1.3.6.1.4.1.17409.1.11.33.{{ $index }}'
|
||||
descr: "Power Supply B"
|
||||
group: Power
|
||||
state_name: powerSupplyStatusB
|
||||
states:
|
||||
- { value: 0, generic: 3, graph: 1, descr: 'undefined' }
|
||||
- { value: 1, generic: 0, graph: 1, descr: 'nominal' }
|
||||
- { value: 2, generic: 2, graph: 1, descr: 'failure' }
|
||||
- { value: 3, generic: 1, graph: 1, descr: 'notInstalled' }
|
||||
-
|
||||
oid: oaDCPowerSupplyMode
|
||||
num_oid: '.1.3.6.1.4.1.17409.1.11.6.{{ $index }}'
|
||||
descr: "Power Supply Mode"
|
||||
group: Power
|
||||
state_name: oaDCPowerSupplyMode
|
||||
states:
|
||||
- { value: 1, generic: 0, graph: 1, descr: 'loadsharing' }
|
||||
- { value: 2, generic: 0, graph: 1, descr: 'switchRedundant' }
|
||||
- { value: 3, generic: 1, graph: 1, descr: 'aloneSupply' }
|
||||
temperature:
|
||||
data:
|
||||
-
|
||||
oid: commonDeviceInfoEntry
|
||||
value: commonDeviceInternalTemperature
|
||||
num_oid: '.1.3.6.1.4.1.17409.1.3.3.2.2.1.12.{{ $index }}'
|
||||
index: 'commonDeviceInternalTemperature.{{ $index }}'
|
||||
descr: Internal Temperature
|
||||
group: Device
|
||||
-
|
||||
oid: oaPumpEntry
|
||||
value: oaPumpTemp
|
||||
num_oid: '.1.3.6.1.4.1.17409.1.11.4.1.4.{{ $index }}'
|
||||
index: 'oaPumpTemp.{{ $index }}'
|
||||
descr: "Laser Temperature {{ $index }}"
|
||||
group: Laser
|
||||
divisor: 10
|
||||
voltage:
|
||||
data:
|
||||
-
|
||||
oid: oaDCPowerEntry
|
||||
value: oaDCPowerVoltage
|
||||
num_oid: '.1.3.6.1.4.1.17409.1.11.7.1.2.{{ $index }}'
|
||||
index: 'oaDCPowerVoltage.{{ $index }}'
|
||||
descr: oaDCPowerName
|
||||
group: Power
|
||||
divisor: 10
|
||||
current:
|
||||
data:
|
||||
-
|
||||
oid: oaDCPowerEntry
|
||||
value: oaDCPowerCurrent
|
||||
num_oid: '.1.3.6.1.4.1.17409.1.11.7.1.3.{{ $index }}'
|
||||
index: 'oaDCPowerCurrent.{{ $index }}'
|
||||
descr: oaDCPowerName
|
||||
group: Power
|
||||
divisor: 100
|
||||
-
|
||||
oid: oaPumpEntry
|
||||
value: oaPumpBIAS
|
||||
num_oid: '.1.3.6.1.4.1.17409.1.11.4.1.2.{{ $index }}'
|
||||
index: 'oaPumpBIAS.{{ $index }}'
|
||||
descr: "BIAS {{ $index }}"
|
||||
group: Laser
|
||||
multiplier: 100
|
||||
dbm:
|
||||
data:
|
||||
-
|
||||
oid: oaOutputOpticalPower
|
||||
num_oid: '.1.3.6.1.4.1.17409.1.11.2.{{ $index }}'
|
||||
index: 'oaOutputOpticalPower.{{ $index }}'
|
||||
descr: Total Output Optical Power
|
||||
group: Output
|
||||
divisor: 10
|
||||
-
|
||||
oid: oaInputOpticalPower
|
||||
num_oid: '.1.3.6.1.4.1.17409.1.11.3.{{ $index }}'
|
||||
index: 'oaInputOpticalPower.{{ $index }}'
|
||||
descr: Input Optical Power
|
||||
group: Input
|
||||
divisor: 10
|
12
includes/definitions/edfa.yaml
Normal file
12
includes/definitions/edfa.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
os: edfa
|
||||
text: 'EDFA'
|
||||
type: network
|
||||
icon: edfa
|
||||
group: edfa
|
||||
mib_dir:
|
||||
- edfa
|
||||
over:
|
||||
- { graph: device_dbm, text: 'dBm' }
|
||||
discovery:
|
||||
- sysObjectID:
|
||||
- .1.3.6.1.4.1.17409.1
|
4
includes/polling/os/edfa.inc.php
Normal file
4
includes/polling/os/edfa.inc.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
$edfa_tmp = snmp_get_multi_oid($device, ['commonDeviceModelNumber.1', 'commonDeviceSerialNumber.1'], '-OUQs', 'NSCRTV-ROOT');
|
||||
$hardware = $edfa_tmp['commonDeviceModelNumber.1'];
|
||||
$serial = $edfa_tmp['commonDeviceSerialNumber.1'];
|
1410
mibs/edfa/NSCRTV-ROOT
Normal file
1410
mibs/edfa/NSCRTV-ROOT
Normal file
File diff suppressed because it is too large
Load Diff
597
tests/data/edfa.json
Normal file
597
tests/data/edfa.json
Normal file
@ -0,0 +1,597 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.17409.1",
|
||||
"sysDescr": "V1.29_May 24 2016_11:26:12",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": null,
|
||||
"features": null,
|
||||
"os": "edfa",
|
||||
"type": "network",
|
||||
"serial": null,
|
||||
"icon": "generic.svg",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.17409.1",
|
||||
"sysDescr": "V1.29_May 24 2016_11:26:12",
|
||||
"sysContact": "<private>",
|
||||
"version": null,
|
||||
"hardware": "HA5837A-1x016",
|
||||
"features": null,
|
||||
"os": "edfa",
|
||||
"type": "network",
|
||||
"serial": "S26-PYA346",
|
||||
"icon": "generic.svg",
|
||||
"location": "<private>"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"sensors": {
|
||||
"discovery": {
|
||||
"sensors": [
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "current",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.11.7.1.3.1",
|
||||
"sensor_index": "oaDCPowerCurrent.1",
|
||||
"sensor_type": "edfa",
|
||||
"sensor_descr": "DC1[5VDC1]",
|
||||
"group": "Power",
|
||||
"sensor_divisor": 100,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 0,
|
||||
"sensor_limit": 0,
|
||||
"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": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "current",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.11.7.1.3.2",
|
||||
"sensor_index": "oaDCPowerCurrent.2",
|
||||
"sensor_type": "edfa",
|
||||
"sensor_descr": "DC2[3V3DC2]",
|
||||
"group": "Power",
|
||||
"sensor_divisor": 100,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 0.02,
|
||||
"sensor_limit": 0.03,
|
||||
"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": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "current",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.11.4.1.2.1",
|
||||
"sensor_index": "oaPumpBIAS.1",
|
||||
"sensor_type": "edfa",
|
||||
"sensor_descr": "BIAS 1",
|
||||
"group": "Laser",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 100,
|
||||
"sensor_current": 0,
|
||||
"sensor_limit": 0,
|
||||
"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": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "current",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.11.4.1.2.2",
|
||||
"sensor_index": "oaPumpBIAS.2",
|
||||
"sensor_type": "edfa",
|
||||
"sensor_descr": "BIAS 2",
|
||||
"group": "Laser",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 100,
|
||||
"sensor_current": 0,
|
||||
"sensor_limit": 0,
|
||||
"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": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "dbm",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.11.3.0",
|
||||
"sensor_index": "oaInputOpticalPower.0",
|
||||
"sensor_type": "edfa",
|
||||
"sensor_descr": "Input Optical Power",
|
||||
"group": "Input",
|
||||
"sensor_divisor": 10,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": -1,
|
||||
"sensor_limit": -0.95,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": -1.05,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "dbm",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.11.2.0",
|
||||
"sensor_index": "oaOutputOpticalPower.0",
|
||||
"sensor_type": "edfa",
|
||||
"sensor_descr": "Total Output Optical Power",
|
||||
"group": "Output",
|
||||
"sensor_divisor": 10,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": -35.5,
|
||||
"sensor_limit": -33.725,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": -37.275,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "state",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.3.3.2.2.1.14.1",
|
||||
"sensor_index": "1",
|
||||
"sensor_type": "commonDeviceCraftStatus",
|
||||
"sensor_descr": "RS232 or RS485 Status",
|
||||
"group": "Common",
|
||||
"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": "commonDeviceCraftStatus"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "state",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.3.3.2.2.1.13.1",
|
||||
"sensor_index": "1",
|
||||
"sensor_type": "commonDeviceResetCause",
|
||||
"sensor_descr": "Last Reset Cause",
|
||||
"group": "Common",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 4,
|
||||
"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": "commonDeviceResetCause"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "state",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.3.3.2.2.1.11.1",
|
||||
"sensor_index": "1",
|
||||
"sensor_type": "commonDeviceTamperStatus",
|
||||
"sensor_descr": "Safety Switch",
|
||||
"group": "Common",
|
||||
"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": "commonDeviceTamperStatus"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "state",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.11.6.0",
|
||||
"sensor_index": "0",
|
||||
"sensor_type": "oaDCPowerSupplyMode",
|
||||
"sensor_descr": "Power Supply Mode",
|
||||
"group": "Power",
|
||||
"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": "oaDCPowerSupplyMode"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "state",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.11.32.0",
|
||||
"sensor_index": "0",
|
||||
"sensor_type": "powerSupplyStatusA",
|
||||
"sensor_descr": "Power Supply A",
|
||||
"group": "Power",
|
||||
"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": "powerSupplyStatusA"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "state",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.11.33.0",
|
||||
"sensor_index": "0",
|
||||
"sensor_type": "powerSupplyStatusB",
|
||||
"sensor_descr": "Power Supply B",
|
||||
"group": "Power",
|
||||
"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": "powerSupplyStatusB"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "temperature",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.3.3.2.2.1.12.1",
|
||||
"sensor_index": "commonDeviceInternalTemperature.1",
|
||||
"sensor_type": "edfa",
|
||||
"sensor_descr": "Internal Temperature",
|
||||
"group": "Device",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 22,
|
||||
"sensor_limit": 42,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": 12,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "temperature",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.11.4.1.4.1",
|
||||
"sensor_index": "oaPumpTemp.1",
|
||||
"sensor_type": "edfa",
|
||||
"sensor_descr": "Laser Temperature 1",
|
||||
"group": "Laser",
|
||||
"sensor_divisor": 10,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 24.9,
|
||||
"sensor_limit": 44.9,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": 14.9,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "temperature",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.11.4.1.4.2",
|
||||
"sensor_index": "oaPumpTemp.2",
|
||||
"sensor_type": "edfa",
|
||||
"sensor_descr": "Laser Temperature 2",
|
||||
"group": "Laser",
|
||||
"sensor_divisor": 10,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 0,
|
||||
"sensor_limit": 20,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": -10,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "voltage",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.11.7.1.2.1",
|
||||
"sensor_index": "oaDCPowerVoltage.1",
|
||||
"sensor_type": "edfa",
|
||||
"sensor_descr": "DC1[5VDC1]",
|
||||
"group": "Power",
|
||||
"sensor_divisor": 10,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 5,
|
||||
"sensor_limit": 5.75,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": 4.25,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "voltage",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.17409.1.11.7.1.2.2",
|
||||
"sensor_index": "oaDCPowerVoltage.2",
|
||||
"sensor_type": "edfa",
|
||||
"sensor_descr": "DC2[3V3DC2]",
|
||||
"group": "Power",
|
||||
"sensor_divisor": 10,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 0,
|
||||
"sensor_limit": 0,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": 0,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": null
|
||||
}
|
||||
],
|
||||
"state_indexes": [
|
||||
{
|
||||
"state_name": "commonDeviceCraftStatus",
|
||||
"state_descr": "disconnected",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 1,
|
||||
"state_generic_value": 2
|
||||
},
|
||||
{
|
||||
"state_name": "commonDeviceCraftStatus",
|
||||
"state_descr": "connected",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 2,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "commonDeviceResetCause",
|
||||
"state_descr": "other",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 1,
|
||||
"state_generic_value": 3
|
||||
},
|
||||
{
|
||||
"state_name": "commonDeviceResetCause",
|
||||
"state_descr": "powerup",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 2,
|
||||
"state_generic_value": 2
|
||||
},
|
||||
{
|
||||
"state_name": "commonDeviceResetCause",
|
||||
"state_descr": "command",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 3,
|
||||
"state_generic_value": 1
|
||||
},
|
||||
{
|
||||
"state_name": "commonDeviceResetCause",
|
||||
"state_descr": "watchdog",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 4,
|
||||
"state_generic_value": 1
|
||||
},
|
||||
{
|
||||
"state_name": "commonDeviceResetCause",
|
||||
"state_descr": "craft",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 5,
|
||||
"state_generic_value": 1
|
||||
},
|
||||
{
|
||||
"state_name": "commonDeviceTamperStatus",
|
||||
"state_descr": "intact",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 1,
|
||||
"state_generic_value": 1
|
||||
},
|
||||
{
|
||||
"state_name": "commonDeviceTamperStatus",
|
||||
"state_descr": "compromised",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 2,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "oaDCPowerSupplyMode",
|
||||
"state_descr": "loadsharing",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 1,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "oaDCPowerSupplyMode",
|
||||
"state_descr": "switchRedundant",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 2,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "oaDCPowerSupplyMode",
|
||||
"state_descr": "aloneSupply",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 3,
|
||||
"state_generic_value": 1
|
||||
},
|
||||
{
|
||||
"state_name": "powerSupplyStatusA",
|
||||
"state_descr": "undefined",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 0,
|
||||
"state_generic_value": 3
|
||||
},
|
||||
{
|
||||
"state_name": "powerSupplyStatusA",
|
||||
"state_descr": "nominal",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 1,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "powerSupplyStatusA",
|
||||
"state_descr": "failure",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 2,
|
||||
"state_generic_value": 2
|
||||
},
|
||||
{
|
||||
"state_name": "powerSupplyStatusA",
|
||||
"state_descr": "notInstalled",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 3,
|
||||
"state_generic_value": 1
|
||||
},
|
||||
{
|
||||
"state_name": "powerSupplyStatusB",
|
||||
"state_descr": "undefined",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 0,
|
||||
"state_generic_value": 3
|
||||
},
|
||||
{
|
||||
"state_name": "powerSupplyStatusB",
|
||||
"state_descr": "nominal",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 1,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "powerSupplyStatusB",
|
||||
"state_descr": "failure",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 2,
|
||||
"state_generic_value": 2
|
||||
},
|
||||
{
|
||||
"state_name": "powerSupplyStatusB",
|
||||
"state_descr": "notInstalled",
|
||||
"state_draw_graph": 1,
|
||||
"state_value": 3,
|
||||
"state_generic_value": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
46
tests/snmpsim/edfa.snmprec
Normal file
46
tests/snmpsim/edfa.snmprec
Normal file
@ -0,0 +1,46 @@
|
||||
1.3.6.1.2.1.1.1.0|4|V1.29_May 24 2016_11:26:12
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.17409.1
|
||||
1.3.6.1.2.1.1.3.0|67|790588
|
||||
1.3.6.1.2.1.1.4.0|4|<private>
|
||||
1.3.6.1.2.1.1.5.0|4|<private>
|
||||
1.3.6.1.2.1.1.6.0|4|<private>
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.1.1|2|1
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.2.1|4|EDFA
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.3.1|4|
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.4.1|4|HA5837A-1x016
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.5.1|4|S26-PYA346
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.6.1|4|
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.7.1|4x|10
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.8.1|2|0
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.9.1|2|2
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.10.1|4x|002018071301
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.11.1|2|1
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.12.1|2|22
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.13.1|2|4
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.14.1|2|2
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.15.1|6|1.3.6.1.4.1.17409.1.11
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.16.1|65|0
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.17.1|4|EDFA
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.18.1|4|2018-7-13
|
||||
1.3.6.1.4.1.17409.1.3.3.2.2.1.19.1|4|EDFA
|
||||
1.3.6.1.4.1.17409.1.11.2.0|2|-355
|
||||
1.3.6.1.4.1.17409.1.11.3.0|2|-10
|
||||
1.3.6.1.4.1.17409.1.11.4.1.1.1|2|1
|
||||
1.3.6.1.4.1.17409.1.11.4.1.1.2|2|2
|
||||
1.3.6.1.4.1.17409.1.11.4.1.2.1|2|0
|
||||
1.3.6.1.4.1.17409.1.11.4.1.2.2|2|0
|
||||
1.3.6.1.4.1.17409.1.11.4.1.3.1|2|2
|
||||
1.3.6.1.4.1.17409.1.11.4.1.3.2|2|0
|
||||
1.3.6.1.4.1.17409.1.11.4.1.4.1|2|249
|
||||
1.3.6.1.4.1.17409.1.11.4.1.4.2|2|0
|
||||
1.3.6.1.4.1.17409.1.11.6.0|2|2
|
||||
1.3.6.1.4.1.17409.1.11.7.1.1.1|2|1
|
||||
1.3.6.1.4.1.17409.1.11.7.1.1.2|2|2
|
||||
1.3.6.1.4.1.17409.1.11.7.1.2.1|2|50
|
||||
1.3.6.1.4.1.17409.1.11.7.1.2.2|2|0
|
||||
1.3.6.1.4.1.17409.1.11.7.1.3.1|2|0
|
||||
1.3.6.1.4.1.17409.1.11.7.1.3.2|2|2
|
||||
1.3.6.1.4.1.17409.1.11.7.1.4.1|4|DC1[5VDC1]
|
||||
1.3.6.1.4.1.17409.1.11.7.1.4.2|4|DC2[3V3DC2]
|
||||
1.3.6.1.4.1.17409.1.11.32.0|2|1
|
||||
1.3.6.1.4.1.17409.1.11.33.0|2|1
|
Loading…
Reference in New Issue
Block a user