metric_tags:
  - OID: 1.3.6.1.2.1.33.1.1.1
    symbol: upsIdentManufacturer
    tag: ups_ident_manufacturer
  - OID: 1.3.6.1.2.1.33.1.1.2
    symbol: upsIdentModel
    tag: ups_ident_model
  - OID: 1.3.6.1.2.1.33.1.1.5
    symbol: upsIdentName
    tag: ups_ident_name

metrics:
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.2.1.0
      name: upsBatteryStatus
      chart_meta:
        family: 'Hardware/Battery/Status'
        description: The indication of the capacity remaining in the UPS system's batteries
        unit: "{status}"
      mapping:
        1: unknown
        2: batteryNormal
        3: batteryLow
        4: batteryDepleted
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.2.2.0
      name: upsSecondsOnBattery
      chart_meta:
        family: 'System/Battery/Runtime/OnBattery'
        description: If the unit is on battery power, the elapsed time since the UPS last switched to battery power, or the time since the network management subsystem was last restarted, whichever is less. Zero shall be returned if the unit is not on battery power
        unit: "s"
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.2.3.0
      name: upsEstimatedMinutesRemaining
      chart_meta:
        family: 'System/Battery/Runtime/Remaining'
        description: An estimate of the time to battery charge depletion under the present load conditions if the utility power is off and remains off, or if it were to be lost and remain off
        unit: "min"
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.2.4.0
      name: upsEstimatedChargeRemaining
      chart_meta:
        family: 'System/Battery/Charge/Remaining'
        description: An estimate of the battery charge remaining expressed as a percent of full charge
        unit: "%"
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.2.5.0
      name: upsBatteryVoltage
      chart_meta:
        family: 'Hardware/Battery/Voltage/Value'
        description: The magnitude of the present battery voltage
        unit: "V"
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.2.6.0
      name: upsBatteryCurrent
      chart_meta:
        family: 'Hardware/Battery/Current/Value'
        description: The present battery current
        unit: "A"
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.2.7.0
      name: upsBatteryTemperature
      chart_meta:
        family: 'Hardware/Battery/Temperature/Value'
        description: The ambient temperature at or near the UPS Battery casing
        unit: "Cel"
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.3.1.0
      name: upsInputLineBads
      chart_meta:
        family: 'PowerFlow/Input/Error/OutOfTolerance'
        description: A count of the number of times the input entered an out-of-tolerance condition as defined by the manufacturer. This count is incremented by one each time the input transitions from zero out-of-tolerance lines to one or more input lines out-of-tolerance
        unit: "{transition}"
    metric_type: monotonic_count
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.3.2.0
      name: upsInputNumLines
      chart_meta:
        family: 'PowerFlow/Input/Line/Count'
        description: The number of input lines utilized in this device. This variable indicates the number of rows in the input table
        unit: "{line}"
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.4.1.0
      name: upsOutputSource
      chart_meta:
        family: 'PowerFlow/Output/Source/Status'
        description: The present source of output power
        unit: "{status}"
      mapping:
        1: other
        2: none
        3: normal
        4: bypass
        5: battery
        6: booster
        7: reducer
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.4.2.0
      name: upsOutputFrequency
      chart_meta:
        family: 'PowerFlow/Output/Frequency/Value'
        description: The present output frequency
        unit: "Hz"
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.4.3.0
      name: upsOutputNumLines
      chart_meta:
        family: 'PowerFlow/Output/Line/Count'
        description: The number of output lines utilized in this device. This variable indicates the number of rows in the output table
        unit: "{line}"
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.5.1.0
      name: upsBypassFrequency
      chart_meta:
        family: 'PowerFlow/Bypass/Frequency/Value'
        description: The present bypass frequency
        unit: "Hz"
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.5.2.0
      name: upsBypassNumLines
      chart_meta:
        family: 'PowerFlow/Bypass/Line/Count'
        description: The number of bypass lines utilized in this device. This entry indicates the number of rows in the bypass table
        unit: "{line}"
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.6.1.0
      name: upsAlarmsPresent
      chart_meta:
        family: 'System/Alarm/Active'
        description: The present number of active alarm conditions
        unit: "{alarm}"
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.7.3.0
      name: upsTestResultsSummary
      chart_meta:
        family: 'System/Test/Result/Status'
        description: The results of the current or last UPS diagnostics test performed
        unit: "{status}"
      mapping:
        1: donePass
        2: doneWarning
        3: doneError
        4: aborted
        5: inProgress
        6: noTestsInitiated
  - MIB: UPS-MIB
    symbol:
      OID: 1.3.6.1.2.1.33.1.7.5.0
      name: upsTestStartTime
      chart_meta:
        family: 'System/Test/StartTime/Value'
        description: The value of sysUpTime at the time the test in progress was initiated, or, if no test is in progress, the time the previous test was initiated
        unit: "s"
  - MIB: UPS-MIB
    table:
      OID: 1.3.6.1.2.1.33.1.4.4
      name: upsOutputTable
    symbols:
      - OID: 1.3.6.1.2.1.33.1.4.4.1.2
        name: upsOutputVoltage
        chart_meta:
          family: 'PowerFlow/Output/Voltage/Value'
          description: The present output voltage
          unit: "V"
      - OID: 1.3.6.1.2.1.33.1.4.4.1.3
        name: upsOutputCurrent
        chart_meta:
          family: 'PowerFlow/Output/Current/Value'
          description: The present output current
          unit: "A"
      - OID: 1.3.6.1.2.1.33.1.4.4.1.4
        name: upsOutputPower
        chart_meta:
          family: 'PowerFlow/Output/Power/Active'
          description: The present output true power
          unit: "W"
      - OID: 1.3.6.1.2.1.33.1.4.4.1.5
        name: upsOutputPercentLoad
        chart_meta:
          family: 'PowerFlow/Output/Load/Usage'
          description: The percentage of the UPS power capacity presently being used on this output line
          unit: "%"
    metric_tags:
      - symbol:
          OID: 1.3.6.1.2.1.33.1.4.4.1.1
          name: upsOutputLineIndex
        tag: ups_output_line_index
  - MIB: UPS-MIB
    table:
      OID: 1.3.6.1.2.1.33.1.3.3
      name: upsInputTable
    symbols:
      - OID: 1.3.6.1.2.1.33.1.3.3.1.2
        name: upsInputFrequency
        chart_meta:
          family: 'PowerFlow/Input/Frequency/Value'
          description: The present input frequency
          unit: "Hz"
      - OID: 1.3.6.1.2.1.33.1.3.3.1.3
        name: upsInputVoltage
        chart_meta:
          family: 'PowerFlow/Input/Voltage/Value'
          description: The magnitude of the present input voltage
          unit: "V"
      - OID: 1.3.6.1.2.1.33.1.3.3.1.4
        name: upsInputCurrent
        chart_meta:
          family: 'PowerFlow/Input/Current/Value'
          description: The magnitude of the present input current
          unit: "A"
      - OID: 1.3.6.1.2.1.33.1.3.3.1.5
        name: upsInputTruePower
        chart_meta:
          family: 'PowerFlow/Input/Power/Active'
          description: The magnitude of the present input true power
          unit: "W"
    metric_tags:
      - symbol:
          OID: 1.3.6.1.2.1.33.1.3.3.1.1
          name: upsInputLineIndex
        tag: ups_input_line_index
  - MIB: UPS-MIB
    table:
      OID: 1.3.6.1.2.1.33.1.5.3
      name: upsBypassTable
    symbols:
      - OID: 1.3.6.1.2.1.33.1.5.3.1.2
        name: upsBypassVoltage
        chart_meta:
          family: 'PowerFlow/Bypass/Voltage/Value'
          description: The present bypass voltage
          unit: "V"
      - OID: 1.3.6.1.2.1.33.1.5.3.1.3
        name: upsBypassCurrent
        chart_meta:
          family: 'PowerFlow/Bypass/Current/Value'
          description: The present bypass current
          unit: "A"
      - OID: 1.3.6.1.2.1.33.1.5.3.1.4
        name: upsBypassPower
        chart_meta:
          family: 'PowerFlow/Bypass/Power/Active'
          description: The present true power conveyed by the bypass
          unit: "W"
    metric_tags:
      - symbol:
          OID: 1.3.6.1.2.1.33.1.5.3.1.1
          name: upsBypassLineIndex
        tag: ups_bypass_line_index
  - MIB: UPS-MIB
    table:
      OID: 1.3.6.1.2.1.33.1.6.2
      name: upsAlarmTable
    symbols:
      - OID: 1.3.6.1.2.1.33.1.6.2.1.3
        name: upsAlarmTime
        chart_meta:
          family: 'System/Alarm/Time/Value'
          description: The value of sysUpTime when the alarm condition was detected. If the alarm condition was detected at the time of agent startup and presumably existed before agent startup, the value of upsAlarmTime shall equal 0
          unit: "s"
    metric_tags:
      - tag: ups_alarm_descr
        symbol:
          OID: 1.3.6.1.2.1.33.1.6.2.1.2
          name: upsAlarmDescr
