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

metadata:
  device:
    fields:
      vendor:
        value: Avocent
      type:
        value: Console Server

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.10418.26.1.* # Avocent Console Server
        - 1.3.6.1.4.1.10418.26.1.1 # Avocent acs8048
        - 1.3.6.1.4.1.10418.26.1.2 # Avocent acs8032
        - 1.3.6.1.4.1.10418.26.1.3 # Avocent acs8016
        - 1.3.6.1.4.1.10418.26.1.4 # Avocent acs8008
        - 1.3.6.1.4.1.10418.26.1.5 # Avocent acs808
        - 1.3.6.1.4.1.10418.26.1.6 # Avocent acs804
        - 1.3.6.1.4.1.10418.26.1.7 # Avocent acs802

metrics:
  - MIB: ACS8000-MIB
    symbol:
      name: avocent.acsPowerSupplyStatePw1
      OID: 1.3.6.1.4.1.10418.26.2.1.8.2.0
      chart_meta:
        description: State of the first power supply
        family: 'Hardware/PowerSupply/1/Status'
        unit: "{status}"
      mapping:
        statePowerOn: 1
        statePowerOff: 2
        powerNotInstaled: 9999
  - MIB: ACS8000-MIB
    symbol:
      name: avocent.acsPowerSupplyStatePw2
      OID: 1.3.6.1.4.1.10418.26.2.1.8.3.0
      chart_meta:
        description: State of the second power supply
        family: 'Hardware/PowerSupply/2/Status'
        unit: "{status}"
      mapping:
        statePowerOn: 1
        statePowerOff: 2
        powerNotInstaled: 9999
  - MIB: ACS8000-MIB
    symbol:
      name: avocent.acsActiveSessionsNumberOfSession
      OID: 1.3.6.1.4.1.10418.26.2.2.1.0
      chart_meta:
        description: Number of active sessions
        family: 'System/Activity/Session/Active'
        unit: "{session}"
  - MIB: ACS8000-MIB
    table:
      OID: 1.3.6.1.4.1.10418.26.2.3.2
      name: acsSerialPortTable
    symbols:
      - OID: 1.3.6.1.4.1.10418.26.2.3.2.1.3
        name: avocent.acsSerialPortTableStatus
        chart_meta:
          description: The status of the serial port
          family: 'Hardware/SerialPort/Status'
          unit: "{status}"
        mapping:
          1: disabled
          2: idle
          3: in_use
    metric_tags:
      - tag: avocent_acs_serial_port_table_device_name
        symbol:
          name: avocent.acsSerialPortTableDeviceName
          OID: 1.3.6.1.4.1.10418.26.2.3.2.1.2
      - tag: avocent_acs_serial_port_table_name
        symbol:
          name: avocent.acsSerialPortTableName
          OID: 1.3.6.1.4.1.10418.26.2.3.2.1.4
