diff --git a/includes/definitions/discovery/apc.yaml b/includes/definitions/discovery/apc.yaml index c3e70f25bd..4ca85939e8 100644 --- a/includes/definitions/discovery/apc.yaml +++ b/includes/definitions/discovery/apc.yaml @@ -1051,6 +1051,11 @@ modules: skip_values: -1 power: data: + - + oid: upsAdvOutputActivePower + num_oid: '.1.3.6.1.4.1.318.1.1.1.4.2.8.{{ $index }}' + index: 'PowerNet-MIB::upsAdvOutputActivePower.{{ $index }}' + descr: 'Active Power' - oid: airIRRP100UnitStatusCompressorDrivePower num_oid: '.1.3.6.1.4.1.318.1.1.13.3.3.1.2.2.35.{{ $index }}' diff --git a/tests/data/apc_smx750.json b/tests/data/apc_smx750.json new file mode 100644 index 0000000000..fae7087c1c --- /dev/null +++ b/tests/data/apc_smx750.json @@ -0,0 +1,1773 @@ +{ + "os": { + "discovery": { + "devices": [ + { + "sysName": null, + "sysObjectID": ".1.3.6.1.4.1.318.1.3.27", + "sysDescr": "APC Web/SNMP Management Card (MB:v4.1.0 PF:v6.7.2 PN:apc_hw05_aos_672.bin AF1:v6.7.2 AN1:apc_hw05_sumx_672.bin MN:AP9631 HR:05 SN: ZA1349002368 MD:12/06/2013) (Embedded PowerNet SNMP Agent SW v2.2 compatible)", + "sysContact": "", + "version": "AOS v6.7.2 / App v6.7.2", + "hardware": "Smart-UPS X 750 UPS 09.9 (ID20)", + "features": null, + "location": "", + "os": "apc", + "type": "power", + "serial": "AS1342225176", + "icon": "apc.svg" + } + ] + }, + "poller": "matches discovery" + }, + "ports": { + "discovery": { + "ports": [ + { + "port_descr_type": null, + "port_descr_descr": null, + "port_descr_circuit": null, + "port_descr_speed": null, + "port_descr_notes": null, + "ifDescr": "LOOPBACK", + "ifName": "LOOPBACK", + "portName": null, + "ifIndex": 1, + "ifSpeed": null, + "ifSpeed_prev": null, + "ifConnectorPresent": null, + "ifOperStatus": "up", + "ifOperStatus_prev": null, + "ifAdminStatus": null, + "ifAdminStatus_prev": null, + "ifDuplex": null, + "ifMtu": null, + "ifType": "softwareLoopback", + "ifAlias": "LOOPBACK", + "ifPhysAddress": null, + "ifLastChange": 0, + "ifVlan": null, + "ifTrunk": null, + "ignore": 0, + "disabled": 0, + "deleted": 0, + "pagpOperationMode": null, + "pagpPortState": null, + "pagpPartnerDeviceId": null, + "pagpPartnerLearnMethod": null, + "pagpPartnerIfIndex": null, + "pagpPartnerGroupIfIndex": null, + "pagpPartnerDeviceName": null, + "pagpEthcOperationMode": null, + "pagpDeviceId": null, + "pagpGroupIfIndex": null, + "ifInUcastPkts": null, + "ifInUcastPkts_prev": null, + "ifInUcastPkts_delta": null, + "ifInUcastPkts_rate": null, + "ifOutUcastPkts": null, + "ifOutUcastPkts_prev": null, + "ifOutUcastPkts_delta": null, + "ifOutUcastPkts_rate": null, + "ifInErrors": null, + "ifInErrors_prev": null, + "ifInErrors_delta": null, + "ifInErrors_rate": null, + "ifOutErrors": null, + "ifOutErrors_prev": null, + "ifOutErrors_delta": null, + "ifOutErrors_rate": null, + "ifInOctets": null, + "ifInOctets_prev": null, + "ifInOctets_delta": null, + "ifInOctets_rate": null, + "ifOutOctets": null, + "ifOutOctets_prev": null, + "ifOutOctets_delta": null, + "ifOutOctets_rate": null, + "poll_prev": null, + "ifInNUcastPkts": null, + "ifInNUcastPkts_prev": null, + "ifInNUcastPkts_delta": null, + "ifInNUcastPkts_rate": null, + "ifOutNUcastPkts": null, + "ifOutNUcastPkts_prev": null, + "ifOutNUcastPkts_delta": null, + "ifOutNUcastPkts_rate": null, + "ifInDiscards": null, + "ifInDiscards_prev": null, + "ifInDiscards_delta": null, + "ifInDiscards_rate": null, + "ifOutDiscards": null, + "ifOutDiscards_prev": null, + "ifOutDiscards_delta": null, + "ifOutDiscards_rate": null, + "ifInUnknownProtos": null, + "ifInUnknownProtos_prev": null, + "ifInUnknownProtos_delta": null, + "ifInUnknownProtos_rate": null, + "ifInBroadcastPkts": null, + "ifInBroadcastPkts_prev": null, + "ifInBroadcastPkts_delta": null, + "ifInBroadcastPkts_rate": null, + "ifOutBroadcastPkts": null, + "ifOutBroadcastPkts_prev": null, + "ifOutBroadcastPkts_delta": null, + "ifOutBroadcastPkts_rate": null, + "ifInMulticastPkts": null, + "ifInMulticastPkts_prev": null, + "ifInMulticastPkts_delta": null, + "ifInMulticastPkts_rate": null, + "ifOutMulticastPkts": null, + "ifOutMulticastPkts_prev": null, + "ifOutMulticastPkts_delta": null, + "ifOutMulticastPkts_rate": null + }, + { + "port_descr_type": null, + "port_descr_descr": null, + "port_descr_circuit": null, + "port_descr_speed": null, + "port_descr_notes": null, + "ifDescr": "vmac0", + "ifName": "vmac0", + "portName": null, + "ifIndex": 2, + "ifSpeed": null, + "ifSpeed_prev": null, + "ifConnectorPresent": null, + "ifOperStatus": "up", + "ifOperStatus_prev": null, + "ifAdminStatus": null, + "ifAdminStatus_prev": null, + "ifDuplex": null, + "ifMtu": null, + "ifType": "ethernetCsmacd", + "ifAlias": "vmac0", + "ifPhysAddress": null, + "ifLastChange": 0, + "ifVlan": null, + "ifTrunk": null, + "ignore": 0, + "disabled": 0, + "deleted": 0, + "pagpOperationMode": null, + "pagpPortState": null, + "pagpPartnerDeviceId": null, + "pagpPartnerLearnMethod": null, + "pagpPartnerIfIndex": null, + "pagpPartnerGroupIfIndex": null, + "pagpPartnerDeviceName": null, + "pagpEthcOperationMode": null, + "pagpDeviceId": null, + "pagpGroupIfIndex": null, + "ifInUcastPkts": null, + "ifInUcastPkts_prev": null, + "ifInUcastPkts_delta": null, + "ifInUcastPkts_rate": null, + "ifOutUcastPkts": null, + "ifOutUcastPkts_prev": null, + "ifOutUcastPkts_delta": null, + "ifOutUcastPkts_rate": null, + "ifInErrors": null, + "ifInErrors_prev": null, + "ifInErrors_delta": null, + "ifInErrors_rate": null, + "ifOutErrors": null, + "ifOutErrors_prev": null, + "ifOutErrors_delta": null, + "ifOutErrors_rate": null, + "ifInOctets": null, + "ifInOctets_prev": null, + "ifInOctets_delta": null, + "ifInOctets_rate": null, + "ifOutOctets": null, + "ifOutOctets_prev": null, + "ifOutOctets_delta": null, + "ifOutOctets_rate": null, + "poll_prev": null, + "ifInNUcastPkts": null, + "ifInNUcastPkts_prev": null, + "ifInNUcastPkts_delta": null, + "ifInNUcastPkts_rate": null, + "ifOutNUcastPkts": null, + "ifOutNUcastPkts_prev": null, + "ifOutNUcastPkts_delta": null, + "ifOutNUcastPkts_rate": null, + "ifInDiscards": null, + "ifInDiscards_prev": null, + "ifInDiscards_delta": null, + "ifInDiscards_rate": null, + "ifOutDiscards": null, + "ifOutDiscards_prev": null, + "ifOutDiscards_delta": null, + "ifOutDiscards_rate": null, + "ifInUnknownProtos": null, + "ifInUnknownProtos_prev": null, + "ifInUnknownProtos_delta": null, + "ifInUnknownProtos_rate": null, + "ifInBroadcastPkts": null, + "ifInBroadcastPkts_prev": null, + "ifInBroadcastPkts_delta": null, + "ifInBroadcastPkts_rate": null, + "ifOutBroadcastPkts": null, + "ifOutBroadcastPkts_prev": null, + "ifOutBroadcastPkts_delta": null, + "ifOutBroadcastPkts_rate": null, + "ifInMulticastPkts": null, + "ifInMulticastPkts_prev": null, + "ifInMulticastPkts_delta": null, + "ifInMulticastPkts_rate": null, + "ifOutMulticastPkts": null, + "ifOutMulticastPkts_prev": null, + "ifOutMulticastPkts_delta": null, + "ifOutMulticastPkts_rate": null + } + ] + }, + "poller": { + "ports": [ + { + "port_descr_type": null, + "port_descr_descr": null, + "port_descr_circuit": null, + "port_descr_speed": null, + "port_descr_notes": null, + "ifDescr": "LOOPBACK", + "ifName": "LOOPBACK", + "portName": null, + "ifIndex": 1, + "ifSpeed": 0, + "ifSpeed_prev": null, + "ifConnectorPresent": null, + "ifOperStatus": "up", + "ifOperStatus_prev": "up", + "ifAdminStatus": "up", + "ifAdminStatus_prev": null, + "ifDuplex": null, + "ifMtu": 1500, + "ifType": "softwareLoopback", + "ifAlias": "LOOPBACK", + "ifPhysAddress": null, + "ifLastChange": 0, + "ifVlan": null, + "ifTrunk": null, + "ignore": 0, + "disabled": 0, + "deleted": 0, + "pagpOperationMode": null, + "pagpPortState": null, + "pagpPartnerDeviceId": null, + "pagpPartnerLearnMethod": null, + "pagpPartnerIfIndex": null, + "pagpPartnerGroupIfIndex": null, + "pagpPartnerDeviceName": null, + "pagpEthcOperationMode": null, + "pagpDeviceId": null, + "pagpGroupIfIndex": null, + "ifInUcastPkts": 0, + "ifInUcastPkts_prev": 0, + "ifInUcastPkts_delta": null, + "ifInUcastPkts_rate": null, + "ifOutUcastPkts": 0, + "ifOutUcastPkts_prev": 0, + "ifOutUcastPkts_delta": null, + "ifOutUcastPkts_rate": null, + "ifInErrors": 0, + "ifInErrors_prev": 0, + "ifInErrors_delta": null, + "ifInErrors_rate": null, + "ifOutErrors": 0, + "ifOutErrors_prev": 0, + "ifOutErrors_delta": null, + "ifOutErrors_rate": null, + "ifInOctets": 0, + "ifInOctets_prev": 0, + "ifInOctets_delta": null, + "ifInOctets_rate": null, + "ifOutOctets": 0, + "ifOutOctets_prev": 0, + "ifOutOctets_delta": null, + "ifOutOctets_rate": null, + "poll_prev": null, + "ifInNUcastPkts": 0, + "ifInNUcastPkts_prev": 0, + "ifInNUcastPkts_delta": null, + "ifInNUcastPkts_rate": null, + "ifOutNUcastPkts": 0, + "ifOutNUcastPkts_prev": 0, + "ifOutNUcastPkts_delta": null, + "ifOutNUcastPkts_rate": null, + "ifInDiscards": 0, + "ifInDiscards_prev": 0, + "ifInDiscards_delta": null, + "ifInDiscards_rate": null, + "ifOutDiscards": 0, + "ifOutDiscards_prev": 0, + "ifOutDiscards_delta": null, + "ifOutDiscards_rate": null, + "ifInUnknownProtos": 0, + "ifInUnknownProtos_prev": 0, + "ifInUnknownProtos_delta": null, + "ifInUnknownProtos_rate": null, + "ifInBroadcastPkts": 0, + "ifInBroadcastPkts_prev": 0, + "ifInBroadcastPkts_delta": null, + "ifInBroadcastPkts_rate": null, + "ifOutBroadcastPkts": 0, + "ifOutBroadcastPkts_prev": 0, + "ifOutBroadcastPkts_delta": null, + "ifOutBroadcastPkts_rate": null, + "ifInMulticastPkts": 0, + "ifInMulticastPkts_prev": 0, + "ifInMulticastPkts_delta": null, + "ifInMulticastPkts_rate": null, + "ifOutMulticastPkts": 0, + "ifOutMulticastPkts_prev": 0, + "ifOutMulticastPkts_delta": null, + "ifOutMulticastPkts_rate": null + }, + { + "port_descr_type": null, + "port_descr_descr": null, + "port_descr_circuit": null, + "port_descr_speed": null, + "port_descr_notes": null, + "ifDescr": "vmac0", + "ifName": "vmac0", + "portName": null, + "ifIndex": 2, + "ifSpeed": 100000000, + "ifSpeed_prev": null, + "ifConnectorPresent": null, + "ifOperStatus": "up", + "ifOperStatus_prev": "up", + "ifAdminStatus": "up", + "ifAdminStatus_prev": null, + "ifDuplex": null, + "ifMtu": 1500, + "ifType": "ethernetCsmacd", + "ifAlias": "vmac0", + "ifPhysAddress": "00c0b7b800f2", + "ifLastChange": 25, + "ifVlan": null, + "ifTrunk": null, + "ignore": 0, + "disabled": 0, + "deleted": 0, + "pagpOperationMode": null, + "pagpPortState": null, + "pagpPartnerDeviceId": null, + "pagpPartnerLearnMethod": null, + "pagpPartnerIfIndex": null, + "pagpPartnerGroupIfIndex": null, + "pagpPartnerDeviceName": null, + "pagpEthcOperationMode": null, + "pagpDeviceId": null, + "pagpGroupIfIndex": null, + "ifInUcastPkts": 17804970, + "ifInUcastPkts_prev": 0, + "ifInUcastPkts_delta": null, + "ifInUcastPkts_rate": null, + "ifOutUcastPkts": 18089403, + "ifOutUcastPkts_prev": 0, + "ifOutUcastPkts_delta": null, + "ifOutUcastPkts_rate": null, + "ifInErrors": 0, + "ifInErrors_prev": 0, + "ifInErrors_delta": null, + "ifInErrors_rate": null, + "ifOutErrors": 0, + "ifOutErrors_prev": 0, + "ifOutErrors_delta": null, + "ifOutErrors_rate": null, + "ifInOctets": 1975456932, + "ifInOctets_prev": 0, + "ifInOctets_delta": null, + "ifInOctets_rate": null, + "ifOutOctets": 3283905010, + "ifOutOctets_prev": 0, + "ifOutOctets_delta": null, + "ifOutOctets_rate": null, + "poll_prev": null, + "ifInNUcastPkts": 243611, + "ifInNUcastPkts_prev": 0, + "ifInNUcastPkts_delta": null, + "ifInNUcastPkts_rate": null, + "ifOutNUcastPkts": 20751, + "ifOutNUcastPkts_prev": 0, + "ifOutNUcastPkts_delta": null, + "ifOutNUcastPkts_rate": null, + "ifInDiscards": 0, + "ifInDiscards_prev": 0, + "ifInDiscards_delta": null, + "ifInDiscards_rate": null, + "ifOutDiscards": 0, + "ifOutDiscards_prev": 0, + "ifOutDiscards_delta": null, + "ifOutDiscards_rate": null, + "ifInUnknownProtos": 0, + "ifInUnknownProtos_prev": 0, + "ifInUnknownProtos_delta": null, + "ifInUnknownProtos_rate": null, + "ifInBroadcastPkts": 0, + "ifInBroadcastPkts_prev": 0, + "ifInBroadcastPkts_delta": null, + "ifInBroadcastPkts_rate": null, + "ifOutBroadcastPkts": 0, + "ifOutBroadcastPkts_prev": 0, + "ifOutBroadcastPkts_delta": null, + "ifOutBroadcastPkts_rate": null, + "ifInMulticastPkts": 0, + "ifInMulticastPkts_prev": 0, + "ifInMulticastPkts_delta": null, + "ifInMulticastPkts_rate": null, + "ifOutMulticastPkts": 0, + "ifOutMulticastPkts_prev": 0, + "ifOutMulticastPkts_delta": null, + "ifOutMulticastPkts_rate": null + } + ] + } + }, + "sensors": { + "discovery": { + "sensors": [ + { + "sensor_deleted": 0, + "sensor_class": "charge", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.2.3.1.0", + "sensor_index": "0", + "sensor_type": "apc", + "sensor_descr": "Battery Charge", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 100, + "sensor_limit": 100, + "sensor_limit_warn": null, + "sensor_limit_low": 0, + "sensor_limit_low_warn": 10, + "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": "count", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.2.2.5.0", + "sensor_index": "upsAdvBatteryNumOfBattPacks.0", + "sensor_type": "apc", + "sensor_descr": "Installed batteries", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 3, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": 0, + "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": "count", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.2.2.21.0", + "sensor_index": "upsAdvBatteryRecommendedReplaceDate.0", + "sensor_type": "apc", + "sensor_descr": "Battery Recommended Days Remaining", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 1523, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": 0, + "sensor_limit_low_warn": 30, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": "dateToDays", + "rrd_type": "GAUGE", + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "current", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.4.3.4.0", + "sensor_index": "0", + "sensor_type": "apcUPS", + "sensor_descr": "Phase 0 Output", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 2.2, + "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.318.1.1.1.3.3.4.0", + "sensor_index": "3.3.4.0", + "sensor_type": "apc", + "sensor_descr": "Input", + "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, + "rrd_type": "GAUGE", + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "frequency", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.4.3.2.0", + "sensor_index": "4.3.2.0", + "sensor_type": "apc", + "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, + "rrd_type": "GAUGE", + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "load", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.4.3.3.0", + "sensor_index": ".1.3.6.1.4.1.318.1.1.1.4.3.3.0", + "sensor_type": "apc", + "sensor_descr": "Load(VA)", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 76.2, + "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": "power", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.4.2.8.0", + "sensor_index": "PowerNet-MIB::upsAdvOutputActivePower.0", + "sensor_type": "apc", + "sensor_descr": "Active Power", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 333, + "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.318.1.1.1.2.2.3.0", + "sensor_index": "upsAdvBatteryRunTimeRemaining.0", + "sensor_type": "apc", + "sensor_descr": "Runtime", + "group": null, + "sensor_divisor": 6000, + "sensor_multiplier": 1, + "sensor_current": 1637400, + "sensor_limit": 3000, + "sensor_limit_warn": 2000, + "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, + "rrd_type": "GAUGE", + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.2.2.4.0", + "sensor_index": "0", + "sensor_type": "upsAdvBatteryReplaceIndicator", + "sensor_descr": "UPS Battery Replacement Status", + "group": null, + "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": "0", + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": "upsAdvBatteryReplaceIndicator" + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.3.2.5.0", + "sensor_index": "upsAdvInputLineFailCause.0", + "sensor_type": "upsAdvInputLineFailCause", + "sensor_descr": "Last failure cause", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 9, + "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": "upsAdvInputLineFailCause" + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.4.1.1.0", + "sensor_index": "0", + "sensor_type": "upsBasicOutputStatus", + "sensor_descr": "Output 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": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": "upsBasicOutputStatus" + }, + { + "sensor_deleted": 0, + "sensor_class": "temperature", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.2.3.2.0", + "sensor_index": "0", + "sensor_type": "apc", + "sensor_descr": "Internal Temperature", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 20.9, + "sensor_limit": 40.9, + "sensor_limit_warn": null, + "sensor_limit_low": 10.9, + "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": "temperature", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.25.1.2.1.6.1.1", + "sensor_index": "1", + "sensor_type": "apc", + "sensor_descr": null, + "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, + "rrd_type": "GAUGE", + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "voltage", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.2.3.4.0", + "sensor_index": "2.3.4.0", + "sensor_type": "apc", + "sensor_descr": "Battery Bus", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 54.5, + "sensor_limit": 62.675, + "sensor_limit_warn": null, + "sensor_limit_low": 46.325, + "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.318.1.1.1.3.3.1.0", + "sensor_index": "3.3.1.0", + "sensor_type": "apc", + "sensor_descr": "Input", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 246, + "sensor_limit": 282.9, + "sensor_limit_warn": null, + "sensor_limit_low": 209.1, + "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.318.1.1.1.4.3.1.0", + "sensor_index": "4.3.1.0", + "sensor_type": "apc", + "sensor_descr": "Output", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 246.1, + "sensor_limit": 283.015, + "sensor_limit_warn": null, + "sensor_limit_low": 209.185, + "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": "upsAdvBatteryReplaceIndicator", + "state_descr": "noBatteryNeedsReplacing", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvBatteryReplaceIndicator", + "state_descr": "batteryNeedsReplacing", + "state_draw_graph": 0, + "state_value": 2, + "state_generic_value": 2 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "noTransfer", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "highLineVoltage", + "state_draw_graph": 0, + "state_value": 2, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "brownout", + "state_draw_graph": 0, + "state_value": 3, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "blackout", + "state_draw_graph": 0, + "state_value": 4, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "smallMomentarySag", + "state_draw_graph": 0, + "state_value": 5, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "deepMomentarySag", + "state_draw_graph": 0, + "state_value": 6, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "smallMomentarySag", + "state_draw_graph": 0, + "state_value": 7, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "largeMomentarySpike", + "state_draw_graph": 0, + "state_value": 8, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "selfTest", + "state_draw_graph": 0, + "state_value": 9, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "rateOfVoltageChange", + "state_draw_graph": 0, + "state_value": 10, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "unknown", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 3 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "onLine", + "state_draw_graph": 0, + "state_value": 2, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "onBattery", + "state_draw_graph": 0, + "state_value": 3, + "state_generic_value": 1 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "onSmartBoost", + "state_draw_graph": 0, + "state_value": 4, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "timedSleeping", + "state_draw_graph": 0, + "state_value": 5, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "softwareBypass", + "state_draw_graph": 0, + "state_value": 6, + "state_generic_value": 1 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "off", + "state_draw_graph": 0, + "state_value": 7, + "state_generic_value": 2 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "rebooting", + "state_draw_graph": 0, + "state_value": 8, + "state_generic_value": 1 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "switchedBypass", + "state_draw_graph": 0, + "state_value": 9, + "state_generic_value": 1 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "hardwareFailureBypass", + "state_draw_graph": 0, + "state_value": 10, + "state_generic_value": 2 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "sleepingUntilPowerReturn", + "state_draw_graph": 0, + "state_value": 11, + "state_generic_value": 1 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "onSmartTrim", + "state_draw_graph": 0, + "state_value": 12, + "state_generic_value": 1 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "ecoMode", + "state_draw_graph": 0, + "state_value": 13, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "hotStandby", + "state_draw_graph": 0, + "state_value": 14, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "onBatteryTest", + "state_draw_graph": 0, + "state_value": 15, + "state_generic_value": 1 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "emergencyStaticBypass", + "state_draw_graph": 0, + "state_value": 16, + "state_generic_value": 2 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "staticBypassStandby", + "state_draw_graph": 0, + "state_value": 17, + "state_generic_value": 1 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "powerSavingMode", + "state_draw_graph": 0, + "state_value": 18, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "spotMode", + "state_draw_graph": 0, + "state_value": 19, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "eConversion", + "state_draw_graph": 0, + "state_value": 20, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "chargerSpotmode", + "state_draw_graph": 0, + "state_value": 21, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "inverterSpotmode", + "state_draw_graph": 0, + "state_value": 22, + "state_generic_value": 0 + } + ] + }, + "poller": { + "sensors": [ + { + "sensor_deleted": 0, + "sensor_class": "charge", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.2.3.1.0", + "sensor_index": "0", + "sensor_type": "apc", + "sensor_descr": "Battery Charge", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 100, + "sensor_limit": 100, + "sensor_limit_warn": null, + "sensor_limit_low": 0, + "sensor_limit_low_warn": 10, + "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": "count", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.2.2.5.0", + "sensor_index": "upsAdvBatteryNumOfBattPacks.0", + "sensor_type": "apc", + "sensor_descr": "Installed batteries", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 3, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": 0, + "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": "count", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.2.2.21.0", + "sensor_index": "upsAdvBatteryRecommendedReplaceDate.0", + "sensor_type": "apc", + "sensor_descr": "Battery Recommended Days Remaining", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 1523, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": 0, + "sensor_limit_low_warn": 30, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": "dateToDays", + "rrd_type": "GAUGE", + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "current", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.4.3.4.0", + "sensor_index": "0", + "sensor_type": "apcUPS", + "sensor_descr": "Phase 0 Output", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 2.2, + "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.318.1.1.1.3.3.4.0", + "sensor_index": "3.3.4.0", + "sensor_type": "apc", + "sensor_descr": "Input", + "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, + "rrd_type": "GAUGE", + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "frequency", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.4.3.2.0", + "sensor_index": "4.3.2.0", + "sensor_type": "apc", + "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, + "rrd_type": "GAUGE", + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "load", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.4.3.3.0", + "sensor_index": ".1.3.6.1.4.1.318.1.1.1.4.3.3.0", + "sensor_type": "apc", + "sensor_descr": "Load(VA)", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 76.2, + "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": "power", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.4.2.8.0", + "sensor_index": "PowerNet-MIB::upsAdvOutputActivePower.0", + "sensor_type": "apc", + "sensor_descr": "Active Power", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 333, + "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.318.1.1.1.2.2.3.0", + "sensor_index": "upsAdvBatteryRunTimeRemaining.0", + "sensor_type": "apc", + "sensor_descr": "Runtime", + "group": null, + "sensor_divisor": 6000, + "sensor_multiplier": 1, + "sensor_current": 272.9, + "sensor_limit": 3000, + "sensor_limit_warn": 2000, + "sensor_limit_low": 5, + "sensor_limit_low_warn": 10, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": 1637400, + "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.318.1.1.1.2.2.4.0", + "sensor_index": "0", + "sensor_type": "upsAdvBatteryReplaceIndicator", + "sensor_descr": "UPS Battery Replacement Status", + "group": null, + "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": "0", + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": "upsAdvBatteryReplaceIndicator" + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.3.2.5.0", + "sensor_index": "upsAdvInputLineFailCause.0", + "sensor_type": "upsAdvInputLineFailCause", + "sensor_descr": "Last failure cause", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 9, + "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": "upsAdvInputLineFailCause" + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.4.1.1.0", + "sensor_index": "0", + "sensor_type": "upsBasicOutputStatus", + "sensor_descr": "Output 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": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": "upsBasicOutputStatus" + }, + { + "sensor_deleted": 0, + "sensor_class": "temperature", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.2.3.2.0", + "sensor_index": "0", + "sensor_type": "apc", + "sensor_descr": "Internal Temperature", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 20.9, + "sensor_limit": 40.9, + "sensor_limit_warn": null, + "sensor_limit_low": 10.9, + "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": "temperature", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.25.1.2.1.6.1.1", + "sensor_index": "1", + "sensor_type": "apc", + "sensor_descr": null, + "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, + "rrd_type": "GAUGE", + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "voltage", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.318.1.1.1.2.3.4.0", + "sensor_index": "2.3.4.0", + "sensor_type": "apc", + "sensor_descr": "Battery Bus", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 54.5, + "sensor_limit": 62.675, + "sensor_limit_warn": null, + "sensor_limit_low": 46.325, + "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.318.1.1.1.3.3.1.0", + "sensor_index": "3.3.1.0", + "sensor_type": "apc", + "sensor_descr": "Input", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 246, + "sensor_limit": 282.9, + "sensor_limit_warn": null, + "sensor_limit_low": 209.1, + "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.318.1.1.1.4.3.1.0", + "sensor_index": "4.3.1.0", + "sensor_type": "apc", + "sensor_descr": "Output", + "group": null, + "sensor_divisor": 10, + "sensor_multiplier": 1, + "sensor_current": 246.1, + "sensor_limit": 283.015, + "sensor_limit_warn": null, + "sensor_limit_low": 209.185, + "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": "upsAdvBatteryReplaceIndicator", + "state_descr": "noBatteryNeedsReplacing", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvBatteryReplaceIndicator", + "state_descr": "batteryNeedsReplacing", + "state_draw_graph": 0, + "state_value": 2, + "state_generic_value": 2 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "noTransfer", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "highLineVoltage", + "state_draw_graph": 0, + "state_value": 2, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "brownout", + "state_draw_graph": 0, + "state_value": 3, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "blackout", + "state_draw_graph": 0, + "state_value": 4, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "smallMomentarySag", + "state_draw_graph": 0, + "state_value": 5, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "deepMomentarySag", + "state_draw_graph": 0, + "state_value": 6, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "smallMomentarySag", + "state_draw_graph": 0, + "state_value": 7, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "largeMomentarySpike", + "state_draw_graph": 0, + "state_value": 8, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "selfTest", + "state_draw_graph": 0, + "state_value": 9, + "state_generic_value": 0 + }, + { + "state_name": "upsAdvInputLineFailCause", + "state_descr": "rateOfVoltageChange", + "state_draw_graph": 0, + "state_value": 10, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "unknown", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 3 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "onLine", + "state_draw_graph": 0, + "state_value": 2, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "onBattery", + "state_draw_graph": 0, + "state_value": 3, + "state_generic_value": 1 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "onSmartBoost", + "state_draw_graph": 0, + "state_value": 4, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "timedSleeping", + "state_draw_graph": 0, + "state_value": 5, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "softwareBypass", + "state_draw_graph": 0, + "state_value": 6, + "state_generic_value": 1 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "off", + "state_draw_graph": 0, + "state_value": 7, + "state_generic_value": 2 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "rebooting", + "state_draw_graph": 0, + "state_value": 8, + "state_generic_value": 1 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "switchedBypass", + "state_draw_graph": 0, + "state_value": 9, + "state_generic_value": 1 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "hardwareFailureBypass", + "state_draw_graph": 0, + "state_value": 10, + "state_generic_value": 2 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "sleepingUntilPowerReturn", + "state_draw_graph": 0, + "state_value": 11, + "state_generic_value": 1 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "onSmartTrim", + "state_draw_graph": 0, + "state_value": 12, + "state_generic_value": 1 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "ecoMode", + "state_draw_graph": 0, + "state_value": 13, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "hotStandby", + "state_draw_graph": 0, + "state_value": 14, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "onBatteryTest", + "state_draw_graph": 0, + "state_value": 15, + "state_generic_value": 1 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "emergencyStaticBypass", + "state_draw_graph": 0, + "state_value": 16, + "state_generic_value": 2 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "staticBypassStandby", + "state_draw_graph": 0, + "state_value": 17, + "state_generic_value": 1 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "powerSavingMode", + "state_draw_graph": 0, + "state_value": 18, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "spotMode", + "state_draw_graph": 0, + "state_value": 19, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "eConversion", + "state_draw_graph": 0, + "state_value": 20, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "chargerSpotmode", + "state_draw_graph": 0, + "state_value": 21, + "state_generic_value": 0 + }, + { + "state_name": "upsBasicOutputStatus", + "state_descr": "inverterSpotmode", + "state_draw_graph": 0, + "state_value": 22, + "state_generic_value": 0 + } + ] + } + } +} diff --git a/tests/snmpsim/apc_smx750.snmprec b/tests/snmpsim/apc_smx750.snmprec new file mode 100644 index 0000000000..d013e6c1d5 --- /dev/null +++ b/tests/snmpsim/apc_smx750.snmprec @@ -0,0 +1,182 @@ +1.3.6.1.2.1.1.1.0|4|APC Web/SNMP Management Card (MB:v4.1.0 PF:v6.7.2 PN:apc_hw05_aos_672.bin AF1:v6.7.2 AN1:apc_hw05_sumx_672.bin MN:AP9631 HR:05 SN: ZA1349002368 MD:12/06/2013) (Embedded PowerNet SNMP Agent SW v2.2 compatible) +1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.318.1.3.27 +1.3.6.1.2.1.1.4.0|4| +1.3.6.1.2.1.1.6.0|4| +1.3.6.1.2.1.2.2.1.1.1|2|1 +1.3.6.1.2.1.2.2.1.1.2|2|2 +1.3.6.1.2.1.2.2.1.2.1|4|LOOPBACK +1.3.6.1.2.1.2.2.1.2.2|4|vmac0 +1.3.6.1.2.1.2.2.1.3.1|2|24 +1.3.6.1.2.1.2.2.1.3.2|2|6 +1.3.6.1.2.1.2.2.1.4.1|2|1500 +1.3.6.1.2.1.2.2.1.4.2|2|1500 +1.3.6.1.2.1.2.2.1.5.1|66|0 +1.3.6.1.2.1.2.2.1.5.2|66|100000000 +1.3.6.1.2.1.2.2.1.6.1|4| +1.3.6.1.2.1.2.2.1.6.2|4x|00C0B7B800F2 +1.3.6.1.2.1.2.2.1.7.1|2|1 +1.3.6.1.2.1.2.2.1.7.2|2|1 +1.3.6.1.2.1.2.2.1.8.1|2|1 +1.3.6.1.2.1.2.2.1.8.2|2|1 +1.3.6.1.2.1.2.2.1.9.1|67|0 +1.3.6.1.2.1.2.2.1.9.2|67|25 +1.3.6.1.2.1.2.2.1.10.1|65|0 +1.3.6.1.2.1.2.2.1.10.2|65|1975456932 +1.3.6.1.2.1.2.2.1.11.1|65|0 +1.3.6.1.2.1.2.2.1.11.2|65|17804970 +1.3.6.1.2.1.2.2.1.12.1|65|0 +1.3.6.1.2.1.2.2.1.12.2|65|243611 +1.3.6.1.2.1.2.2.1.13.1|65|0 +1.3.6.1.2.1.2.2.1.13.2|65|0 +1.3.6.1.2.1.2.2.1.14.1|65|0 +1.3.6.1.2.1.2.2.1.14.2|65|0 +1.3.6.1.2.1.2.2.1.15.1|65|0 +1.3.6.1.2.1.2.2.1.15.2|65|0 +1.3.6.1.2.1.2.2.1.16.1|65|0 +1.3.6.1.2.1.2.2.1.16.2|65|3283905010 +1.3.6.1.2.1.2.2.1.17.1|65|0 +1.3.6.1.2.1.2.2.1.17.2|65|18089403 +1.3.6.1.2.1.2.2.1.18.1|65|0 +1.3.6.1.2.1.2.2.1.18.2|65|20751 +1.3.6.1.2.1.2.2.1.19.1|65|0 +1.3.6.1.2.1.2.2.1.19.2|65|0 +1.3.6.1.2.1.2.2.1.20.1|65|0 +1.3.6.1.2.1.2.2.1.20.2|65|0 +1.3.6.1.2.1.2.2.1.21.1|66|0 +1.3.6.1.2.1.2.2.1.21.2|66|0 +1.3.6.1.2.1.2.2.1.22.1|6|0.0 +1.3.6.1.2.1.2.2.1.22.2|6|0.0 +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.2.192.168.22.21|2|2 +1.3.6.1.2.1.4.20.1.3.127.0.0.1|64|255.255.255.255 +1.3.6.1.2.1.4.31.1.1.3.1|65|0 +1.3.6.1.2.1.4.31.1.1.3.2|65|8 +1.3.6.1.2.1.4.31.1.1.4.1|70|0 +1.3.6.1.2.1.4.31.1.1.4.2|70|8 +1.3.6.1.2.1.4.31.1.1.5.1|65|1975455902 +1.3.6.1.2.1.4.31.1.1.5.2|65|0 +1.3.6.1.2.1.4.31.1.1.6.1|70|1975455902 +1.3.6.1.2.1.4.31.1.1.6.2|70|0 +1.3.6.1.2.1.4.31.1.1.7.1|65|0 +1.3.6.1.2.1.4.31.1.1.7.2|65|0 +1.3.6.1.2.1.4.31.1.1.8.1|65|0 +1.3.6.1.2.1.4.31.1.1.8.2|65|0 +1.3.6.1.2.1.4.31.1.1.9.1|65|0 +1.3.6.1.2.1.4.31.1.1.9.2|65|0 +1.3.6.1.2.1.4.31.1.1.10.1|65|0 +1.3.6.1.2.1.4.31.1.1.10.2|65|0 +1.3.6.1.2.1.4.31.1.1.11.1|65|0 +1.3.6.1.2.1.4.31.1.1.11.2|65|0 +1.3.6.1.2.1.4.31.1.1.12.1|65|0 +1.3.6.1.2.1.4.31.1.1.12.2|65|0 +1.3.6.1.2.1.4.31.1.1.13.1|70|0 +1.3.6.1.2.1.4.31.1.1.13.2|70|0 +1.3.6.1.2.1.4.31.1.1.14.1|65|0 +1.3.6.1.2.1.4.31.1.1.14.2|65|0 +1.3.6.1.2.1.4.31.1.1.15.1|65|0 +1.3.6.1.2.1.4.31.1.1.15.2|65|0 +1.3.6.1.2.1.4.31.1.1.16.1|65|0 +1.3.6.1.2.1.4.31.1.1.16.2|65|0 +1.3.6.1.2.1.4.31.1.1.17.1|65|0 +1.3.6.1.2.1.4.31.1.1.17.2|65|0 +1.3.6.1.2.1.4.31.1.1.18.1|65|18015317 +1.3.6.1.2.1.4.31.1.1.18.2|65|8 +1.3.6.1.2.1.4.31.1.1.19.1|70|0 +1.3.6.1.2.1.4.31.1.1.19.2|70|8 +1.3.6.1.2.1.4.31.1.1.20.1|65|17772088 +1.3.6.1.2.1.4.31.1.1.20.2|65|195296 +1.3.6.1.2.1.4.31.1.1.21.1|70|17772088 +1.3.6.1.2.1.4.31.1.1.21.2|70|195296 +1.3.6.1.2.1.4.31.1.1.22.1|65|0 +1.3.6.1.2.1.4.31.1.1.22.2|65|0 +1.3.6.1.2.1.4.31.1.1.23.1|65|0 +1.3.6.1.2.1.4.31.1.1.23.2|65|0 +1.3.6.1.2.1.4.31.1.1.24.1|70|0 +1.3.6.1.2.1.4.31.1.1.24.2|70|0 +1.3.6.1.2.1.4.31.1.1.25.1|65|0 +1.3.6.1.2.1.4.31.1.1.25.2|65|0 +1.3.6.1.2.1.4.31.1.1.26.1|65|0 +1.3.6.1.2.1.4.31.1.1.26.2|65|0 +1.3.6.1.2.1.4.31.1.1.27.1|65|0 +1.3.6.1.2.1.4.31.1.1.27.2|65|0 +1.3.6.1.2.1.4.31.1.1.28.1|65|0 +1.3.6.1.2.1.4.31.1.1.28.2|65|0 +1.3.6.1.2.1.4.31.1.1.29.1|65|0 +1.3.6.1.2.1.4.31.1.1.29.2|65|0 +1.3.6.1.2.1.4.31.1.1.30.1|65|0 +1.3.6.1.2.1.4.31.1.1.30.2|65|0 +1.3.6.1.2.1.4.31.1.1.31.1|70|0 +1.3.6.1.2.1.4.31.1.1.31.2|70|0 +1.3.6.1.2.1.4.31.1.1.32.1|65|3283902904 +1.3.6.1.2.1.4.31.1.1.32.2|65|0 +1.3.6.1.2.1.4.31.1.1.33.1|70|3283903168 +1.3.6.1.2.1.4.31.1.1.33.2|70|0 +1.3.6.1.2.1.4.31.1.1.34.1|65|10 +1.3.6.1.2.1.4.31.1.1.34.2|65|8 +1.3.6.1.2.1.4.31.1.1.35.1|70|10 +1.3.6.1.2.1.4.31.1.1.35.2|70|8 +1.3.6.1.2.1.4.31.1.1.36.1|65|0 +1.3.6.1.2.1.4.31.1.1.36.2|65|0 +1.3.6.1.2.1.4.31.1.1.37.1|70|0 +1.3.6.1.2.1.4.31.1.1.37.2|70|0 +1.3.6.1.2.1.4.31.1.1.38.1|65|0 +1.3.6.1.2.1.4.31.1.1.38.2|65|195296 +1.3.6.1.2.1.4.31.1.1.39.1|70|0 +1.3.6.1.2.1.4.31.1.1.39.2|70|195296 +1.3.6.1.2.1.4.31.1.1.40.1|65|0 +1.3.6.1.2.1.4.31.1.1.40.2|65|0 +1.3.6.1.2.1.4.31.1.1.41.1|70|0 +1.3.6.1.2.1.4.31.1.1.41.2|70|0 +1.3.6.1.2.1.4.31.1.1.42.1|65|243601 +1.3.6.1.2.1.4.31.1.1.42.2|65|0 +1.3.6.1.2.1.4.31.1.1.43.1|70|243601 +1.3.6.1.2.1.4.31.1.1.43.2|70|0 +1.3.6.1.2.1.4.31.1.1.44.1|65|20751 +1.3.6.1.2.1.4.31.1.1.44.2|65|0 +1.3.6.1.2.1.4.31.1.1.45.1|70|20751 +1.3.6.1.2.1.4.31.1.1.45.2|70|0 +1.3.6.1.2.1.4.31.1.1.46.1|67|0 +1.3.6.1.2.1.4.31.1.1.46.2|67|0 +1.3.6.1.2.1.4.31.1.1.47.1|66|0 +1.3.6.1.2.1.4.31.1.1.47.2|66|0 +1.3.6.1.2.1.33.1.1.1.0|4|APC +1.3.6.1.4.1.318.1.1.1.1.1.1.0|4|Smart-UPS X 750 +1.3.6.1.4.1.318.1.1.1.1.2.1.0|4|UPS 09.9 (ID20) +1.3.6.1.4.1.318.1.1.1.1.2.3.0|4|AS1342225176 +1.3.6.1.4.1.318.1.1.1.2.2.3.0|67|1637400 +1.3.6.1.4.1.318.1.1.1.2.2.4.0|2|1 +1.3.6.1.4.1.318.1.1.1.2.2.5.0|2|3 +1.3.6.1.4.1.318.1.1.1.2.2.21.0|4|03/04/2026 +1.3.6.1.4.1.318.1.1.1.2.3.1.0|66|1000 +1.3.6.1.4.1.318.1.1.1.2.3.2.0|66|209 +1.3.6.1.4.1.318.1.1.1.2.3.4.0|2|545 +1.3.6.1.4.1.318.1.1.1.3.2.5.0|2|9 +1.3.6.1.4.1.318.1.1.1.3.3.1.0|66|2460 +1.3.6.1.4.1.318.1.1.1.3.3.4.0|66|499 +1.3.6.1.4.1.318.1.1.1.4.1.1.0|2|2 +1.3.6.1.4.1.318.1.1.1.4.2.8.0|2|333 +1.3.6.1.4.1.318.1.1.1.4.3.1.0|66|2461 +1.3.6.1.4.1.318.1.1.1.4.3.2.0|66|499 +1.3.6.1.4.1.318.1.1.1.4.3.3.0|66|762 +1.3.6.1.4.1.318.1.1.1.4.3.4.0|66|22 +1.3.6.1.4.1.318.1.1.10.2.2.4.1.1.1|2|1 +1.3.6.1.4.1.318.1.1.10.2.2.4.1.1.2|2|2 +1.3.6.1.4.1.318.1.1.10.2.2.4.1.2.1|4|Unknown +1.3.6.1.4.1.318.1.1.10.2.2.4.1.2.2|4|Unknown +1.3.6.1.4.1.318.1.1.10.2.2.4.1.3.1|2|1 +1.3.6.1.4.1.318.1.1.10.2.2.4.1.3.2|2|1 +1.3.6.1.4.1.318.1.1.10.2.2.4.1.4.1|2|1 +1.3.6.1.4.1.318.1.1.10.2.2.4.1.4.2|2|1 +1.3.6.1.4.1.318.1.1.10.2.2.4.1.5.1|2|1 +1.3.6.1.4.1.318.1.1.10.2.2.4.1.5.2|2|1 +1.3.6.1.4.1.318.1.1.10.2.2.4.1.6.1|4|Unknown +1.3.6.1.4.1.318.1.1.10.2.2.4.1.6.2|4|Unknown +1.3.6.1.4.1.318.1.1.10.2.3.4.1.1.1|2|1 +1.3.6.1.4.1.318.1.1.10.2.3.4.1.1.2|2|2 +1.3.6.1.4.1.318.1.1.10.2.3.4.1.2.1|4|Unknown +1.3.6.1.4.1.318.1.1.10.2.3.4.1.2.2|4|Unknown +1.3.6.1.4.1.318.1.1.10.2.3.4.1.3.1|2|1 +1.3.6.1.4.1.318.1.1.10.2.3.4.1.3.2|2|1 +1.3.6.1.4.1.318.1.1.25.1.2.1.6.1.1|2|25 +1.3.6.1.4.1.318.1.4.2.4.1.4.1|4|v6.7.2 +1.3.6.1.4.1.318.1.4.2.4.1.4.2|4|v6.7.2