extends:
  - riverbed.yaml

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.17163.1.3  # Steelhead Interceptor 9200

metric_tags:
  - tag: riverbed_interceptor_model
    OID: 1.3.6.1.4.1.17163.1.3.1.1.0
    symbol: model
  - tag: riverbed_interceptor_serial_number
    OID: 1.3.6.1.4.1.17163.1.3.1.2.0
    symbol: serialNumber

# HOST-RESOURCES-MIB
# https://mibbrowser.online/mibdb_search.php?mib=HOST-RESOURCES-MIB
# https://github.com/DanielleHuisman/observium-community-edition/blob/main/mibs/riverbed/HOST-RESOURCES-MIB

# INTERCEPTOR-MIB

metrics:
  - MIB: HOST-RESOURCES-MIB
    symbol:
      name: memory.total
      OID: 1.3.6.1.2.1.25.2.3.1.5.1  # hrStorageSize.1 (hrStorageSize at index 1)
      chart_meta:
        family: 'System/Memory/Total'
        description: Size of the storage represented by this entry in units of hrStorageAllocationUnits
        unit: "By"
  - MIB: HOST-RESOURCES-MIB
    symbol:
      name: memory.used
      OID: 1.3.6.1.2.1.25.2.3.1.6.1  # hrStorageUsed.1 (hrStorageUsed at index 1)
      chart_meta:
        family: 'System/Memory/Used'
        description: Amount of the storage represented by this entry that is allocated in units of hrStorageAllocationUnits
        unit: "By"
  # - MIB: INTERCEPTOR-MIB
  #   symbol:
  #     name: cpu.usage
  #     OID: 1.3.6.1.4.1.17163.1.3.5.1.4.0
  #     description: TBD
  #     unit: "TBD"
  # TODO MIB not found
  #  - MIB: INTERCEPTOR-MIB
  #    symbol:
  #      name: riverbed.interceptor.health
  #      OID: 1.3.6.1.4.1.17163.1.3.2.2.0
  # scalar string metric is not supported yet (keep this metric and this comment in profile until it's fixed)
  #  - MIB: INTERCEPTOR-MIB
  #    symbol:
  #      name: riverbed.interceptor.serviceStatus
  #      OID: 1.3.6.1.4.1.17163.1.3.2.3.0
  # scalar string metric is not supported yet (keep this metric and this comment in profile until it's fixed)

  # TODO: need riverbed.interceptor.procStatus mapping
  #  - MIB: INTERCEPTOR-MIB
  #    table:
  #      name: procTable
  #      OID: 1.3.6.1.4.1.17163.1.3.2.5
  #    symbols:
  #      - name: riverbed.interceptor.proc
  #        constant_value_one: true
  #    metric_tags:
  #      - tag: proc_index
  #        index: 1
  #      - tag: riverbed_interceptor_proc_name
  #        symbol:
  #          name: riverbed.interceptor.procName
  #          OID: 1.3.6.1.4.1.17163.1.3.2.5.1.2
  #      - tag: _riverbed_interceptor_proc_status
  #        symbol:
  #          OID: 1.3.6.1.4.1.17163.1.3.2.5.1.3
  #          name: riverbed.interceptor.procStatus

  - MIB: INTERCEPTOR-MIB
    table:
      name: neighborTable
      OID: 1.3.6.1.4.1.17163.1.3.2.6
    symbols:
      - name: riverbed.interceptor.neighborConnectionCount
        OID: 1.3.6.1.4.1.17163.1.3.2.6.1.4
        chart_meta:
          family: 'Network/Interceptor/Neighbor/Connection/Active'
          description: Number of neighbor connections
          unit: "{connection}"
    metric_tags:
      - tag: neighbor_index
        index: 1
      - tag: riverbed_interceptor_neighbor_name
        symbol:
          name: riverbed.interceptor.neighborName
          OID: 1.3.6.1.4.1.17163.1.3.2.6.1.3
