extends:
  - _vertiv.yaml

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.476.1.42 # liebertGlobalProducts

metric_tags:
  - tag: lgp_agent_ident_model
    OID: 1.3.6.1.4.1.476.1.42.2.1.2.0
    symbol: lgpAgentIdentModel
  - tag: lgp_agent_ident_serial_number
    OID: 1.3.6.1.4.1.476.1.42.2.1.4.0
    symbol: lgpAgentIdentSerialNumber

# LIEBERT-GP-ENVIRONMENTAL-MIB
# https://mibbrowser.online/mibdb_search.php?mib=LIEBERT-GP-ENVIRONMENTAL-MIB
# https://github.com/DanielleHuisman/observium-community-edition/blob/main/mibs/liebert/LIEBERT-GP-ENVIRONMENTAL-MIB

metrics:
  - MIB: LIEBERT-GP-ENVIRONMENTAL-MIB
    symbol:
      OID: 1.3.6.1.4.1.476.1.42.3.4.1.2.1.0
      name: lgpEnvTemperatureSettingDegF
      chart_meta:
        description: The temperature setting used to control the well known temperature object lgpEnvControlTemperature
        family: 'Environment/Temperature/Setpoint'
        unit: "degF"

  - MIB: LIEBERT-GP-ENVIRONMENTAL-MIB
    symbol:
      OID: 1.3.6.1.4.1.476.1.42.3.4.1.2.2.0
      name: lgpEnvTemperatureToleranceDegF
      chart_meta:
        description: The acceptable variance from lgpEnvTemperatureSettingDegF without initiating a control action
        family: 'Environment/Temperature/Tolerance'
        unit: "degF"

  - MIB: LIEBERT-GP-ENVIRONMENTAL-MIB
    table:
      OID: 1.3.6.1.4.1.476.1.42.3.4.1.2.3
      name: lgpEnvTemperatureTableDegF
    symbols:
      - OID: 1.3.6.1.4.1.476.1.42.3.4.1.2.3.1.3
        name: lgpEnvTemperatureMeasurementDegF
        chart_meta:
          description: The measured temperature value
          family: 'Environment/Temperature/Value'
          unit: "degF"
      - OID: 1.3.6.1.4.1.476.1.42.3.4.1.3.3.1.3
        name: lgpEnvTemperatureMeasurementDegC
        chart_meta:
          description: The measured temperature value
          family: 'Environment/Temperature/Value'
          unit: "Cel"
      - OID: 1.3.6.1.4.1.476.1.42.3.4.2.2.3.1.3
        name: lgpEnvHumidityMeasurementRel
        chart_meta:
          description: The measured humidity value
          family: 'Environment/Humidity/Value'
          unit: "%"
    metric_tags:
      - tag: lgp_env_temperature_descr_deg_f
        symbol:
          OID: 1.3.6.1.4.1.476.1.42.3.4.1.2.3.1.2 # OID index
          name: lgpEnvTemperatureDescrDegF

  - MIB: LIEBERT-GP-ENVIRONMENTAL-MIB
    symbol:
      OID: 1.3.6.1.4.1.476.1.42.3.4.6.1.0
      name: lgpEnvStatisticsComp1RunHr
      chart_meta:
        description: Accumulated run hours of compressor 1
        family: 'Hardware/Compressor/1/Runtime'
        unit: "h"

  - MIB: LIEBERT-GP-ENVIRONMENTAL-MIB
    symbol:
      OID: 1.3.6.1.4.1.476.1.42.3.4.6.2.0
      name: lgpEnvStatisticsComp2RunHr
      chart_meta:
        description: Accumulated run hours of compressor 2
        family: 'Hardware/Compressor/2/Runtime'
        unit: "h"

  - MIB: LIEBERT-GP-ENVIRONMENTAL-MIB
    symbol:
      OID: 1.3.6.1.4.1.476.1.42.3.4.6.3.0
      name: lgpEnvStatisticsFanRunHr
      chart_meta:
        description: Accumulated run hours of the main fan
        family: 'Hardware/Fan/Runtime'
        unit: "h"

  - MIB: LIEBERT-GP-ENVIRONMENTAL-MIB
    symbol:
      OID: 1.3.6.1.4.1.476.1.42.3.4.6.4.0
      name: lgpEnvStatisticsHumRunHr
      chart_meta:
        description: Accumulated run hours of the humidifier
        family: 'Hardware/Humidifier/Runtime'
        unit: "h"

  - MIB: LIEBERT-GP-ENVIRONMENTAL-MIB
    symbol:
      OID: 1.3.6.1.4.1.476.1.42.3.4.6.7.0
      name: lgpEnvStatisticsReheat1RunHr
      chart_meta:
        description: Accumulated run hours of reheat element 1
        family: 'Hardware/Heater/Reheat/1/Runtime'
        unit: "h"

  - MIB: LIEBERT-GP-ENVIRONMENTAL-MIB
    symbol:
      OID: 1.3.6.1.4.1.476.1.42.3.4.6.8.0
      name: lgpEnvStatisticsReheat2RunHr
      chart_meta:
        description: Accumulated run hours of reheat element 2
        family: 'Hardware/Heater/Reheat/2/Runtime'
        unit: "h"

  - MIB: LIEBERT-GP-ENVIRONMENTAL-MIB
    symbol:
      OID: 1.3.6.1.4.1.476.1.42.3.4.6.9.0
      name: lgpEnvStatisticsReheat3RunHr
      chart_meta:
        description: Accumulated run hours of reheat element 3
        family: 'Hardware/Heater/Reheat/3/Runtime'
        unit: "h"
