newdevice: Added support for Moxa EDS-P510A-8PoE (#8384)

* newdevice: add support for Moxa EDS-P510A-8PoE

Support PoE port consumption, SFP module monitoring and power input statuses for Moxa EDS-P510A-8PoE industrial switch.

* Add Moxa EDS-P510A-8PoE MIB

* Rename MOXA-EDSP510A_8POE-V3.7-MIB.my to MOXA-EDSP510A_8POE-V3.7-MIB

* Update moxa-etherdevice.yaml

Moved MIB definitions to the top as proposed by @laf

* Create moxa-etherdevice_edsp510a8poe.snmprec

* Create moxa-etherdevice_edsp510a8poe.json

* Rename MOXA-EDSP510A_8POE-V3.7-MIB to MOXA-EDSP510A8POE-MIB
This commit is contained in:
priiduonu
2018-03-19 22:58:41 +02:00
committed by Neil Lathwood
parent a83ebdc078
commit f68f4b2240
4 changed files with 5325 additions and 2 deletions

View File

@@ -1,16 +1,79 @@
mib: IF-MIB:MOXA-IKS6726A-MIB:MOXA-EDSG508E-MIB:MOXA-EDSP510A8POE-MIB
modules:
sensors:
pre-cache:
data:
- oid:
- ifDescr
power:
data:
-
oid: MOXA-IKS6726A-MIB::powerConsumption
oid: powerConsumption
num_oid: .1.3.6.1.4.1.8691.7.116.1.10.8.
descr: 'Power Consumption'
index: 'powerConsumption.{{ $index }}'
value: powerConsumption
-
oid: MOXA-EDSG508E-MIB::powerConsumption
oid: powerConsumption
num_oid: .1.3.6.1.4.1.8691.7.69.1.10.8.
descr: 'Power Consumption'
index: 'powerConsumption.{{ $index }}'
value: powerConsumption
-
oid: poePortConsumption
num_oid: .1.3.6.1.4.1.8691.7.86.1.40.6.1.2.
descr: '{{ $ifDescr }} PoE Consumption'
index: 'poePortConsumption.{{ $index }}'
value: poePortConsumption
temperature:
data:
-
oid: sfpTemperature
num_oid: .1.3.6.1.4.1.8691.7.86.1.10.7.1.3.
descr: '{{ $ifDescr }} SFP module temperature'
index: 'sfpTemperature.{{ $index }}'
value: sfpTemperature
voltage:
data:
-
oid: sfpVoltage
num_oid: .1.3.6.1.4.1.8691.7.86.1.10.7.1.4.
descr: '{{ $ifDescr }} SFP module Supply Voltage'
index: 'sfpVoltage.{{ $index }}'
value: sfpVoltage
dbm:
data:
-
oid: sfpTxPower
num_oid: .1.3.6.1.4.1.8691.7.86.1.10.7.1.5.
descr: '{{ $ifDescr }} SFP module Transmit Power'
index: 'sfpTxPower.{{ $index }}'
value: sfpTxPower
-
oid: sfpRXPower
num_oid: .1.3.6.1.4.1.8691.7.86.1.10.7.1.6.
descr: '{{ $ifDescr }} SFP module Receive Power'
index: 'sfpRxPower.{{ $index }}'
value: sfpRXPower
state:
data:
-
oid: power1InputStatus
num_oid: .1.3.6.1.4.1.8691.7.86.1.10.1.
descr: 'Power Input 1 Status'
index: 'powerInputStatus.1'
value: power1InputStatus
state_name: powerInputStatus
states:
- { value: 0, generic: 2, graph: 0, descr: not present }
- { value: 1, generic: 0, graph: 0, descr: present }
-
oid: power2InputStatus
num_oid: .1.3.6.1.4.1.8691.7.86.1.10.2.
descr: 'Power Input 2 Status'
index: 'powerInputStatus.2'
value: power2InputStatus
state_name: powerInputStatus
states:
- { value: 0, generic: 2, graph: 0, descr: not present }
- { value: 1, generic: 0, graph: 0, descr: present }

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,347 @@
{
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": "0",
"sensor_class": "dbm",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.8691.7.86.1.10.7.1.5.9",
"sensor_index": "sfpTxPower.9",
"sensor_type": "moxa-etherdevice",
"sensor_descr": "Ethernet Port G1 SFP module Transmit Power",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "-6.1",
"sensor_limit": "-5.795",
"sensor_limit_warn": null,
"sensor_limit_low": "-6.405",
"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.8691.7.86.1.10.7.1.6.9",
"sensor_index": "sfpRxPower.9",
"sensor_type": "moxa-etherdevice",
"sensor_descr": "Ethernet Port G1 SFP module Receive Power",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "-6.9",
"sensor_limit": "-6.555",
"sensor_limit_warn": null,
"sensor_limit_low": "-7.245",
"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": "power",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.8691.7.86.1.40.6.1.2.1",
"sensor_index": "poePortConsumption.1",
"sensor_type": "moxa-etherdevice",
"sensor_descr": "Ethernet Port 1 PoE Consumption",
"sensor_divisor": "1",
"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": "power",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.8691.7.86.1.40.6.1.2.2",
"sensor_index": "poePortConsumption.2",
"sensor_type": "moxa-etherdevice",
"sensor_descr": "Ethernet Port 2 PoE Consumption",
"sensor_divisor": "1",
"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": "power",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.8691.7.86.1.40.6.1.2.3",
"sensor_index": "poePortConsumption.3",
"sensor_type": "moxa-etherdevice",
"sensor_descr": "Ethernet Port 3 PoE Consumption",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "3",
"sensor_limit": "4.5",
"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": "power",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.8691.7.86.1.40.6.1.2.4",
"sensor_index": "poePortConsumption.4",
"sensor_type": "moxa-etherdevice",
"sensor_descr": "Ethernet Port 4 PoE Consumption",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "2",
"sensor_limit": "3",
"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": "power",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.8691.7.86.1.40.6.1.2.5",
"sensor_index": "poePortConsumption.5",
"sensor_type": "moxa-etherdevice",
"sensor_descr": "Ethernet Port 5 PoE Consumption",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "3",
"sensor_limit": "4.5",
"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": "power",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.8691.7.86.1.40.6.1.2.6",
"sensor_index": "poePortConsumption.6",
"sensor_type": "moxa-etherdevice",
"sensor_descr": "Ethernet Port 6 PoE Consumption",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "2",
"sensor_limit": "3",
"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": "power",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.8691.7.86.1.40.6.1.2.7",
"sensor_index": "poePortConsumption.7",
"sensor_type": "moxa-etherdevice",
"sensor_descr": "Ethernet Port 7 PoE Consumption",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "3",
"sensor_limit": "4.5",
"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": "power",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.8691.7.86.1.40.6.1.2.8",
"sensor_index": "poePortConsumption.8",
"sensor_type": "moxa-etherdevice",
"sensor_descr": "Ethernet Port 8 PoE Consumption",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "3",
"sensor_limit": "4.5",
"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": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.8691.7.86.1.10.1.0",
"sensor_index": "powerInputStatus.1",
"sensor_type": "powerInputStatus",
"sensor_descr": "Power Input 1 Status",
"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": "powerInputStatus"
},
{
"sensor_deleted": "0",
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.8691.7.86.1.10.2.0",
"sensor_index": "powerInputStatus.2",
"sensor_type": "powerInputStatus",
"sensor_descr": "Power Input 2 Status",
"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": "powerInputStatus"
},
{
"sensor_deleted": "0",
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.8691.7.86.1.10.7.1.3.9",
"sensor_index": "sfpTemperature.9",
"sensor_type": "moxa-etherdevice",
"sensor_descr": "Ethernet Port G1 SFP module temperature",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "33.9",
"sensor_limit": "53.9",
"sensor_limit_warn": null,
"sensor_limit_low": "23.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": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.8691.7.86.1.10.7.1.4.9",
"sensor_index": "sfpVoltage.9",
"sensor_type": "moxa-etherdevice",
"sensor_descr": "Ethernet Port G1 SFP module Supply Voltage",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "3.4",
"sensor_limit": "3.91",
"sensor_limit_warn": null,
"sensor_limit_low": "2.89",
"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": "powerInputStatus",
"state_descr": "not present",
"state_draw_graph": "0",
"state_value": "0",
"state_generic_value": "2"
},
{
"state_name": "powerInputStatus",
"state_descr": "present",
"state_draw_graph": "0",
"state_value": "1",
"state_generic_value": "0"
}
]
},
"poller": "matches discovery"
}
}

