mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
IOS/IOSXE PoE stats (#13213)
* Updated mib * Add support for IOS/IOSXE PoE stats * Added testdata * Better titles for Power-tab in Health * Added low_limit for iosxe * Update ios_2960x.json * Added high_limit for ios * update ios_2960x * update ios_2900l * pre-cache is not needed will only slow polling down in some cases Co-authored-by: Tony Murray <[email protected]>
This commit is contained in:
co-authored by
Tony Murray
parent
ece914a06d
commit
3856c33f9d
@@ -0,0 +1,29 @@
|
||||
mib: POWER-ETHERNET-MIB:CISCO-POWER-ETHERNET-EXT-MIB
|
||||
modules:
|
||||
sensors:
|
||||
power:
|
||||
data:
|
||||
-
|
||||
oid: pethMainPseTable
|
||||
value: pethMainPsePower
|
||||
num_oid: '.1.3.6.1.2.1.105.1.3.1.1.2.{{ $index }}'
|
||||
index: 'pethMainPsePower.{{ $index }}'
|
||||
group: "PoE"
|
||||
descr: "PoE Budget Total - ID {{ $index }}"
|
||||
-
|
||||
oid: pethMainPseTable
|
||||
value: pethMainPseConsumptionPower
|
||||
num_oid: '.1.3.6.1.2.1.105.1.3.1.1.4.{{ $index }}'
|
||||
index: 'pethMainPseConsumptionPower.{{ $index }}'
|
||||
high_limit: pethMainPsePower
|
||||
group: "PoE"
|
||||
descr: "PoE Budget Consumed - ID {{ $index }}"
|
||||
count:
|
||||
data:
|
||||
-
|
||||
oid: cpeExtPdStatistics
|
||||
value: cpeExtPdStatsTotalDevices
|
||||
num_oid: '.1.3.6.1.4.1.9.9.402.1.4.1.{{ $index }}'
|
||||
group: "PoE"
|
||||
descr: "PoE Devices Connected"
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
mib: POWER-ETHERNET-MIB:CISCO-POWER-ETHERNET-EXT-MIB
|
||||
modules:
|
||||
sensors:
|
||||
power:
|
||||
data:
|
||||
-
|
||||
oid: pethMainPseTable
|
||||
value: pethMainPsePower
|
||||
num_oid: '.1.3.6.1.2.1.105.1.3.1.1.2.{{ $index }}'
|
||||
index: 'pethMainPsePower.{{ $index }}'
|
||||
group: "PoE"
|
||||
descr: "PoE Budget Total - ID {{ $index }}"
|
||||
-
|
||||
oid: cpeExtMainPseTable
|
||||
value: cpeExtMainPseUsedPower
|
||||
divisor: 1000
|
||||
num_oid: '.1.3.6.1.4.1.9.9.402.1.3.1.4.{{ $index }}'
|
||||
index: 'cpeExtMainPseUsedPower.{{ $index }}'
|
||||
group: "PoE"
|
||||
descr: "PoE Budget Consumed - {{ $cpeExtMainPseDescr }}"
|
||||
-
|
||||
oid: cpeExtMainPseTable
|
||||
value: cpeExtMainPseRemainingPower
|
||||
divisor: 1000
|
||||
num_oid: '.1.3.6.1.4.1.9.9.402.1.3.1.5.{{ $index }}'
|
||||
index: 'cpeExtMainPseRemainingPower.{{ $index }}'
|
||||
low_limit: 0
|
||||
group: "PoE"
|
||||
descr: "PoE Budget Remaining - {{ $cpeExtMainPseDescr }}"
|
||||
count:
|
||||
data:
|
||||
-
|
||||
oid: cpeExtPdStatistics
|
||||
value: cpeExtPdStatsTotalDevices
|
||||
num_oid: '.1.3.6.1.4.1.9.9.402.1.4.1.{{ $index }}'
|
||||
group: "PoE"
|
||||
descr: "PoE Devices Connected"
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+162
-18
@@ -15682,8 +15682,8 @@
|
||||
"ifName": "StackPort1",
|
||||
"portName": null,
|
||||
"ifIndex": 5179,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": 0,
|
||||
"ifSpeed": 0,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "false",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifOperStatus": "up",
|
||||
@@ -15787,8 +15787,8 @@
|
||||
"ifName": "StackSub-St1-1",
|
||||
"portName": null,
|
||||
"ifIndex": 5180,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": 0,
|
||||
"ifSpeed": 0,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifOperStatus": "up",
|
||||
@@ -15892,8 +15892,8 @@
|
||||
"ifName": "StackSub-St1-2",
|
||||
"portName": null,
|
||||
"ifIndex": 5181,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": 0,
|
||||
"ifSpeed": 0,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifOperStatus": "up",
|
||||
@@ -15997,8 +15997,8 @@
|
||||
"ifName": "StackPort2",
|
||||
"portName": null,
|
||||
"ifIndex": 5182,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": 0,
|
||||
"ifSpeed": 0,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "false",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifOperStatus": "up",
|
||||
@@ -16102,8 +16102,8 @@
|
||||
"ifName": "StackSub-St2-1",
|
||||
"portName": null,
|
||||
"ifIndex": 5183,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": 0,
|
||||
"ifSpeed": 0,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifOperStatus": "up",
|
||||
@@ -16207,8 +16207,8 @@
|
||||
"ifName": "StackSub-St2-2",
|
||||
"portName": null,
|
||||
"ifIndex": 5184,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": 0,
|
||||
"ifSpeed": 0,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifOperStatus": "up",
|
||||
@@ -16312,8 +16312,8 @@
|
||||
"ifName": "StackPort3",
|
||||
"portName": null,
|
||||
"ifIndex": 5185,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": 0,
|
||||
"ifSpeed": 0,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "false",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifOperStatus": "up",
|
||||
@@ -16417,8 +16417,8 @@
|
||||
"ifName": "StackSub-St3-1",
|
||||
"portName": null,
|
||||
"ifIndex": 5186,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": 0,
|
||||
"ifSpeed": 0,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifOperStatus": "up",
|
||||
@@ -16522,8 +16522,8 @@
|
||||
"ifName": "StackSub-St3-2",
|
||||
"portName": null,
|
||||
"ifIndex": 5187,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": 0,
|
||||
"ifSpeed": 0,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifOperStatus": "up",
|
||||
@@ -30778,6 +30778,30 @@
|
||||
"sensors": {
|
||||
"discovery": {
|
||||
"sensors": [
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "count",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.9.9.402.1.4.1.0",
|
||||
"sensor_index": "0",
|
||||
"sensor_type": "ios",
|
||||
"sensor_descr": "PoE Devices Connected",
|
||||
"group": "PoE",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 19,
|
||||
"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": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "current",
|
||||
@@ -30922,6 +30946,54 @@
|
||||
"user_func": null,
|
||||
"state_name": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "power",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.2.1.105.1.3.1.1.4.1",
|
||||
"sensor_index": "pethMainPseConsumptionPower.1",
|
||||
"sensor_type": "ios",
|
||||
"sensor_descr": "PoE Budget Consumed - ID 1",
|
||||
"group": "PoE",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 115,
|
||||
"sensor_limit": 370,
|
||||
"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.2.1.105.1.3.1.1.2.1",
|
||||
"sensor_index": "pethMainPsePower.1",
|
||||
"sensor_type": "ios",
|
||||
"sensor_descr": "PoE Budget Total - ID 1",
|
||||
"group": "PoE",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 370,
|
||||
"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": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "state",
|
||||
@@ -31911,6 +31983,30 @@
|
||||
},
|
||||
"poller": {
|
||||
"sensors": [
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "count",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.9.9.402.1.4.1.0",
|
||||
"sensor_index": "0",
|
||||
"sensor_type": "ios",
|
||||
"sensor_descr": "PoE Devices Connected",
|
||||
"group": "PoE",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 19,
|
||||
"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": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "current",
|
||||
@@ -32055,6 +32151,54 @@
|
||||
"user_func": null,
|
||||
"state_name": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "power",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.2.1.105.1.3.1.1.4.1",
|
||||
"sensor_index": "pethMainPseConsumptionPower.1",
|
||||
"sensor_type": "ios",
|
||||
"sensor_descr": "PoE Budget Consumed - ID 1",
|
||||
"group": "PoE",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 115,
|
||||
"sensor_limit": 370,
|
||||
"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.2.1.105.1.3.1.1.2.1",
|
||||
"sensor_index": "pethMainPsePower.1",
|
||||
"sensor_type": "ios",
|
||||
"sensor_descr": "PoE Budget Total - ID 1",
|
||||
"group": "PoE",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 370,
|
||||
"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": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "state",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8240,6 +8240,10 @@
|
||||
1.3.6.1.2.1.47.1.3.2.1.2.3056.0|6|1.3.6.1.2.1.2.2.1.1.11147
|
||||
1.3.6.1.2.1.47.1.3.2.1.2.3057.0|6|1.3.6.1.2.1.2.2.1.1.11148
|
||||
1.3.6.1.2.1.47.1.3.2.1.2.3062.0|6|1.3.6.1.2.1.2.2.1.1.11152
|
||||
1.3.6.1.2.1.105.1.3.1.1.2.1|66|370
|
||||
1.3.6.1.2.1.105.1.3.1.1.3.1|2|1
|
||||
1.3.6.1.2.1.105.1.3.1.1.4.1|66|115
|
||||
1.3.6.1.2.1.105.1.3.1.1.5.1|2|0
|
||||
1.3.6.1.4.1.9.5.1.4.1.1.11.1.1|2|10101
|
||||
1.3.6.1.4.1.9.5.1.4.1.1.11.1.2|2|10102
|
||||
1.3.6.1.4.1.9.5.1.4.1.1.11.1.3|2|10103
|
||||
@@ -10810,6 +10814,13 @@
|
||||
1.3.6.1.4.1.9.9.402.1.2.1.15.3.46|66|0
|
||||
1.3.6.1.4.1.9.9.402.1.2.1.15.3.47|66|0
|
||||
1.3.6.1.4.1.9.9.402.1.2.1.15.3.48|66|0
|
||||
1.3.6.1.4.1.9.9.402.1.4.1.0|66|19
|
||||
1.3.6.1.4.1.9.9.402.1.4.2.1.2.0|66|0
|
||||
1.3.6.1.4.1.9.9.402.1.4.2.1.2.1|66|0
|
||||
1.3.6.1.4.1.9.9.402.1.4.2.1.2.2|66|0
|
||||
1.3.6.1.4.1.9.9.402.1.4.2.1.2.3|66|0
|
||||
1.3.6.1.4.1.9.9.402.1.4.2.1.2.4|66|0
|
||||
1.3.6.1.4.1.9.9.402.1.4.2.1.2.5|66|0
|
||||
1.3.6.1.4.1.9.9.500.1.1.1.0|66|8
|
||||
1.3.6.1.4.1.9.9.500.1.1.2.0|66|15
|
||||
1.3.6.1.4.1.9.9.500.1.1.3.0|2|1
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user