zabbix_export:
  version: '5.4'
  date: '2021-11-21T21:26:51Z'
  groups:
    -
      uuid: 7df96b18c230490a9a0a9e2307226338
      name: Templates
  templates:
    -
      uuid: 02a67aaf2cd74754b5a48b30bc67469e
      template: 'UPS HDS'
      name: 'UPS HDS'
      description: |
        ## Overview
        
        Coleta via SNMPv2
        
        
        Retorna as informações:
        
        
        Nome do Dispositivo
        
        
        Local do Dispositivo
        
        
        Uptime
        
        
        Status da Bateria
        
        
        Status da saída de energia
        
        
        Voltagem da Bateria
        
        
        Temperatura em °C
        
        
        Frequência da energia de entrada
        
        
        Voltagem de entrada
        
        
        Capacidade da bateria
        
        
        Carga da Bateria
        
        
         
        
        
        Cria o mapeamento de valor:
        
        
        1° UPS Battery Satus
        
        
        1 ⇒ unknown  
        2 ⇒ batteryNormal  
        3 ⇒ batteryLow
        
        
         
        
        
        2° Status saída bateria UPS
        
        
        1 ⇒ unknown  
        2 ⇒ onLine  
        3 ⇒ onBattery  
        4 ⇒ onBoost  
        5 ⇒ sleeping  
        6 ⇒ onBypass  
        <span style="color: #1f2c33; fon
        
        
        
        ## Author
        
        Carlos Eduardo
        
        
      groups:
        -
          name: Templates
      items:
        -
          uuid: ca82e6e46ddf41c382b168da682484a0
          name: 'Device Location'
          type: SNMP_AGENT
          snmp_oid: 'RFC1213-MIB::sysLocation.0'
          key: sysLocation
          delay: '86400'
          trends: '0'
          value_type: TEXT
          description: 'Informa a filial do nobreak.'
          inventory_link: LOCATION
          tags:
            -
              tag: Application
              value: UPS
        -
          uuid: 9aac8f3cd16f49c58334087dd05c55b8
          name: 'Name Device'
          type: SNMP_AGENT
          snmp_oid: 'RFC1213-MIB::sysName.0'
          key: sysName
          delay: '86400'
          history: 30d
          trends: '0'
          value_type: CHAR
          description: 'Informa nome do Dispositivo'
          inventory_link: NAME
          tags:
            -
              tag: Application
              value: UPS
        -
          uuid: 3c7f62c79ebc4bf1bca8ca3836e81196
          name: Uptime
          type: SNMP_AGENT
          snmp_oid: 'RFC1213-MIB::sysUpTime.0'
          key: sysUpTime
          delay: '600'
          trends: 180d
          units: uptime
          description: 'Informa à quanto tempo está on-line'
          tags:
            -
              tag: Application
              value: UPS
        -
          uuid: 8a6c2e1aac3c444683f89b2583d6b05b
          name: 'Status bateria'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.935.1.1.1.2.1.1.0
          key: upsBaseBatteryStatus.0
          delay: '120'
          trends: 180d
          description: |
            Informa o status da Bateria.
            { unknown ( 1 ) , batteryNormal ( 2 ) , batteryLow ( 3 ) }
          valuemap:
            name: 'UPS Battery Status'
          tags:
            -
              tag: Application
              value: Bateria
        -
          uuid: 0ef4eeb907c640a2a16ec05c91d4f079
          name: 'Status saída nobreak'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.935.1.1.1.4.1.1.0
          key: upsBaseOutputStatus.0
          delay: '900'
          trends: 180d
          description: 'Informa o status atual da UPS'
          valuemap:
            name: 'Status saída bateria UPS'
          tags:
            -
              tag: Application
              value: Energia
        -
          uuid: 04228af581f942c9ad56c75bf3e139ce
          name: 'Voltagem Bateria'
          type: SNMP_AGENT
          snmp_oid: 'UPS-MIB::upsBatteryVoltage.0'
          key: upsBatteryVoltage.0
          delay: '1800'
          trends: 180d
          units: Volts
          description: 'Informa a voltagem da Bateria'
          tags:
            -
              tag: Application
              value: Bateria
        -
          uuid: e7424e23d25f4187965b75de430710f0
          name: 'Frequência da Energia de Entrada'
          type: SNMP_AGENT
          snmp_oid: 'UPS-MIB::upsInputFrequency.1'
          key: upsInputFrequency.1
          delay: '120'
          trends: 180d
          units: Hz
          description: 'Informa o valor da frequência da enerfica Input'
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.1'
          tags:
            -
              tag: Application
              value: Energia
        -
          uuid: e49f600cbaf04f2e8147a7ebc645f498
          name: 'Voltagem Entrada de Energia'
          type: SNMP_AGENT
          snmp_oid: 'UPS-MIB::upsInputVoltage.1'
          key: upsInputVoltage.1
          delay: '120'
          trends: 180d
          units: Volts
          tags:
            -
              tag: Application
              value: Energia
        -
          uuid: 29eb1c20804d4adf8dbe6961f0606d6a
          name: 'Capacidade da Bateria'
          type: SNMP_AGENT
          snmp_oid: 'RFC1213-MIB::mib-2.33.1.2.4.0'
          key: upsSmartBatteryCapacity
          delay: '120'
          history: 180d
          trends: 180d
          units: '%'
          description: 'A capacidade restante da bateria expressa em percentagem da capacidade total'
          tags:
            -
              tag: Application
              value: Bateria
          triggers:
            -
              uuid: ad76a591a85345d39a8c383568493f6d
              expression: 'last(/UPS HDS/upsSmartBatteryCapacity)<20'
              name: 'Nível de carga em 20%'
              priority: HIGH
            -
              uuid: 2f497179160149efae55a72064b4c752
              expression: 'last(/UPS HDS/upsSmartBatteryCapacity)<50 and last(/UPS HDS/upsSmartBatteryCapacity)>20'
              name: 'Nível de carga em 50%'
              priority: AVERAGE
              description: 'Capacidade de carga entre 50% e 20%'
        -
          uuid: 73217f3e824d4808936884366ae1308e
          name: 'Temperatura UPS'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.935.1.1.1.2.2.3.0
          key: upsSmartBatteryTemperature.0
          delay: '900'
          history: 60d
          trends: 180d
          units: °C
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.1'
          tags:
            -
              tag: Application
              value: UPS
        -
          uuid: fe60f34219394059aaed898ebedceb22
          name: 'Carga da UPS'
          type: SNMP_AGENT
          snmp_oid: 'RFC1213-MIB::mib-2.33.1.4.4.1.5.1'
          key: upsSmartOutputLoad.0
          delay: '1500'
          trends: 180d
          units: '%'
          description: 'A carga atual do UPS expressa em porcentagem da capacidade nominal.'
          tags:
            -
              tag: Application
              value: Bateria
      macros:
        -
          macro: '{$SNMP_COMMUNITY}'
      valuemaps:
        -
          uuid: c8d61c45b15242bfabd828667da968c4
          name: 'Status saída bateria UPS'
          mappings:
            -
              value: '1'
              newvalue: unknown
            -
              value: '2'
              newvalue: onLine
            -
              value: '3'
              newvalue: onBattery
            -
              value: '4'
              newvalue: onBoost
            -
              value: '5'
              newvalue: sleeping
            -
              value: '6'
              newvalue: onBypass
            -
              value: '7'
              newvalue: rebooting
            -
              value: '8'
              newvalue: standBy
            -
              value: '9'
              newvalue: onBuck
        -
          uuid: fd7a534102474f2ca2b674a82214321c
          name: 'UPS Battery Status'
          mappings:
            -
              value: '1'
              newvalue: unknown
            -
              value: '2'
              newvalue: batteryNormal
            -
              value: '3'
              newvalue: batteryLow
