extends:
  - _system-base.yaml
  - _std-if-mib.yaml
  - _cisco-metadata.yaml
  # This profile does not import cisco.yaml on purpose

metadata:
  device:
    fields:
      type:
        value: Firewall/Firepower
      vendor:
        value: Cisco

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.9.1.2404 # Cisco FPR 2110td
        - 1.3.6.1.4.1.9.1.2405 # Cisco FPR 2120td
        - 1.3.6.1.4.1.9.1.2406 # Cisco FPR 2130td
        - 1.3.6.1.4.1.9.1.2407 # Cisco FPR 2140td
        - 1.3.6.1.4.1.9.1.2778 # Cisco FPR 4125 K9
        - 1.3.6.1.4.1.9.1.2292 # Cisco FPR 4150 K9
        # Following sysObjectID requires more investigation to be certain if we should include it:
        # - 1.3.6.1.4.1.9.12.3.1.3.1788    # Cisco FPR 4120

metrics:
  - MIB: CISCO-PROCESS-MIB
    table:
      OID: 1.3.6.1.4.1.9.9.109.1.1.1
      name: cpmCPUTotalTable
    symbols:
      - OID: 1.3.6.1.4.1.9.9.109.1.1.1.1.7 # cpmCPUTotal1minRev
        name: cpu.usage
        chart_meta:
          description: The current CPU utilization
          family: 'System/CPU/Usage'
          unit: "%"
    metric_tags:
      - tag: cpu_index
        index: 1 # cpmCPUTotalIndex

  - MIB: CISCO-FIREPOWER-SM-MIB
    table:
      OID: 1.3.6.1.4.1.9.9.826.1.71.20
      name: cfprSmMonitorTable
    symbols:
      - OID: 1.3.6.1.4.1.9.9.826.1.71.20.1.21 # cfprSmMonitorMemFree
        name: memory.free
        chart_meta:
          description: Memory free
          family: 'System/Memory/Free'
          unit: "By"
      - OID: 1.3.6.1.4.1.9.9.826.1.71.20.1.23 # cfprSmMonitorMemUsed
        name: memory.used
        chart_meta:
          description: Memory used
          family: 'System/Memory/Used'
          unit: "By"
    metric_tags:
      - tag: mem_index
        index: 1 # cfprSmMonitorInstanceId
  - MIB: CISCO-FIREPOWER-SM-MIB
    table:
      OID: 1.3.6.1.4.1.9.9.826.1.71.20
      name: cfprSmMonitorTable
    symbols:
      - OID: 1.3.6.1.4.1.9.9.826.1.71.20.1.17
        name: cfprSmMonitorDataDiskAvailable
        chart_meta:
          description: Data disk available
          family: 'System/Disk/Data/Available'
          unit: "By"
        scale_factor: 1024
      - OID: 1.3.6.1.4.1.9.9.826.1.71.20.1.18
        name: cfprSmMonitorDataDiskTotal
        chart_meta:
          description: Data disk total
          family: 'System/Disk/Data/Total'
          unit: "By"
        scale_factor: 1024
    metric_tags:
      - tag: cfpr_sm_monitor_dn
        symbol:
          OID: 1.3.6.1.4.1.9.9.826.1.71.20.1.2
          name: cfprSmMonitorDn
  - MIB: CISCO-FIREPOWER-EQUIPMENT-MIB
    table:
      OID: 1.3.6.1.4.1.9.9.826.1.20.34
      name: cfprEquipmentFanTable
    symbols:
      - OID: 1.3.6.1.4.1.9.9.826.1.20.34.1.10
        name: cfprEquipmentFanOperState
        chart_meta:
          description: Equipment/Fans
          family: 'Hardware/Fan/Operational/Status'
          unit: "{status}"
        mapping:
          0: unknown
          1: operable
          2: inoperable
          3: degraded
          4: powered_off
          5: power_problem
          6: removed
          7: voltage_problem
          8: thermal_problem
          9: performance_problem
          10: accessibility_problem
          11: identity_unestablishable
          12: bios_post_timeout
          13: disabled
          14: malformed_fru
          51: fabric_conn_problem
          52: fabric_unsupported_conn
          81: config
          82: equipment_problem
          83: decomissioning
          84: chassis_limit_exceeded
          100: not_supported
          101: discovery
          102: discovery_failed
          103: identify
          104: post_failure
          105: upgrade_problem
          106: peer_comm_problem
          107: auto_upgrade
          108: link_activate_blocked
    metric_tags:
      - tag: cfpr_equipment_fan_dn
        symbol:
          OID: 1.3.6.1.4.1.9.9.826.1.20.34.1.2
          name: cfprEquipmentFanDn
  - MIB: CISCO-FIREPOWER-EQUIPMENT-MIB
    table:
      OID: 1.3.6.1.4.1.9.9.826.1.20.109
      name: cfprEquipmentPsuTable
    symbols:
      - OID: 1.3.6.1.4.1.9.9.826.1.20.109.1.13
        name: cfprEquipmentPsuPower
        chart_meta:
          description: Psu power state
          family: 'Hardware/PowerSupply/Power/Status'
          unit: "{status}"
        mapping:
          0: unknown
          1: on
          2: test
          3: off
          4: online
          5: offline
          6: offduty
          7: degraded
          8: power_save
          9: error
          10: ok
          11: failed
          12: oir_failed
          13: oir_invalid
          100: not_supported
    metric_tags:
      - tag: cfpr_equipment_psu_dn
        symbol:
          OID: 1.3.6.1.4.1.9.9.826.1.20.109.1.2
          name: cfprEquipmentPsuDn
