librenms/tests/data/socomec-ups.json
Peca Nesovanovic 390baa73fb
add initial support for socomec-ups (#16018)
* [wip] add initial support for socomec-ups

based on: https://community.librenms.org/t/add-socomec-ups-with-netvision-snmp-card/24139

Signed-off-by: Peca Nesovanovic <peca.nesovanovic@sattrakt.com>

* ci

* drop cache/precache

* drop MIB definition

---------

Signed-off-by: Peca Nesovanovic <peca.nesovanovic@sattrakt.com>
2024-06-04 11:24:30 +02:00

729 lines
30 KiB
JSON

{
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.4555.1.1.7",
"sysDescr": "NetVision-8",
"sysContact": "<private>",
"version": "8.00",
"hardware": "NETYS RT",
"features": "2.2 kVA",
"location": "<private>",
"os": "socomec-ups",
"type": "power",
"serial": "2D22451188",
"icon": "socomecpdu.png"
}
]
},
"poller": "matches discovery"
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "charge",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.2.4.0",
"sensor_index": "upsEstimatedChargeRemaining.0",
"sensor_type": "socomec-ups",
"sensor_descr": "Battery #0 Charge remaining",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 100,
"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,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "current",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.4.4.1.3.1",
"sensor_index": "upsOutputCurrent.1",
"sensor_type": "socomec-ups",
"sensor_descr": "Output #1 Current",
"group": null,
"sensor_divisor": 10,
"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": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.5.1.0",
"sensor_index": "upsBypassFrequency.0",
"sensor_type": "socomec-ups",
"sensor_descr": "Bypass #0 Frequency",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 50,
"sensor_limit": 52.5,
"sensor_limit_warn": null,
"sensor_limit_low": 47.5,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.3.2.0",
"sensor_index": "upsInputFrequency.0",
"sensor_type": "socomec-ups",
"sensor_descr": "Input #0 Frequency",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 50,
"sensor_limit": 52.5,
"sensor_limit_warn": null,
"sensor_limit_low": 47.5,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.4.2.0",
"sensor_index": "upsOutputFrequency.0",
"sensor_type": "socomec-ups",
"sensor_descr": "Output #0 Frequency",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 50,
"sensor_limit": 52.5,
"sensor_limit_warn": null,
"sensor_limit_low": 47.5,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "load",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.4.4.1.4.1",
"sensor_index": "upsOutputPercentLoad.1",
"sensor_type": "socomec-ups",
"sensor_descr": "Output #1 Load",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"sensor_limit": 80,
"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,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "runtime",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.2.3.0",
"sensor_index": "upsEstimatedMinutesRemaining.0",
"sensor_type": "socomec-ups",
"sensor_descr": "Battery #0 Minutes remaining",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 65535,
"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,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "runtime",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.2.2.0",
"sensor_index": "upsSecondsOnBattery.0",
"sensor_type": "socomec-ups",
"sensor_descr": "Battery #0 Runtime seconds",
"group": null,
"sensor_divisor": 1,
"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": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.6.3.32.0",
"sensor_index": "upsAlarmFansFailure.0",
"sensor_type": "upsAlarmFansFailure",
"sensor_descr": "Fan #0 Alarm",
"group": "Alarm",
"sensor_divisor": 1,
"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": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": "upsAlarmFansFailure"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.6.3.11.0",
"sensor_index": "upsAlarmGeneralFault.0",
"sensor_type": "upsAlarmGeneralFault",
"sensor_descr": "General Alarm",
"group": "Alarm",
"sensor_divisor": 1,
"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": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": "upsAlarmGeneralFault"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.6.3.2.0",
"sensor_index": "upsAlarmOverload.0",
"sensor_type": "upsAlarmOverload",
"sensor_descr": "Output #0 Overload",
"group": "Alarm",
"sensor_divisor": 1,
"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": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": "upsAlarmOverload"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.6.3.21.0",
"sensor_index": "upsAlarmRectifierAlarm.0",
"sensor_type": "upsAlarmRectifierAlarm",
"sensor_descr": "Rectifier #0 Preventive alarm",
"group": "Alarm",
"sensor_divisor": 1,
"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": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": "upsAlarmRectifierAlarm"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.6.3.3.0",
"sensor_index": "upsAlarmTemperature.0",
"sensor_type": "upsAlarmTemperature",
"sensor_descr": "Temperature #0 Out of tolerance",
"group": "Alarm",
"sensor_divisor": 1,
"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": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": "upsAlarmTemperature"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.2.1.0",
"sensor_index": "upsBatteryStatus.0",
"sensor_type": "upsBatteryStatus",
"sensor_descr": "Battery #0 Status",
"group": null,
"sensor_divisor": 1,
"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,
"rrd_type": "GAUGE",
"state_name": "upsBatteryStatus"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.2.1.0",
"sensor_index": "upsOutputSource.0",
"sensor_type": "upsOutputSource",
"sensor_descr": "Output #0 Source",
"group": null,
"sensor_divisor": 1,
"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,
"rrd_type": "GAUGE",
"state_name": "upsOutputSource"
},
{
"sensor_deleted": 0,
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.2.7.0",
"sensor_index": "upsAmbientTemperature.0",
"sensor_type": "socomec-ups",
"sensor_descr": "Ambient #0 Temperature",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 21,
"sensor_limit": 41,
"sensor_limit_warn": null,
"sensor_limit_low": 11,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.2.5.0",
"sensor_index": "upsBatteryVoltage.0",
"sensor_type": "socomec-ups",
"sensor_descr": "Battery #0 Voltage",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 54.2,
"sensor_limit": 60,
"sensor_limit_warn": 55,
"sensor_limit_low": 10,
"sensor_limit_low_warn": 11,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.5.3.1.2.1",
"sensor_index": "upsBypassVoltage.1",
"sensor_type": "socomec-ups",
"sensor_descr": "Bypass #1 Voltage",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 240,
"sensor_limit": 276,
"sensor_limit_warn": null,
"sensor_limit_low": 204,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.3.3.1.2.1",
"sensor_index": "upsInputVoltage.1",
"sensor_type": "socomec-ups",
"sensor_descr": "Input #1 Voltage",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 240,
"sensor_limit": 240,
"sensor_limit_warn": 235,
"sensor_limit_low": 200,
"sensor_limit_low_warn": 210,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.4.4.1.2.1",
"sensor_index": "upsOutputVoltage.1",
"sensor_type": "socomec-ups",
"sensor_descr": "Output #1 Voltage",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 230,
"sensor_limit": 264.5,
"sensor_limit_warn": null,
"sensor_limit_low": 195.5,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
}
],
"state_indexes": [
{
"state_name": "upsAlarmFansFailure",
"state_descr": "OK",
"state_draw_graph": 1,
"state_value": 0,
"state_generic_value": 0
},
{
"state_name": "upsAlarmFansFailure",
"state_descr": "Alarm",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 2
},
{
"state_name": "upsAlarmGeneralFault",
"state_descr": "OK",
"state_draw_graph": 1,
"state_value": 0,
"state_generic_value": 0
},
{
"state_name": "upsAlarmGeneralFault",
"state_descr": "Alarm",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 2
},
{
"state_name": "upsAlarmOverload",
"state_descr": "OK",
"state_draw_graph": 1,
"state_value": 0,
"state_generic_value": 0
},
{
"state_name": "upsAlarmOverload",
"state_descr": "Alarm",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 2
},
{
"state_name": "upsAlarmRectifierAlarm",
"state_descr": "OK",
"state_draw_graph": 1,
"state_value": 0,
"state_generic_value": 0
},
{
"state_name": "upsAlarmRectifierAlarm",
"state_descr": "Alarm",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 2
},
{
"state_name": "upsAlarmTemperature",
"state_descr": "OK",
"state_draw_graph": 1,
"state_value": 0,
"state_generic_value": 0
},
{
"state_name": "upsAlarmTemperature",
"state_descr": "Alarm",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 2
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Unknown",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 3
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Normal",
"state_draw_graph": 1,
"state_value": 2,
"state_generic_value": 0
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Charging",
"state_draw_graph": 1,
"state_value": 3,
"state_generic_value": 1
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Test",
"state_draw_graph": 1,
"state_value": 4,
"state_generic_value": 3
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Discharging",
"state_draw_graph": 1,
"state_value": 5,
"state_generic_value": 1
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Low",
"state_draw_graph": 1,
"state_value": 6,
"state_generic_value": 1
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Depleted",
"state_draw_graph": 1,
"state_value": 7,
"state_generic_value": 2
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Failure",
"state_draw_graph": 1,
"state_value": 8,
"state_generic_value": 2
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Disconnected",
"state_draw_graph": 1,
"state_value": 9,
"state_generic_value": 2
},
{
"state_name": "upsOutputSource",
"state_descr": "Unknown",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 3
},
{
"state_name": "upsOutputSource",
"state_descr": "on Maintenance Bypass",
"state_draw_graph": 1,
"state_value": 2,
"state_generic_value": 1
},
{
"state_name": "upsOutputSource",
"state_descr": "on Inverter",
"state_draw_graph": 1,
"state_value": 3,
"state_generic_value": 1
},
{
"state_name": "upsOutputSource",
"state_descr": "Normal mode",
"state_draw_graph": 1,
"state_value": 4,
"state_generic_value": 0
},
{
"state_name": "upsOutputSource",
"state_descr": "ECO mode",
"state_draw_graph": 1,
"state_value": 5,
"state_generic_value": 0
},
{
"state_name": "upsOutputSource",
"state_descr": "on Bypass",
"state_draw_graph": 1,
"state_value": 6,
"state_generic_value": 1
},
{
"state_name": "upsOutputSource",
"state_descr": "on Standby",
"state_draw_graph": 1,
"state_value": 7,
"state_generic_value": 0
},
{
"state_name": "upsOutputSource",
"state_descr": "UPS Off",
"state_draw_graph": 1,
"state_value": 8,
"state_generic_value": 2
},
{
"state_name": "upsOutputSource",
"state_descr": "line Interactive",
"state_draw_graph": 1,
"state_value": 9,
"state_generic_value": 1
}
]
},
"poller": "matches discovery"
}
}