Improve Poweralert based devices support (#13340)

* Improve Poweralert based devices support

- Add graphs / data for Input Voltage
- Add graphs / data for Total/Output Current

* fix version formatting

* Create poweralert_3.snmprec

* Create poweralert_3.json

* Update poweralert.yaml

* Update poweralert_3.snmprec

* Update poweralert_3.json

* Missed one

Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
Arjit Chaudhary
2021-10-29 00:08:17 +08:00
committed by GitHub
parent f58b2c8c43
commit f6d5cd525f
3 changed files with 230 additions and 2 deletions

View File

@@ -4,9 +4,42 @@ modules:
features: .1.3.6.1.4.1.850.10.2.2.1.9.2
hardware: .1.3.6.1.2.1.33.1.1.2.0
serial: .1.3.6.1.4.1.850.100.1.1.2.0
version: .1.3.6.1.2.1.33.1.1.3.0
version:
- .1.3.6.1.2.1.33.1.1.4.0
- .1.3.6.1.2.1.33.1.1.3.0
location: .1.3.6.1.4.1.850.100.1.1.6.0
sensors:
voltage:
data:
-
oid: 'tlpPduInputPhaseVoltage'
num_oid: '.1.3.6.1.4.1.850.1.1.3.2.3.1.2.1.4.1.{{ $index }}'
descr: 'Input'
divisor: 10
multiplier: 1
low_limit: 110
high_limit: 240
-
oid: 'tlpAtsInputPhaseVoltage'
num_oid: '.1.3.6.1.4.1.850.1.1.3.4.3.1.2.1.5.1.1.{{ $index }}'
descr: 'Input'
divisor: 10
multiplier: 1
low_limit: 110
high_limit: 240
current:
data:
-
oid: 'tlpPduCircuitTotalCurrent'
num_oid: '.1.3.6.1.4.1.850.1.1.3.2.3.4.1.1.4.1.{{ $index }}'
index: 'tlpPduCircuitTotalCurrent.{{ $index }}'
divisor: 100
descr: "Current"
-
oid: 'tlpAtsOutputCurrent'
num_oid: '.1.3.6.1.4.1.850.1.1.3.4.3.2.1.1.5.1.{{ $index }}'
descr: "Current"
divisor: 100
humidity:
data:
-
@@ -44,4 +77,4 @@ modules:
-
oid: tlUpsBatteryAge
num_oid: '.1.3.6.1.4.1.850.100.1.2.1.{{ $index }}'
descr: 'Battery Age (Years)'
descr: 'Battery Age (Years)'

View File

@@ -0,0 +1,179 @@
{
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.850.1.1.1",
"sysDescr": "Ubuntu 18.04 Linux 4.4.31 flash: 3.34G ram: 247204kB processor: armv7l software: PowerAlert 20.0.1 (Build 118)",
"sysContact": "<private>",
"version": null,
"hardware": null,
"features": null,
"os": "poweralert",
"type": "power",
"serial": null,
"icon": "tripplite.svg",
"location": "<private>"
}
]
},
"poller": "matches discovery"
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "current",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.850.1.1.3.2.3.4.1.1.4.1.1.1",
"sensor_index": "tlpPduCircuitTotalCurrent.1.1",
"sensor_type": "poweralert",
"sensor_descr": "Current",
"group": null,
"sensor_divisor": 100,
"sensor_multiplier": 1,
"sensor_current": 5,
"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",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.850.1.1.3.2.3.4.1.1.4.1.1.2",
"sensor_index": "tlpPduCircuitTotalCurrent.1.2",
"sensor_type": "poweralert",
"sensor_descr": "Current",
"group": null,
"sensor_divisor": 100,
"sensor_multiplier": 1,
"sensor_current": 3,
"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": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.850.1.1.3.2.3.1.2.1.4.1.1.1",
"sensor_index": "1.1",
"sensor_type": "poweralert",
"sensor_descr": "Input",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 117.3,
"sensor_limit": 240,
"sensor_limit_warn": null,
"sensor_limit_low": 110,
"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": []
},
"poller": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "current",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.850.1.1.3.2.3.4.1.1.4.1.1.1",
"sensor_index": "tlpPduCircuitTotalCurrent.1.1",
"sensor_type": "poweralert",
"sensor_descr": "Current",
"group": null,
"sensor_divisor": 100,
"sensor_multiplier": 1,
"sensor_current": 0,
"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": 5,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "current",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.850.1.1.3.2.3.4.1.1.4.1.1.2",
"sensor_index": "tlpPduCircuitTotalCurrent.1.2",
"sensor_type": "poweralert",
"sensor_descr": "Current",
"group": null,
"sensor_divisor": 100,
"sensor_multiplier": 1,
"sensor_current": 0,
"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": 3,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.850.1.1.3.2.3.1.2.1.4.1.1.1",
"sensor_index": "1.1",
"sensor_type": "poweralert",
"sensor_descr": "Input",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 0,
"sensor_limit": 240,
"sensor_limit_warn": null,
"sensor_limit_low": 110,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": 117.3,
"user_func": null,
"state_name": null
}
],
"state_indexes": []
}
}
}

View File

@@ -0,0 +1,16 @@
1.3.6.1.2.1.1.1.0|4|Ubuntu 18.04 Linux 4.4.31 flash: 3.34G ram: 247204kB processor: armv7l software: PowerAlert 20.0.1 (Build 118)
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.850.1.1.1
1.3.6.1.2.1.1.3.0|67|57874800
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.4.20.1.1.104.238.61.180|64|104.238.61.180
1.3.6.1.2.1.4.20.1.2.104.238.61.180|2|2
1.3.6.1.2.1.4.20.1.2.127.0.0.1|2|1
1.3.6.1.2.1.4.20.1.3.104.238.61.180|64|255.255.255.0
1.3.6.1.2.1.4.20.1.3.127.0.0.1|64|255.0.0.0
1.3.6.1.2.1.25.1.1.0|67|57875577
1.3.6.1.4.1.850.1.1.3.2.2.1.1.11.1|2|1
1.3.6.1.4.1.850.1.1.3.2.3.1.2.1.4.1.1|66|1173
1.3.6.1.4.1.850.1.1.3.2.3.4.1.1.4.1.1|2|500
1.3.6.1.4.1.850.1.1.3.2.3.4.1.1.4.1.2|2|300