extends:
  - alcatel-lucent.yaml

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.6486.800.1.1.2.2.2.* # Alcatel-Lucent OmniAccess WLC and Switches

metadata:
  device:
    fields:
      type:
        value: Switch/WLC
      vendor:
        value: Alcatel-Lucent

metric_tags:
  - tag: wlsx_model_name
    OID: 1.3.6.1.4.1.14823.2.2.1.1.1.2.0
    symbol: wlsxModelName
  - tag: wlsx_switch_role
    OID: 1.3.6.1.4.1.14823.2.2.1.1.1.4.0
    symbol: wlsxSwitchRole
    mapping:
      1: master
      2: local
      3: standbymaster
      4: branch
      5: md
  - tag: wlsx_switch_license_serial_number
    OID: 1.3.6.1.4.1.14823.2.2.1.1.1.12.0
    symbol: wlsxSwitchLicenseSerialNumber

metrics:
  - MIB: WLSX-SWITCH-MIB
    table:
      name: wlsxSysXProcessorTable
      OID: 1.3.6.1.4.1.14823.2.2.1.1.1.9
    symbols:
      - name: cpu.usage # sysXProcessorLoad
        OID: 1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3
        chart_meta:
          family: 'System/CPU/Usage'
          description: The current CPU utilization
          unit: "%"
    metric_tags:
      - tag: cpu_index
        index: 1
      - tag: _sys_x_processor_descr
        symbol:
          OID: 1.3.6.1.4.1.14823.2.2.1.1.1.9.1.2
          name: sysXProcessorDescr

  - MIB: WLSX-SWITCH-MIB
    table:
      name: wlsxSysXStorageTable
      OID: 1.3.6.1.4.1.14823.2.2.1.1.1.10
    symbols:
      - name: sysXStorageSize
        OID: 1.3.6.1.4.1.14823.2.2.1.1.1.10.1.3
        chart_meta:
          family: 'System/Storage/Filesystem/Size'
          description: Size of the storage filesystem
          unit: "By"
        scale_factor: 1048576
      - name: sysXStorageUsed
        OID: 1.3.6.1.4.1.14823.2.2.1.1.1.10.1.4
        chart_meta:
          family: 'System/Storage/Filesystem/Used'
          description: Storage filesystem usage
          unit: "By"
        scale_factor: 1048576
    metric_tags:
      - tag: sys_x_storage_type
        symbol:
          OID: 1.3.6.1.4.1.14823.2.2.1.1.1.10.1.2
          name: sysXStorageType
        mapping:
          1: ram
          2: flash_memory
      - tag: sys_x_storage_name
        symbol:
          OID: 1.3.6.1.4.1.14823.2.2.1.1.1.10.1.5
          name: sysXStorageName

  - MIB: WLSX-SWITCH-MIB
    table:
      name: wlsxSysXMemoryTable
      OID: 1.3.6.1.4.1.14823.2.2.1.1.1.11
    symbols:
      - name: sysXMemorySize
        OID: 1.3.6.1.4.1.14823.2.2.1.1.1.11.1.2
        chart_meta:
          family: 'System/Memory/Total'
          description: Total memory in KB
          unit: "By"
        scale_factor: 1024
      - name: sysXMemoryUsed
        OID: 1.3.6.1.4.1.14823.2.2.1.1.1.11.1.3
        chart_meta:
          family: 'System/Memory/Used'
          description: Used memory in KB
          unit: "By"
        scale_factor: 1024
      - name: sysXMemoryFree
        OID: 1.3.6.1.4.1.14823.2.2.1.1.1.11.1.4
        chart_meta:
          family: 'System/Memory/Free'
          description: Free memory in KB
          unit: "By"
        scale_factor: 1024
    metric_tags:
      - tag: mem_index
        index: 1

  - MIB: WLSX-SWITCH-MIB
    symbol:
      name: wlsxSwitchTotalNumAccessPoints
      OID: 1.3.6.1.4.1.14823.2.2.1.1.3.1.0
      chart_meta:
        family: 'Network/Wireless/AccessPoint/Connected'
        description: Total number of access points connected to this switch
        unit: "{ap}"

  - MIB: WLSX-SWITCH-MIB
    symbol:
      name: wlsxSwitchTotalNumStationsAssociated
      OID: 1.3.6.1.4.1.14823.2.2.1.1.3.2.0
      chart_meta:
        family: 'Network/Wireless/Station/Associated'
        description: Total number of stations associated to this switch.
        unit: "{station}"
