extends:
  - _system-base.yaml
  - _std-if-mib.yaml
  - avaya.yaml

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.45.3.71.10 # 4526T

metadata:
  device:
    fields:
      type:
        value: "Switch"

metric_tags:
  - tag: avaya_s5_chas_ver
    OID: 1.3.6.1.4.1.45.1.6.3.1.5.0
    symbol: s5ChasVer
    description: Version of the chassis in the form major.minor.maintenance letters
  - tag: avaya_s5_chas_ser_num
    OID: 1.3.6.1.4.1.45.1.6.3.1.6.0
    symbol: s5ChasSerNum
    description: Serial number of the chassis

metrics:
  - MIB: S5-CHASSIS-MIB
    symbol:
      name: cpu.usage
      OID: 1.3.6.1.4.1.45.1.6.3.8.1.1.5.3.10.0 # s5ChasUtilCPUUsageLast1Minute.3.10.0
      chart_meta:
        description: The current CPU utilization
        family: 'System/CPU/Usage'
        unit: "%"
  - MIB: S5-CHASSIS-MIB
    symbol:
      name: memory.total
      OID: 1.3.6.1.4.1.45.1.6.3.8.1.1.12.3.10.0 # s5ChasUtilMemoryTotalMB.3.10.0
      chart_meta:
        description: Total RAM of unit
        family: 'System/Memory/Total'
        unit: "By"
      scale_factor: 104857
  - MIB: S5-CHASSIS-MIB
    symbol:
      name: memory.free
      OID: 1.3.6.1.4.1.45.1.6.3.8.1.1.13.3.10.0 # s5ChasUtilMemoryAvailableMB.3.10.0
      chart_meta:
        description: Available RAM of unit
        family: 'System/Memory/Free'
        unit: "By"
      scale_factor: 104857
  - MIB: S5-CHASSIS-MIB
    symbol:
      name: avaya.s5ChasTmpSnrTmpValue
      OID: 1.3.6.1.4.1.45.1.6.3.7.1.1.5.5.10.0 # s5ChasTmpSnrTmpValue.5.10.0
      chart_meta:
        description: Current temperature value of the temperature sensor measured in units of a half degree centigrade
        family: 'Environment/Temperature/Value'
        unit: "Cel"
      scale_factor: 0.5
  - MIB: S5-CHASSIS-MIB
    table:
      name: s5ChasComTable
      OID: 1.3.6.1.4.1.45.1.6.3.3.1
    symbols:
      - OID: 1.3.6.1.4.1.45.1.6.3.3.1.1.9
        name: avaya.s5ChasComAdminState
        chart_meta:
          description: Desired state of the component or sub-component
          family: 'Hardware/Chassis/Component/Admin/Status'
          unit: "{status}"
        mapping:
          1: other
          2: not_avail
          3: disable
          4: enable
          5: reset
          6: test
      - OID: 1.3.6.1.4.1.45.1.6.3.3.1.1.10
        name: avaya.s5ChasComOperState
        chart_meta:
          description: Current operational state of the component or sub-component
          family: 'Hardware/Chassis/Component/Operational/Status'
          unit: "{status}"
        mapping:
          1: other
          2: not_avail
          3: removed
          4: disabled
          5: normal
          6: reset_in_prog
          7: testing
          8: warning
          9: non_fatal_err
          10: fatal_err
          11: not_config
          12: obsoleted
    metric_tags:
      - tag: avaya_s5_chas_com_descr
        symbol:
          name: avaya.s5ChasComDescr
          OID: 1.3.6.1.4.1.45.1.6.3.3.1.1.5
