extends:
  - _system-base.yaml
  - _std-if-mib.yaml
  - _std-host-resources-mib-feat-base.yaml

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.25597.1

metadata:
  device:
    fields:
      vendor:
        value: "Fireeye"

metric_tags:
  - tag: fe_hardware_model
    OID: 1.3.6.1.4.1.25597.11.1.1.2.0
    symbol: feHardwareModel
  - tag: fe_serial_number
    OID: 1.3.6.1.4.1.25597.11.1.1.3.0
    symbol: feSerialNumber

# https://mibbrowser.online/mibdb_search.php?mib=FE-FIREEYE-MIB
# https://github.com/DanielleHuisman/observium-community-edition/blob/main/mibs/fireeye/FE-FIREEYE-MIB

metrics:
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.11.5.1.10.0
      name: feProductLicenseActive
      chart_meta:
        description: Whether the product license is active
        family: 'System/License/Status'
        unit: "{status}"
      mapping:
        true: 1
        false: 2
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.11.1.1.6.0
      name: feIsTemperatureNormal
      chart_meta:
        description: Whether or not the temperature is normal
        family: 'Hardware/Temperature/Status'
        unit: "{status}"
      mapping:
        true: 1
        false: 2
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.11.2.1.2.0
      name: feRaidIsHealthy
      chart_meta:
        description: Whether or not RAID is healthy overall
        family: 'Hardware/RAID/Status'
        unit: "{status}"
      mapping:
        true: 1
        false: 2
  - MIB: FE-FIREEYE-MIB
    table:
      OID: 1.3.6.1.4.1.25597.11.2.1.3
      name: fePhysicalDiskTable
    symbols:
      - OID: 1.3.6.1.4.1.25597.11.2.1.3.1.4
        name: fePhysicalDiskIsHealthy
        chart_meta:
          description: Whether a physical disk is healthy
          family: 'Hardware/Disk/Status'
          unit: "{status}"
        mapping:
          true: 1
          false: 2
    metric_tags:
      - tag: fe_physical_disk_name
        symbol:
          OID: 1.3.6.1.4.1.25597.11.2.1.3.1.2
          name: fePhysicalDiskName

  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.11.3.1.2.0
      name: fePowerSupplyOverallIsHealthy
      chart_meta:
        description: Whether or not power supply is healthy overall
        family: 'Hardware/Power/Status'
        unit: "{status}"
      mapping:
        true: 1
        false: 2
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.11.4.1.2.0
      name: feFanOverallIsHealthy
      chart_meta:
        description: Whether or not fan is healthy overall
        family: 'Hardware/Fan/Status'
        unit: "{status}"
      mapping:
        true: 1
        false: 2
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.13.1.1.0
      name: feTotalEmailCount
      chart_meta:
        description: Count of all emails coming into postfix including those without URL or attachment
        family: 'Security/Email/Total'
        unit: "{email}/s"
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.13.1.4.0
      name: feInfectedEmailCount
      chart_meta:
        description: Count of all emails determined to be malicious
        family: 'Security/Email/Malicious'
        unit: "{email}/s"
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.13.1.7.0
      name: feAnalyzedEmailCount
      chart_meta:
        description: Cumulative count of all emails analyzed
        family: 'Security/Email/Analyzed'
        unit: "{email}/s"
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.13.1.10.0
      name: feTotalUrlCount
      chart_meta:
        description: Count of all URLs received whether processed or not
        family: 'Security/URL/Total'
        unit: "{url}/s"
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.13.1.13.0
      name: feInfectedUrlCount
      chart_meta:
        description: Count of all URLs determined to be malicious
        family: 'Security/URL/Malicious'
        unit: "{url}/s"
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.13.1.16.0
      name: feAnalyzedUrlCount
      chart_meta:
        description: Cumulative count of all URLs analyzed
        family: 'Security/URL/Analyzed'
        unit: "{url}/s"
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.13.1.19.0
      name: feTotalAttachmentCount
      chart_meta:
        description: Count of all attachments received whether processed or not
        family: 'Security/Attachment/Total'
        unit: "{attachment}/s"
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.13.1.22.0
      name: feInfectedAttachmentCount
      chart_meta:
        description: Count of all attachments determined to be malicious
        family: 'Security/Attachment/Malicious'
        unit: "{attachment}/s"
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.13.1.25.0
      name: feAnalyzedAttachmentCount
      chart_meta:
        description: Cumulative count of all attachments analyzed for maliciousness
        family: 'Security/Attachment/Analyzed'
        unit: "{attachment}/s"
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.13.1.40.0
      name: feeQuarantineUsage
      chart_meta:
        description: Consumed capacity as percentage of max capacity
        family: 'Security/Quarantine/Usage'
        unit: "%"
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.13.1.44.0
      name: feDeferredEmailCount
      chart_meta:
        description: Count of deferred emails representing current snapshot value
        family: 'Security/Email/Queue/Deferred'
        unit: "{email}"
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.13.1.45.0
      name: feHoldQueueEmailCount
      chart_meta:
        description: Count of emails in the hold queue representing current snapshot value
        family: 'Security/Email/Queue/Hold'
        unit: "{email}"
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.15.1.1.0
      name: feTotalObjectAnalyzedCount
      chart_meta:
        description: Count of all objects analyzed including all children of any samples
        family: 'Security/Object/Analyzed'
        unit: "{object}/s"
  - MIB: FE-FIREEYE-MIB
    symbol:
      OID: 1.3.6.1.4.1.25597.15.1.4.0
      name: feTotalMaliciousObjectCount
      chart_meta:
        description: Count of all malicious samples detected
        family: 'Security/Object/Malicious'
        unit: "{object}/s"
