From 24b8bebde767c940bc33b9360f1ff5db506c5ff2 Mon Sep 17 00:00:00 2001 From: martinberg Date: Fri, 18 Jun 2021 16:33:12 +0200 Subject: [PATCH] Add support for Liebert humidity setpoint and UPS powerfactor (#12965) --- includes/definitions/discovery/liebert.yaml | 17 +- tests/data/liebert_weblbds.json | 749 ++++++++++++++++++++ tests/snmpsim/liebert_weblbds.snmprec | 64 ++ 3 files changed, 829 insertions(+), 1 deletion(-) diff --git a/includes/definitions/discovery/liebert.yaml b/includes/definitions/discovery/liebert.yaml index 54e6af5085..1c7f906604 100644 --- a/includes/definitions/discovery/liebert.yaml +++ b/includes/definitions/discovery/liebert.yaml @@ -1,4 +1,4 @@ -mib: LIEBERT-GP-AGENT-MIB:LIEBERT-GP-PDU-MIB:LIEBERT-GP-ENVIRONMENTAL-MIB +mib: LIEBERT-GP-AGENT-MIB:LIEBERT-GP-PDU-MIB:LIEBERT-GP-ENVIRONMENTAL-MIB:LIEBERT-GP-POWER-MIB modules: sensors: temperature: @@ -33,6 +33,12 @@ modules: low_warn_limit: lgpPduAuxMeasHumThrshldUndrWarn warn_limit: lgpPduAuxMeasHumThrshldOvrWarn high_limit: lgpPduAuxMeasHumThrshldOvrAlm + - + oid: lgpEnvHumidityTableRel + value: lgpEnvHumiditySetPoint + num_oid: '.1.3.6.1.4.1.476.1.42.3.4.2.2.3.1.6.{{ $index }}' + descr: 'Setpoint for {{ $lgpEnvHumidityDescrRel }}' + index: 'lgpEnvHumiditySetPoint.{{ $index }}' voltage: data: - @@ -260,3 +266,12 @@ modules: num_oid: '.1.3.6.1.4.1.476.1.42.3.4.3.19.{{ $index }}' descr: 'Humidifying Capacity Usage' index: 'lgpEnvStateHumidifyingCapacity.{{ $index }}' + power_factor: + data: + - + oid: lgpPwrLineMeasurementTable + value: lgpPwrLineMeasurementPowerFactor + divisor: 100 + num_oid: '.1.3.6.1.4.1.476.1.42.3.5.2.3.1.14.{{ $index }}' + descr: '{{ $lgpPwrMeasurementPoint }}.{{ $index }}' + index: 'lgpPwrLineMeasurementPowerFactor.{{ $index }}' diff --git a/tests/data/liebert_weblbds.json b/tests/data/liebert_weblbds.json index 36a0729ee7..450b8d9dcf 100644 --- a/tests/data/liebert_weblbds.json +++ b/tests/data/liebert_weblbds.json @@ -146,6 +146,198 @@ "user_func": null, "state_name": null }, + { + "sensor_deleted": 0, + "sensor_class": "current", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.2.1.33.1.4.4.1.3.1", + "sensor_index": "1", + "sensor_type": "rfc1628", + "sensor_descr": "Output Phase 1", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 42, + "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.2.1.33.1.3.3.1.4.1", + "sensor_index": "101", + "sensor_type": "rfc1628", + "sensor_descr": "Input Phase 1", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 52, + "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.2.1.33.1.3.3.1.4.2", + "sensor_index": "102", + "sensor_type": "rfc1628", + "sensor_descr": "Input Phase 2", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 52, + "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.2.1.33.1.3.3.1.4.3", + "sensor_index": "103", + "sensor_type": "rfc1628", + "sensor_descr": "Input Phase 3", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 51, + "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.2.1.33.1.4.4.1.3.2", + "sensor_index": "2", + "sensor_type": "rfc1628", + "sensor_descr": "Output Phase 2", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 40, + "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.2.1.33.1.4.4.1.3.3", + "sensor_index": "3", + "sensor_type": "rfc1628", + "sensor_descr": "Output Phase 3", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 39, + "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": "frequency", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.2.1.33.1.4.2.0", + "sensor_index": "4.2.0", + "sensor_type": "rfc1628", + "sensor_descr": "Output", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 49.9, + "sensor_limit": 52.395, + "sensor_limit_warn": null, + "sensor_limit_low": 47.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": "frequency", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.2.1.33.1.5.1.0", + "sensor_index": "5.1.0", + "sensor_type": "rfc1628", + "sensor_descr": "Bypass", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 49.9, + "sensor_limit": 52.395, + "sensor_limit_warn": null, + "sensor_limit_low": 47.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": "humidity", @@ -194,6 +386,30 @@ "user_func": null, "state_name": null }, + { + "sensor_deleted": 0, + "sensor_class": "humidity", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.476.1.42.3.4.2.2.3.1.6.2", + "sensor_index": "lgpEnvHumiditySetPoint.2", + "sensor_type": "liebert", + "sensor_descr": "Setpoint for lgpEnvReturnAirHumidity", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 35, + "sensor_limit": 70, + "sensor_limit_warn": null, + "sensor_limit_low": 30, + "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": "percent", @@ -314,6 +530,174 @@ "user_func": null, "state_name": null }, + { + "sensor_deleted": 0, + "sensor_class": "power_factor", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.476.1.42.3.5.2.3.1.14.1.1", + "sensor_index": "lgpPwrLineMeasurementPowerFactor.1.1", + "sensor_type": "liebert", + "sensor_descr": "lgpPwrMeasSystemOutput.1.1", + "group": null, + "sensor_divisor": 100, + "sensor_multiplier": 1, + "sensor_current": 0.95, + "sensor_limit": 1, + "sensor_limit_warn": null, + "sensor_limit_low": -1, + "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_factor", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.476.1.42.3.5.2.3.1.14.1.2", + "sensor_index": "lgpPwrLineMeasurementPowerFactor.1.2", + "sensor_type": "liebert", + "sensor_descr": "lgpPwrMeasSystemOutput.1.2", + "group": null, + "sensor_divisor": 100, + "sensor_multiplier": 1, + "sensor_current": 0.95, + "sensor_limit": 1, + "sensor_limit_warn": null, + "sensor_limit_low": -1, + "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_factor", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.476.1.42.3.5.2.3.1.14.1.3", + "sensor_index": "lgpPwrLineMeasurementPowerFactor.1.3", + "sensor_type": "liebert", + "sensor_descr": "lgpPwrMeasSystemOutput.1.3", + "group": null, + "sensor_divisor": 100, + "sensor_multiplier": 1, + "sensor_current": 0.95, + "sensor_limit": 1, + "sensor_limit_warn": null, + "sensor_limit_low": -1, + "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_factor", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.476.1.42.3.5.2.3.1.14.3.1", + "sensor_index": "lgpPwrLineMeasurementPowerFactor.3.1", + "sensor_type": "liebert", + "sensor_descr": "lgpPwrSource1Input.3.1", + "group": null, + "sensor_divisor": 100, + "sensor_multiplier": 1, + "sensor_current": 0.9, + "sensor_limit": 1, + "sensor_limit_warn": null, + "sensor_limit_low": -1, + "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_factor", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.476.1.42.3.5.2.3.1.14.3.2", + "sensor_index": "lgpPwrLineMeasurementPowerFactor.3.2", + "sensor_type": "liebert", + "sensor_descr": "lgpPwrSource1Input.3.2", + "group": null, + "sensor_divisor": 100, + "sensor_multiplier": 1, + "sensor_current": 0.91, + "sensor_limit": 1, + "sensor_limit_warn": null, + "sensor_limit_low": -1, + "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_factor", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.476.1.42.3.5.2.3.1.14.3.3", + "sensor_index": "lgpPwrLineMeasurementPowerFactor.3.3", + "sensor_type": "liebert", + "sensor_descr": "lgpPwrSource1Input.3.3", + "group": null, + "sensor_divisor": 100, + "sensor_multiplier": 1, + "sensor_current": 0.9, + "sensor_limit": 1, + "sensor_limit_warn": null, + "sensor_limit_low": -1, + "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": "runtime", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.2.1.33.1.2.3.0", + "sensor_index": "200", + "sensor_type": "rfc1628", + "sensor_descr": "Estimated battery time remaining", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 52, + "sensor_limit": 10000, + "sensor_limit_warn": null, + "sensor_limit_low": 5, + "sensor_limit_low_warn": 10, + "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", @@ -578,6 +962,54 @@ "user_func": null, "state_name": "lgpEnvStateSystem" }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.2.1.33.1.2.1.0", + "sensor_index": "0", + "sensor_type": "upsBatteryStatusState", + "sensor_descr": "Battery Status", + "group": null, + "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": "0", + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "state_name": "upsBatteryStatusState" + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.2.1.33.1.4.1.0", + "sensor_index": "0", + "sensor_type": "upsOutputSourceState", + "sensor_descr": "Output 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": "0", + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "state_name": "upsOutputSourceState" + }, { "sensor_deleted": 0, "sensor_class": "temperature", @@ -602,6 +1034,30 @@ "user_func": null, "state_name": null }, + { + "sensor_deleted": 0, + "sensor_class": "temperature", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.476.1.42.3.4.1.3.3.1.3.2", + "sensor_index": "lgpEnvTemperatureDescrDegC.2", + "sensor_type": "liebert", + "sensor_descr": "lgpEnvSupplyAirTemperature", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 25, + "sensor_limit": 45, + "sensor_limit_warn": null, + "sensor_limit_low": 15, + "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", @@ -673,6 +1129,222 @@ "sensor_prev": null, "user_func": null, "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "voltage", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.2.1.33.1.4.4.1.2.1", + "sensor_index": "1", + "sensor_type": "rfc1628", + "sensor_descr": "Output Phase 1", + "group": null, + "sensor_divisor": 1, + "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, + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "voltage", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.2.1.33.1.3.3.1.3.1", + "sensor_index": "101", + "sensor_type": "rfc1628", + "sensor_descr": "Input Phase 1", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 227, + "sensor_limit": 261.05, + "sensor_limit_warn": null, + "sensor_limit_low": 192.95, + "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.2.1.33.1.3.3.1.3.2", + "sensor_index": "102", + "sensor_type": "rfc1628", + "sensor_descr": "Input Phase 2", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 225, + "sensor_limit": 258.75, + "sensor_limit_warn": null, + "sensor_limit_low": 191.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.2.1.33.1.3.3.1.3.3", + "sensor_index": "103", + "sensor_type": "rfc1628", + "sensor_descr": "Input Phase 3", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 227, + "sensor_limit": 261.05, + "sensor_limit_warn": null, + "sensor_limit_low": 192.95, + "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.2.1.33.1.4.4.1.2.2", + "sensor_index": "2", + "sensor_type": "rfc1628", + "sensor_descr": "Output Phase 2", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 231, + "sensor_limit": 265.65, + "sensor_limit_warn": null, + "sensor_limit_low": 196.35, + "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.2.1.33.1.5.3.1.2.1", + "sensor_index": "201", + "sensor_type": "rfc1628", + "sensor_descr": "Bypass Phase 1", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 227, + "sensor_limit": 261.05, + "sensor_limit_warn": null, + "sensor_limit_low": 192.95, + "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.2.1.33.1.5.3.1.2.2", + "sensor_index": "202", + "sensor_type": "rfc1628", + "sensor_descr": "Bypass Phase 2", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 227, + "sensor_limit": 261.05, + "sensor_limit_warn": null, + "sensor_limit_low": 192.95, + "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.2.1.33.1.5.3.1.2.3", + "sensor_index": "203", + "sensor_type": "rfc1628", + "sensor_descr": "Bypass Phase 3", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 228, + "sensor_limit": 262.2, + "sensor_limit_warn": null, + "sensor_limit_low": 193.8, + "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.2.1.33.1.4.4.1.2.3", + "sensor_index": "3", + "sensor_type": "rfc1628", + "sensor_descr": "Output Phase 3", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 229, + "sensor_limit": 263.35, + "sensor_limit_warn": null, + "sensor_limit_low": 194.65, + "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": [ @@ -871,6 +1543,83 @@ "state_draw_graph": 2, "state_value": 3, "state_generic_value": 0 + }, + { + "state_name": "upsBatteryStatusState", + "state_descr": "Unknown", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 3 + }, + { + "state_name": "upsBatteryStatusState", + "state_descr": "Normal", + "state_draw_graph": 0, + "state_value": 2, + "state_generic_value": 0 + }, + { + "state_name": "upsBatteryStatusState", + "state_descr": "Low", + "state_draw_graph": 0, + "state_value": 3, + "state_generic_value": 2 + }, + { + "state_name": "upsBatteryStatusState", + "state_descr": "Depleted", + "state_draw_graph": 0, + "state_value": 4, + "state_generic_value": 2 + }, + { + "state_name": "upsOutputSourceState", + "state_descr": "Other", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 3 + }, + { + "state_name": "upsOutputSourceState", + "state_descr": "None", + "state_draw_graph": 0, + "state_value": 2, + "state_generic_value": 3 + }, + { + "state_name": "upsOutputSourceState", + "state_descr": "Normal", + "state_draw_graph": 0, + "state_value": 3, + "state_generic_value": 0 + }, + { + "state_name": "upsOutputSourceState", + "state_descr": "Bypass", + "state_draw_graph": 0, + "state_value": 4, + "state_generic_value": 1 + }, + { + "state_name": "upsOutputSourceState", + "state_descr": "Battery", + "state_draw_graph": 0, + "state_value": 5, + "state_generic_value": 2 + }, + { + "state_name": "upsOutputSourceState", + "state_descr": "Booster", + "state_draw_graph": 0, + "state_value": 6, + "state_generic_value": 2 + }, + { + "state_name": "upsOutputSourceState", + "state_descr": "Reducer", + "state_draw_graph": 0, + "state_value": 7, + "state_generic_value": 2 } ] }, diff --git a/tests/snmpsim/liebert_weblbds.snmprec b/tests/snmpsim/liebert_weblbds.snmprec index eb09b32780..17836baa8d 100644 --- a/tests/snmpsim/liebert_weblbds.snmprec +++ b/tests/snmpsim/liebert_weblbds.snmprec @@ -2,6 +2,26 @@ 1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.476.1.42 1.3.6.1.2.1.1.3.0|67|34339337 1.3.6.1.2.1.1.5.0|4| +1.3.6.1.2.1.33.1.2.1.0|2|2 +1.3.6.1.2.1.33.1.2.3.0|2|52 +1.3.6.1.2.1.33.1.3.3.1.3.1|2|227 +1.3.6.1.2.1.33.1.3.3.1.3.2|2|225 +1.3.6.1.2.1.33.1.3.3.1.3.3|2|227 +1.3.6.1.2.1.33.1.3.3.1.4.1|2|520 +1.3.6.1.2.1.33.1.3.3.1.4.2|2|520 +1.3.6.1.2.1.33.1.3.3.1.4.3|2|510 +1.3.6.1.2.1.33.1.4.1.0|2|3 +1.3.6.1.2.1.33.1.4.2.0|2|499 +1.3.6.1.2.1.33.1.4.4.1.2.1|2|230 +1.3.6.1.2.1.33.1.4.4.1.2.2|2|231 +1.3.6.1.2.1.33.1.4.4.1.2.3|2|229 +1.3.6.1.2.1.33.1.4.4.1.3.1|2|420 +1.3.6.1.2.1.33.1.4.4.1.3.2|2|400 +1.3.6.1.2.1.33.1.4.4.1.3.3|2|390 +1.3.6.1.2.1.33.1.5.1.0|2|499 +1.3.6.1.2.1.33.1.5.3.1.2.1|2|227 +1.3.6.1.2.1.33.1.5.3.1.2.2|2|227 +1.3.6.1.2.1.33.1.5.3.1.2.3|2|228 1.3.6.1.4.1.476.1.42.3.4.1.3.3.1.1.1|66|1 1.3.6.1.4.1.476.1.42.3.4.1.3.3.1.1.2|66|2 1.3.6.1.4.1.476.1.42.3.4.1.3.3.1.1.3|66|3 @@ -9,6 +29,7 @@ 1.3.6.1.4.1.476.1.42.3.4.1.3.3.1.2.2|6|1.3.6.1.4.1.476.1.42.3.4.1.1.3 1.3.6.1.4.1.476.1.42.3.4.1.3.3.1.2.3|6|1.3.6.1.4.1.476.1.42.3.4.1.1.2 1.3.6.1.4.1.476.1.42.3.4.1.3.3.1.3.1|2|24 +1.3.6.1.4.1.476.1.42.3.4.1.3.3.1.3.2|2|25 1.3.6.1.4.1.476.1.42.3.4.1.3.3.1.3.3|2|24 1.3.6.1.4.1.476.1.42.3.4.1.3.3.1.4.1|2|30 1.3.6.1.4.1.476.1.42.3.4.1.3.3.1.4.3|2|30 @@ -89,4 +110,47 @@ 1.3.6.1.4.1.476.1.42.3.4.4.32.1.6.4|2|0 1.3.6.1.4.1.476.1.42.3.4.4.32.1.6.5|2|0 1.3.6.1.4.1.476.1.42.3.4.4.32.1.6.6|2|0 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.3.1.1|6|1.3.6.1.4.1.476.1.42.3.5.2.1.9 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.3.1.2|6|1.3.6.1.4.1.476.1.42.3.5.2.1.9 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.3.1.3|6|1.3.6.1.4.1.476.1.42.3.5.2.1.9 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.3.2.1|6|1.3.6.1.4.1.476.1.42.3.5.2.1.7 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.3.2.2|6|1.3.6.1.4.1.476.1.42.3.5.2.1.7 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.3.2.3|6|1.3.6.1.4.1.476.1.42.3.5.2.1.7 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.3.3.1|6|1.3.6.1.4.1.476.1.42.3.5.2.1.1 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.3.3.2|6|1.3.6.1.4.1.476.1.42.3.5.2.1.1 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.3.3.3|6|1.3.6.1.4.1.476.1.42.3.5.2.1.1 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.4.1.1|2|399 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.4.1.2|2|399 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.4.1.3|2|397 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.4.3.1|2|391 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.4.3.2|2|391 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.4.3.3|2|393 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.5.1.1|2|230 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.5.1.2|2|231 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.5.1.3|2|229 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.5.2.1|2|227 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.5.2.2|2|227 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.5.2.3|2|228 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.5.3.1|2|227 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.5.3.2|2|224 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.5.3.3|2|226 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.6.1.1|2|43 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.6.1.2|2|40 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.6.1.3|2|39 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.6.3.1|2|52 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.6.3.2|2|52 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.6.3.3|2|51 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.7.1.1|2|24 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.7.1.2|2|23 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.7.1.3|2|22 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.13.1.1|2|15 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.13.1.2|2|14 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.13.1.3|2|15 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.14.1.1|2|95 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.14.1.2|2|95 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.14.1.3|2|95 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.14.3.1|2|90 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.14.3.2|2|91 +1.3.6.1.4.1.476.1.42.3.5.2.3.1.14.3.3|2|90 +1.3.6.1.4.1.476.1.42.3.9.10.0|66|104 1.3.6.1.6.3.1.1.6.1.0|2|0