extends:
  - _system-base.yaml
  - _std-if-mib.yaml

metadata:
  device:
    fields:
      vendor:
        value: "Gigamon"
      #      manufacturer:
      #        symbol:
      #          MIB: GIGAMON-SNMP-MIB
      #          OID: 1.3.6.1.4.1.26866.2.1
      #          name: manufacturer
      model:
        symbol:
          MIB: GIGAMON-SNMP-MIB
          OID: 1.3.6.1.4.1.26866.2.2
          name: model
      serial_number:
        symbol:
          MIB: GIGAMON-SNMP-MIB
          OID: 1.3.6.1.4.1.26866.2.4
          name: serialNumber
      description:
        symbol:
          MIB: GIGAMON-SNMP-MIB
          OID: 1.3.6.1.4.1.26866.2.5
          name: systemDescription

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.26866.3.6

# https://mibbrowser.online/mibdb_search.php?mib=GIGAMON-SNMP-MIB
# https://github.com/DanielleHuisman/observium-community-edition/blob/main/mibs/gigamon/GIGAMON-SNMP-MIB

metrics:
  - MIB: GIGAMON-SNMP-MIB
    symbol:
      name: cpuUtilization
      OID: 1.3.6.1.4.1.26866.2.13
      extract_value: '(\d+)'
      chart_meta:
        description: Cpu usage
        family: 'System/CPU/usage'
        unit: "%"
