extends:
  - _vertiv.yaml

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.21239.5.1 # watchdog100

metadata:
  device:
    fields:
      type:
        value: "Sensor"

metric_tags:
  - tag: vertiv_product_title
    OID: 1.3.6.1.4.1.21239.5.1.1.1.0
    symbol: productTitle
  - tag: vertiv_product_version
    OID: 1.3.6.1.4.1.21239.5.1.1.2.0
    symbol: productVersion
  - tag: vertiv_product_friendly_name
    OID: 1.3.6.1.4.1.21239.5.1.1.3.0
    symbol: productFriendlyName
  - tag: vertiv_product_mac_address
    OID: 1.3.6.1.4.1.21239.5.1.1.4.0
    symbol: productMacAddress

# VERTIV-BB-MIB
# https://github.com/DanielleHuisman/observium-community-edition/blob/main/mibs/geist/VERTIV-BB-MIB

metrics:
  - MIB: VERTIV-BB-MIB
    table:
      name: internalTable
      OID: 1.3.6.1.4.1.21239.5.1.2
    symbols:
      - OID: 1.3.6.1.4.1.21239.5.1.2.1.5
        name: vertiv.internalTemp
        chart_meta:
          description: Internal temperature measurement
          family: 'Hardware/Sensor/Temperature/Value'
          unit: "Cel"
      - OID: 1.3.6.1.4.1.21239.5.1.2.1.6
        name: vertiv.internalHumidity
        chart_meta:
          description: Internal humidity measurement
          family: 'Hardware/Sensor/Humidity/Value'
          unit: "%"
      - OID: 1.3.6.1.4.1.21239.5.1.2.1.7
        name: vertiv.internalDewPoint
        chart_meta:
          description: Internal dew point temperature
          family: 'Hardware/Sensor/DewPoint/Value'
          unit: "Cel"
      - OID: 1.3.6.1.4.1.21239.5.1.2.1.4
        name: vertiv.internalAvail
        chart_meta:
          description: Internal availability status
          family: 'Hardware/Sensor/Status/Availability'
          unit: "{status}"
        mapping:
          0: unavailable
          1: available
          2: partially_unavailable
    metric_tags:
      - tag: vertiv_internal_index
        index: 1
      - tag: _vertiv_internal_serial
        symbol:
          OID: 1.3.6.1.4.1.21239.5.1.2.1.2
          name: vertiv.internalSerial

  - MIB: VERTIV-BB-MIB
    table:
      name: tempSensorTable
      OID: 1.3.6.1.4.1.21239.5.1.4
    symbols:
      - OID: 1.3.6.1.4.1.21239.5.1.4.1.5
        name: vertiv.tempSensorTemp
        chart_meta:
          description: Temperature measured by the temperature sensor
          family: 'Hardware/Sensor/Temperature/Value'
          unit: "Cel"
      - OID: 1.3.6.1.4.1.21239.5.1.4.1.4
        name: vertiv.tempSensorAvail
        chart_meta:
          description: Sensor availability status
          family: 'Hardware/Sensor/Status/Availability'
          unit: "{status}"
        mapping:
          0: unavailable
          1: available
          2: partially_unavailable
    metric_tags:
      - tag: vertiv_sensor_index
        index: 1
      - tag: _vertiv_temp_sensor_serial
        symbol:
          OID: 1.3.6.1.4.1.21239.5.1.4.1.2
          name: vertiv.tempSensorSerial
      - tag: vertiv_temp_sensor_label
        symbol:
          OID: 1.3.6.1.4.1.21239.5.1.4.1.3
          name: vertiv.tempSensorLabel
