extends:
  - _system-base.yaml
  - _std-if-mib.yaml
  - _std-lldp-mib.yaml
  - _std-topology-fdb-arp-mib.yaml
  - _std-topology-q-bridge-mib.yaml
  - _std-topology-stp-mib.yaml

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.890.1.15 # ZyWALL Switch (Generic)

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

metric_tags:
  - tag: zyxel_sys_sw_platform
    OID: 1.3.6.1.4.1.890.1.15.3.1.1.0
    symbol: sysSwPlatform
    mapping:
      1: other
      2: zynos
      3: zld
  - tag: zyxel_sys_sw_version_string
    OID: 1.3.6.1.4.1.890.1.15.3.1.6.0
    symbol: sysSwVersionString
  - tag: zyxel_sys_product_model
    OID: 1.3.6.1.4.1.890.1.15.3.1.11.0
    symbol: sysProductModel
  - tag: zyxel_sys_product_serial_number
    OID: 1.3.6.1.4.1.890.1.15.3.1.12.0
    symbol: sysProductSerialNumber

# ZYXEL-ES-COMMON
# https://mibbrowser.online/mibdb_search.php?mib=ZYXEL-ES-COMMON
# https://github.com/DanielleHuisman/observium-community-edition/blob/main/mibs/zyxel/ZYXEL-ES-COMMON

metrics:
  - MIB: ZYXEL-ES-COMMON
    symbol:
      name: cpu.usage # sysMgmtCPUUsage
      OID: 1.3.6.1.4.1.890.1.15.3.2.4.0
      chart_meta:
        description: The current CPU utilization
        family: 'System/CPU/Usage'
        unit: "%"

  - MIB: ZYXEL-ES-COMMON
    symbol:
      name: memory.usage
      OID: 1.3.6.1.4.1.890.1.15.3.2.5.0
      chart_meta:
        description: Device memory usage
        family: 'System/Memory/Usage'
        unit: "%"