View File

@@ -0,0 +1,33 @@
1.3.6.1.2.1.1.1.0|4|EDS-P510A-8PoE-2GTXSFP-T
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.8691.7.86
1.3.6.1.2.1.1.3.0|67|154136633
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.2.1.2.2.1.2.1|4|Ethernet Port 1
1.3.6.1.2.1.2.2.1.2.2|4|Ethernet Port 2
1.3.6.1.2.1.2.2.1.2.3|4|Ethernet Port 3
1.3.6.1.2.1.2.2.1.2.4|4|Ethernet Port 4
1.3.6.1.2.1.2.2.1.2.5|4|Ethernet Port 5
1.3.6.1.2.1.2.2.1.2.6|4|Ethernet Port 6
1.3.6.1.2.1.2.2.1.2.7|4|Ethernet Port 7
1.3.6.1.2.1.2.2.1.2.8|4|Ethernet Port 8
1.3.6.1.2.1.2.2.1.2.9|4|Ethernet Port G1
1.3.6.1.2.1.2.2.1.2.10|4|Ethernet Port G2
1.3.6.1.2.1.2.2.1.2.129|4|Management Port of EtherDevice Server
1.3.6.1.2.1.2.2.1.2.130|4|(Management Loopback Port of EtherDevice Switch)
1.3.6.1.4.1.8691.7.86.1.10.1.0|2|1
1.3.6.1.4.1.8691.7.86.1.10.2.0|2|1
1.3.6.1.4.1.8691.7.86.1.10.7.1.3.9|4|33.9
1.3.6.1.4.1.8691.7.86.1.10.7.1.4.9|4|3.4
1.3.6.1.4.1.8691.7.86.1.10.7.1.5.9|4|-6.1
1.3.6.1.4.1.8691.7.86.1.10.7.1.6.9|4|-6.9
1.3.6.1.4.1.8691.7.86.1.40.6.1.2.1|2|0
1.3.6.1.4.1.8691.7.86.1.40.6.1.2.2|2|0
1.3.6.1.4.1.8691.7.86.1.40.6.1.2.3|2|3
1.3.6.1.4.1.8691.7.86.1.40.6.1.2.4|2|2
1.3.6.1.4.1.8691.7.86.1.40.6.1.2.5|2|3
1.3.6.1.4.1.8691.7.86.1.40.6.1.2.6|2|2
1.3.6.1.4.1.8691.7.86.1.40.6.1.2.7|2|3
1.3.6.1.4.1.8691.7.86.1.40.6.1.2.8|2|3
1.3.6.1.6.3.10.2.1.3.0|2|1541360