extends:
  - fortinet.yaml

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.12356.106.1.* # FortiSwitch
        - 1.3.6.1.4.1.12356.106.1.1486 # FortiSwitch-148F-FPOE
        - 1.3.6.1.4.1.12356.106.1.1248 # FortiSwitch-148E-FPOE
        - 1.3.6.1.4.1.12356.106.1.2485 # FortiSwitch-248E-POE

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

metric_tags:
  - OID: 1.3.6.1.4.1.12356.106.1.1.1.0
    symbol: fsSysSerial
    tag: fs_sys_serial
  - OID: 1.3.6.1.4.1.12356.106.4.1.1.0
    symbol: fsSysVersion
    tag: fs_sys_version

# https://mibbrowser.online/mibdb_search.php?mib=FORTINET-FORTISWITCH-MIB
# https://github.com/DanielleHuisman/observium-community-edition/blob/main/mibs/fortinet/FORTINET-FORTISWITCH-MIB

metrics:
  - MIB: FORTINET-FORTISWITCH-MIB
    symbol:
      name: cpu.usage # fsSysCpuUsage
      OID: 1.3.6.1.4.1.12356.106.4.1.2.0
      chart_meta:
        description: The current CPU utilization
        family: 'System/CPU/Usage'
        unit: "%"
  - MIB: FORTINET-FORTISWITCH-MIB
    symbol:
      name: memory.used
      OID: 1.3.6.1.4.1.12356.106.4.1.3.0
      scale_factor: 1024
      chart_meta:
        description: Current system memory usage
        family: 'System/Memory/Used'
        unit: "By"
  - MIB: FORTINET-FORTISWITCH-MIB
    symbol:
      name: memory.total
      OID: 1.3.6.1.4.1.12356.106.4.1.4.0
      scale_factor: 1024
      chart_meta:
        description: Total physical memory installed
        family: 'System/Memory/Total'
        unit: "By"
  - MIB: FORTINET-FORTISWITCH-MIB
    symbol:
      name: fsSysDiskUsage
      OID: 1.3.6.1.4.1.12356.106.4.1.5.0
      scale_factor: 1024
      chart_meta:
        description: Current hard disk usage
        family: 'System/Disk/Space/Used'
        unit: "By"
  - MIB: FORTINET-FORTISWITCH-MIB
    symbol:
      name: fsSysDiskCapacity
      OID: 1.3.6.1.4.1.12356.106.4.1.6.0
      scale_factor: 1024
      chart_meta:
        description: Total hard disk capacity
        family: 'System/Disk/Space/Total'
        unit: "By"
