zabbix_export:
  version: '6.0'
  date: '2021-11-21T22:07:59Z'
  groups:
    -
      uuid: f90fe16699b04292b0448b4857bb92fd
      name: Retificadores
  templates:
    -
      uuid: 0ab074d81c7c41548f08bf84d6d3d7a7
      template: Vertiv
      name: Vertiv
      description: |
        ## Overview
        
        https://github.com/Mihguel-Araujo/Template-Zabbix/blob/main/Template%20Vertiv
        
        
        
        ## Author
        
        Mihguel da Silva Santos Tavares de Araujo
        
        
      groups:
        -
          name: Retificadores
      items:
        -
          uuid: 934ce79a8277479eb3b49b87b1449e80
          name: 'Battery 2 Capacity'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.5.8.0'
          key: fBattery2Capacity
          units: '%'
          tags:
            -
              tag: Application
              value: Operational
          triggers:
            -
              uuid: 9d9e47c84cbf41dcae7ccbdd7ed37af0
              expression: 'last(/Vertiv/fBattery2Capacity,#2)<99'
              name: 'Battery 2 Capacity on {HOST.NAME}'
              priority: HIGH
        -
          uuid: 0ea9c7e39361470bb4fccf7389f2b617
          name: 'Battery 1 Capacity'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.5.3.0'
          key: ifBattery1Capacity
          units: '%'
          tags:
            -
              tag: Application
              value: Operational
          triggers:
            -
              uuid: 79ccda81215946d7b6523b1c291d0e8f
              expression: 'last(/Vertiv/ifBattery1Capacity,#1)<90'
              name: 'Battery 1 Capacity on {HOST.NAME}'
              priority: HIGH
            -
              uuid: abddf06b6ae841efab25691d6ce80309
              expression: 'last(/Vertiv/ifBattery1Capacity,#1)<50'
              name: 'Battery 1 on Half {HOST.NAME}'
              priority: HIGH
        -
          uuid: 57d699d750074679908a4dea8ca3737c
          name: 'Battery 1 Current'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.5.2.0'
          key: ifBattery1Current
          value_type: FLOAT
          units: A
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: 65271e7a8b724528a9561a2437aae02a
          name: 'Battery 2 Current'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.5.7.0'
          key: ifBattery2Current
          value_type: FLOAT
          units: A
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: 44330891b8f54d1bbf312b780e289046
          name: 'Battery Voltage'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.5.1.0'
          key: ifBatteryVoltage
          value_type: FLOAT
          units: V
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: 51dd2a0c83764afd82e0e9e659d583d8
          name: 'Capacidade da Bateria (%)'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.5.13.0'
          key: ifCapacidadeBateria
          value_type: FLOAT
          units: '%'
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
          triggers:
            -
              uuid: 73473d4d0d8e4eee9d54a3ccc4cdeabe
              expression: 'last(/Vertiv/ifCapacidadeBateria,#1)<90'
              name: 'Bateria Descarregando {HOST.NAME}'
              status: DISABLED
              priority: HIGH
              manual_close: 'YES'
            -
              uuid: fad3e4a3863743c7a24880d9d1c12e6e
              expression: 'last(/Vertiv/ifCapacidadeBateria,#1)<50'
              name: 'Bateria Na Metade {HOST.NAME}'
              status: DISABLED
              priority: DISASTER
              manual_close: 'YES'
        -
          uuid: 9470831529f1485ab2e0c947b05eeb66
          name: 'System Current'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.3.0'
          key: ifSystemCurrent
          value_type: FLOAT
          units: A
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: aafbf29c04ab4ca29f73b467fa83f1ae
          name: 'System Status'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.1.0'
          key: ifSystemStatus
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: 5aa81b59f30848bfb80f30f1f8914560
          name: 'System Used Capacity'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.4.0'
          key: ifSystemUsedCapacity
          value_type: FLOAT
          units: '%'
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: 665d400b33454600aa896bc9efc86651
          name: 'System Voltage'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.2.0'
          key: ifSystemVoltage
          value_type: FLOAT
          units: V
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: 330dfc28b5f949ab8fc351a7dd9f95cb
          name: psTemperature1
          type: SNMP_AGENT
          snmp_oid: 1.3.6.1.4.1.6302.2.1.2.7.1.0
          key: 'ps1.temperature[upsHighPrecBatteryTemperature]'
          history: 7d
          value_type: FLOAT
          units: ℃
          description: |
            MIB: PowerNet-MIB
            The current internal UPS temperature in Celsius.
             Temperatures below zero read as 0.
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: 490a98f7d6a848298261c812bdb86e31
          name: psTemperature2
          type: SNMP_AGENT
          snmp_oid: 1.3.6.1.4.1.6302.2.1.2.7.2.0
          key: 'ps2.temperature[upsHighPrecBatteryTemperature]'
          history: 7d
          value_type: FLOAT
          units: ℃
          description: |
            MIB: PowerNet-MIB
            The current internal UPS temperature in Celsius.
             Temperatures below zero read as 0.
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: b7b7146291c44ae88005b4ac3d33d554
          name: psStatusBatteryMode
          type: SNMP_AGENT
          snmp_oid: 1.3.6.1.4.1.6302.2.1.2.9.0
          key: 'psbattery.status[upsBasicBatteryStatus]'
          history: 7d
          description: |
            MIB: PowerNet-MIB
            The status of the UPS batteries. A batteryLow(3) value
             indicates the UPS will be unable to sustain the current
             load, and its services will be lost if power is not restored.
             The amount of run time in reserve at the time of low battery
             can be configured by the upsAdvConfigLowBatteryRunTime.
             A batteryInFaultCondition(4)value indicates that a battery
             installed has an internal error condition.
          valuemap:
            name: 'PowerNet-MIB::upsBasicBatteryStatus'
          preprocessing:
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
          triggers:
            -
              uuid: 16ee95d0b1dc475a9759bcc0d076e699
              expression: 'last(/Vertiv/psbattery.status[upsBasicBatteryStatus])=3'
              name: 'The battery power is too low to support the load on {HOST.NAME}'
              priority: DISASTER
        -
          uuid: e7bfbfb1be714f9d8731fd536c4940ad
          name: 'Input Line A Current'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.6.4.0'
          key: psInputLineACurrent
          value_type: FLOAT
          units: A
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: 72ced3609faa47bfb495713956a7dd2d
          name: 'Input Line A Voltage'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.6.1.0'
          key: psInputLineAVoltage
          value_type: FLOAT
          units: V
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: 57aabbd3ad5c447786a1a53ac25710d8
          name: 'Input Line B Current'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.6.5.0'
          key: psInputLineBCurrent
          value_type: FLOAT
          units: A
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: f75a092757874e249643c834e213f23d
          name: 'Input Line B Voltage'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.6.2.0'
          key: psInputLineBVoltage
          value_type: FLOAT
          units: V
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: 3675db8261d340a39613782040be40b7
          name: 'Input Line C Current'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.6.6.0'
          key: psInputLineCCurrent
          value_type: FLOAT
          units: A
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: e1be1ed953dd419080e3460904f48d22
          name: 'Input Line C Voltage'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.6.3.0'
          key: psInputLineCVoltage
          value_type: FLOAT
          units: V
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: 6f469e56f512497998d1f10bf520d216
          name: psSystemTotalACEnergy
          type: SNMP_AGENT
          snmp_oid: 1.3.6.1.4.1.6302.2.1.2.11.11.0
          key: psSystemTotalACEnergy
          value_type: FLOAT
          units: kWh
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: e4a7b081654d48d0bc7e05cc4f17d985
          name: psSystemTotalDCEnergy
          type: SNMP_AGENT
          snmp_oid: 1.3.6.1.4.1.6302.2.1.2.11.12.0
          key: psSystemTotalDCEnergy
          value_type: FLOAT
          units: kWh
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: ef1a479229c8404da993037d1790a1af
          name: 'Total Load Current'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.12.1.0'
          key: psTotalLoadCurrent
          value_type: FLOAT
          units: A
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            -
              tag: Application
              value: Operational
        -
          uuid: 52a36f7e474c42b28c8f12ebf5ca986c
          name: 'Capacidade Usada dos Retificadores'
          type: SNMP_AGENT
          snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.11.3.0'
          key: rectifiersUsedCapacity
          units: '%'
          tags:
            -
              tag: Application
              value: Operational
      discovery_rules:
        -
          uuid: f5c1e5a8699641429f616df99e4c731e
          name: 'Alarms Description'
          type: SNMP_AGENT
          snmp_oid: 'discover[{#DESCR},SNMPv2-SMI::enterprises.6302.2.1.4.1.5]'
          key: ifAlarmDescription
          lifetime: '0'
          item_prototypes:
            -
              uuid: 5cc0f4f71937479389cfaf39a16f8ab7
              name: '{#DESCR}'
              type: SNMP_AGENT
              snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.4.1.4.{#SNMPINDEX}'
              key: 'if[{#DESCR}]'
              valuemap:
                name: AlarmVertiv
              preprocessing:
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1m
              tags:
                -
                  tag: Application
                  value: Operational
              trigger_prototypes:
                -
                  uuid: 7adc1b70895f4ce5b3a9e0da992e0c6c
                  expression: 'last(/Vertiv/if[{#DESCR}])=6'
                  name: '{#DESCR} - CRITICAL'
                  priority: HIGH
                  manual_close: 'YES'
                -
                  uuid: fd349a1f0982449ebe67e7b5a5cfd562
                  expression: 'last(/Vertiv/if[{#DESCR}])=3'
                  name: '{#DESCR} - WARNING'
                  priority: AVERAGE
                  manual_close: 'YES'
        -
          uuid: 28f4e7bc4f174db7aed0becdfec7d12a
          name: Battery
          type: SNMP_AGENT
          snmp_oid: 'discover[{#IFBATTERY},SNMPv2-SMI::enterprises.6302.2.1.2.5.5.1.3]'
          key: ifBattery
          lifetime: 1h
          item_prototypes:
            -
              uuid: 29054bae0aac4757b5978239c3e2724d
              name: '{#IFBATTERY} - Capacidade'
              type: SNMP_AGENT
              snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.5.5.1.4.{#SNMPINDEX}'
              key: 'ifBatteryRating[{#IFBATTERY}]'
              units: Ah
              description: 'Tipo de Bateria Utilizada'
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '0.001'
              tags:
                -
                  tag: Application
                  value: Inform
        -
          uuid: 4897555bf68f4c7e937d3793bc21e727
          name: Retificadores
          type: SNMP_AGENT
          snmp_oid: 'discover[{#IFDESCR},SNMPv2-SMI::enterprises.6302.2.1.2.11.4.1.7]'
          key: ifRetificadores
          lifetime: 1h
          item_prototypes:
            -
              uuid: 64e5dae6c34e487d9d3b46a2f78a4dab
              name: '{#IFDESCR} - Capacidade da Corrente'
              type: SNMP_AGENT
              snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.11.4.1.6.{#SNMPINDEX}'
              key: 'ifCurrentCapacity[{#IFDESCR}]'
              delay: 1h
              value_type: FLOAT
              units: A
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '0.001'
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                -
                  tag: Application
                  value: Operational
            -
              uuid: 636176828c11461f8dc9f4ea83e51d5d
              name: '{#IFDESCR} - Falha no Retificador'
              type: SNMP_AGENT
              snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.11.4.1.8.{#SNMPINDEX}'
              key: 'ifFailRectifyer[{#IFDESCR}]'
              delay: 1h
              valuemap:
                name: 'PostgreSQL recovery role'
              tags:
                -
                  tag: Application
                  value: Operational
              trigger_prototypes:
                -
                  uuid: f65dca940ed5482eac4076f3023b2370
                  expression: 'last(/Vertiv/ifFailRectifyer[{#IFDESCR}])<>2'
                  name: 'Falha no Retificador'
                  priority: HIGH
            -
              uuid: 63786799aa5b4232904f05f6facfb3e9
              name: 'Hardware Version {#IFDESCR}'
              type: SNMP_AGENT
              snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.11.4.1.3.{#SNMPINDEX}'
              key: 'ifHardwareVersion[{#IFDESCR}]'
              delay: 1h
              trends: '0'
              value_type: CHAR
              tags:
                -
                  tag: Application
                  value: Inform
            -
              uuid: 44591eacb27346bd9b8d5bdcc7b36a65
              name: 'Product Model {#IFDESCR}'
              type: SNMP_AGENT
              snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.11.4.1.2.{#SNMPINDEX}'
              key: 'ifProducModel[{#IFDESCR}]'
              delay: 1h
              trends: '0'
              value_type: CHAR
              tags:
                -
                  tag: Application
                  value: Inform
            -
              uuid: 9e18ca5f5b034bbcb5b90feed5d1dad8
              name: 'Software Revision {#IFDESCR}'
              type: SNMP_AGENT
              snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.11.4.1.4.{#SNMPINDEX}'
              key: 'ifSoftwareRevision[{#IFDESCR}]'
              delay: 1h
              trends: '0'
              value_type: CHAR
              tags:
                -
                  tag: Application
                  value: Inform
            -
              uuid: 9fbb31827ab842bd8583668e56a53e39
              name: '{#IFDESCR} - Temperature'
              type: SNMP_AGENT
              snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.11.4.1.9.{#SNMPINDEX}'
              key: 'ifTemperatura[{#IFDESCR}]'
              delay: 1h
              value_type: FLOAT
              units: ℃
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '0.001'
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                -
                  tag: Application
                  value: Operational
            -
              uuid: 0313ea7b8cd2464da99a084a5bacf576
              name: 'Serial {#IFDESCR}'
              type: SNMP_AGENT
              snmp_oid: 'SNMPv2-SMI::enterprises.6302.2.1.2.11.4.1.5.{#SNMPINDEX}'
              key: 'serial[{#IFDESCR}]'
              delay: 1h
              trends: '0'
              value_type: CHAR
              tags:
                -
                  tag: Application
                  value: Inform
      macros:
        -
          macro: '{$HOSTNAME}'
          value: '{#IFHOSTNAME}'
          description: HOSTNAME
      valuemaps:
        -
          uuid: 9dd0215d4c6d493f915184167a834257
          name: AlarmVertiv
          mappings:
            -
              value: '3'
              newvalue: Warning
            -
              value: '6'
              newvalue: Critical
        -
          uuid: c3efb559b7564c4d810e16f09b2c8fa7
          name: 'PostgreSQL recovery role'
          mappings:
            -
              value: '0'
              newvalue: Master
            -
              value: '1'
              newvalue: Standby
        -
          uuid: 8f27052975dc4559bf0717b597fe79ab
          name: 'PowerNet-MIB::upsBasicBatteryStatus'
          mappings:
            -
              value: '1'
              newvalue: Unknown
            -
              value: '2'
              newvalue: Normal
            -
              value: '3'
              newvalue: Low
            -
              value: '4'
              newvalue: 'In Fault Condition'
