zabbix_export:
  version: '6.0'
  date: '2021-11-21T21:56:24Z'
  groups:
    -
      uuid: 0f971121042c4759b22ff06916ea6a07
      name: Templates/RPP
  templates:
    -
      uuid: 58c14ed9b00b48c9851b057ed0603830
      template: 'SNMP Riello UPS'
      name: 'SNMP Riello UPS'
      description: |
        ## Overview
        
        Basic Riello UPS Template no MIBs needed
        
        
        
        ## Author
        
        I. Aliaga U.
        
        
      groups:
        -
          name: Templates/RPP
      items:
        -
          uuid: 21e236327b9c4373b180c14b0b5d7fa3
          name: 'Battery Current'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.5491.10.1.2.6.0
          key: rupsBatteryCurrent.0
          delay: 60s
          history: 30d
          trends: 60d
          units: A
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.1'
          tags:
            -
              tag: Application
              value: Batery
        -
          uuid: 7e4246b404824dedab6118115e3d692d
          name: 'Battery Status'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.5491.10.1.2.1.0
          key: rupsBatteryStatus.0
          delay: 60s
          history: 30d
          trends: 60d
          valuemap:
            name: upsBatteryStatus
          tags:
            -
              tag: Application
              value: Batery
        -
          uuid: 1e202131635440239f01f5a94d093e4d
          name: 'Battery Temperature'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.5491.10.1.2.7.0
          key: rupsBatteryTemperature.0
          delay: 60s
          history: 30d
          trends: 60d
          units: ºC
          tags:
            -
              tag: Application
              value: Batery
          triggers:
            -
              uuid: cf5a9f20d44343c1a67cdfe53e3fe8e7
              expression: 'min(/SNMP Riello UPS/rupsBatteryTemperature.0,300s)>45'
              name: 'Temperature of batteries above 45ºC'
              priority: WARNING
              tags:
                -
                  tag: POWER
            -
              uuid: e7dd036ce782480caf2cd992f274d600
              expression: 'min(/SNMP Riello UPS/rupsBatteryTemperature.0,300s)>55'
              name: 'Temperature of batteries above 55ºC'
              priority: HIGH
              description: 'All batteries have a rated capacity which is determined based on specified conditions.  The rated capacity of a UPS battery is based on an ambient temperature of 25°C (77°F).  Operating the UPS under these conditions will maximize the life of the UPS and result in optimal performance.  While a UPS will continue to operate in varying temperatures, it is important to note that this will likely result in diminishing the performance and lifespan of your battery.  A general rule to remember is that for every 8.3°C (15°F) above the ambient temperature of 25°C (77°F), the life of the battery will be reduced by 50 percent.  Therefore, keeping a UPS at a comfortable temperature is crucial to maximizing UPS life and capabilities.'
              tags:
                -
                  tag: POWER
            -
              uuid: e8ed3d1877cb4c26913fcf1bd4fb2dc5
              expression: 'max(/SNMP Riello UPS/rupsBatteryTemperature.0,300s)<15'
              name: 'Temperature of batteries below 15ºC'
              priority: AVERAGE
              description: 'Under 19º battery capacity will get reduced although life will be extended'
              tags:
                -
                  tag: POWER
        -
          uuid: 47fae630aba946aaa31c3b58b767ec8f
          name: 'Battery Voltage'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.5491.10.1.2.5.0
          key: rupsBatteryVoltage.0
          delay: 60s
          history: 30d
          trends: 60d
          units: V
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.1'
          tags:
            -
              tag: Application
              value: Batery
          triggers:
            -
              uuid: 94aeebd46bd2407b9774aa779bc1fb1c
              expression: 'max(/SNMP Riello UPS/rupsBatteryVoltage.0,#2)<({$NOMINAL_VOLTAGE}*0.9)'
              name: 'Battery voltage under {$NOMINAL_VOLTAGE}'
              priority: HIGH
              tags:
                -
                  tag: POWER
        -
          uuid: 190a8c56d81545fb8934a09a0eb08fbf
          name: 'Bypass frequency'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.5491.10.1.5.1.0
          key: rupsBypassFrequency.0
          delay: 60s
          history: 30d
          trends: 60d
          units: Hz
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.1'
          tags:
            -
              tag: Application
              value: 'Bypass Lines'
          triggers:
            -
              uuid: ff95e706266a41fbb0ad1918d6b2a78f
              expression: 'min(/SNMP Riello UPS/rupsBypassFrequency.0,#2)>{$NOMINAL_FREQUENCY}+1 or max(/SNMP Riello UPS/rupsBypassFrequency.0,#2)<{$NOMINAL_FREQUENCY}-1'
              name: 'Bypass frecuency is not {$NOMINAL_FREQUENCY}'
              priority: HIGH
              tags:
                -
                  tag: POWER
        -
          uuid: c070402dedb644fbb5797e2617d237a9
          name: 'Estimated Charge Remaining'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.5491.10.1.2.4.0
          key: rupsEstimatedChargeRemaining.0
          delay: 60s
          history: 30d
          trends: 60d
          units: '%'
          tags:
            -
              tag: Application
              value: 'UPS Status'
          triggers:
            -
              uuid: 9c21ff237b2a48db96b8c6fc2d2314f6
              expression: 'change(/SNMP Riello UPS/rupsEstimatedChargeRemaining.0)>0 and last(/SNMP Riello UPS/rupsEstimatedChargeRemaining.0)<100'
              name: 'Batteries are charging'
              priority: INFO
              tags:
                -
                  tag: POWER
            -
              uuid: f771bf4ec9cc43a4be2337ad37848443
              expression: 'change(/SNMP Riello UPS/rupsEstimatedChargeRemaining.0)<0 and last(/SNMP Riello UPS/rupsEstimatedChargeRemaining.0)>0'
              name: 'Batteries are discharging'
              priority: WARNING
              tags:
                -
                  tag: POWER
        -
          uuid: b53028f18e6a475f8dacd977cd4b7e50
          name: 'Estimated Minutes Remaining'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.5491.10.1.2.3.0
          key: rupsEstimatedMinutesRemaining.0
          delay: 60s
          history: 30d
          trends: 60d
          units: minutes
          tags:
            -
              tag: Application
              value: 'UPS Status'
          triggers:
            -
              uuid: 4514efeb2f3044d7a245dade99c36083
              expression: 'max(/SNMP Riello UPS/rupsEstimatedMinutesRemaining.0,#2)<5'
              name: 'Estimated battery minutes remaining < 5'
              priority: AVERAGE
              tags:
                -
                  tag: POWER
        -
          uuid: efa98368e882423f81809407ab4c2e65
          name: 'Ups Agent Version'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.5491.10.1.1.4.0
          key: rupsIdentAgentSoftwareVersion.0
          delay: 1d
          history: 30d
          trends: '0'
          value_type: CHAR
          inventory_link: SOFTWARE
          tags:
            -
              tag: Application
              value: General
        -
          uuid: 0ad0b353fb41405d8466c17e244c74bd
          name: 'Model name'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.5491.10.1.1.2.0
          key: rupsIdentModel.0
          delay: 1d
          history: 30d
          trends: '0'
          value_type: CHAR
          inventory_link: MODEL
          tags:
            -
              tag: Application
              value: General
        -
          uuid: a3e81a0009bc47939132477a7c567fc6
          name: 'Software version'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.5491.10.1.1.3.0
          key: rupsIdentUPSSoftwareVersion.0
          delay: 1d
          history: 30d
          trends: '0'
          value_type: CHAR
          inventory_link: OS
          tags:
            -
              tag: Application
              value: General
        -
          uuid: 619ba9d487744276b93cd073d76e1e4a
          name: 'Input Line Bads'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.5491.10.1.3.1.0
          key: rupsInputLineBads.0
          delay: 60s
          history: 30d
          trends: 60d
          tags:
            -
              tag: Application
              value: 'Input Lines'
          triggers:
            -
              uuid: c074d9079fc741d69a546df1e6c1cb25
              expression: 'change(/SNMP Riello UPS/rupsInputLineBads.0)>0'
              name: 'Input Line Bads detected'
              priority: WARNING
              tags:
                -
                  tag: POWER
        -
          uuid: 1e590509d1684e5589601df69cdd4980
          name: 'Output frequency'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.5491.10.1.4.2.0
          key: rupsOutputFrequency.0
          delay: 60s
          history: 30d
          trends: 60d
          value_type: FLOAT
          units: Hz
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.1'
          tags:
            -
              tag: Application
              value: 'Output Lines'
          triggers:
            -
              uuid: 827b5e6d99a5494a9b4ec4c50cf3c37f
              expression: 'min(/SNMP Riello UPS/rupsOutputFrequency.0,#2)>{$NOMINAL_FREQUENCY}+1 or max(/SNMP Riello UPS/rupsOutputFrequency.0,#2)<{$NOMINAL_FREQUENCY}-1'
              name: 'Output frecuency is not {$NOMINAL_FREQUENCY}'
              priority: HIGH
              tags:
                -
                  tag: POWER
        -
          uuid: 55e659683c31486993de0272820f16ea
          name: 'Output source'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.5491.10.1.4.1.0
          key: rupsOutputSource.0
          delay: 60s
          history: 30d
          trends: 60d
          valuemap:
            name: upsOutputSource
          tags:
            -
              tag: Application
              value: 'Output Lines'
          triggers:
            -
              uuid: 90408e95ca3f49458ee11f67be1be466
              expression: 'last(/SNMP Riello UPS/rupsOutputSource.0)<>3 and last(/SNMP Riello UPS/rupsOutputSource.0,#2)<>3'
              name: 'Output source has changed!'
              status: DISABLED
              priority: AVERAGE
              tags:
                -
                  tag: POWER
        -
          uuid: be695148345e40eeaab6e5fa8fad47fd
          name: 'Seconds on Battery'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.5491.10.1.2.2.0
          key: rupsSecondsOnBattery.0
          delay: 60s
          history: 30d
          trends: 60d
          units: seconds
          tags:
            -
              tag: Application
              value: 'UPS Status'
        -
          uuid: 687e9ab312eb4b76b96cbc5463c99b96
          name: 'System Temperature'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.5491.10.1.10.1.0
          key: rupsSystemTemperature.0
          delay: 30s
          units: °C
          tags:
            -
              tag: Application
              value: 'UPS Status'
        -
          uuid: 31367c0ea53d404eb66e39f8def6d140
          name: 'Alarms Present'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.5491.10.1.6.1.0
          key: upsAlarmsPresent.0
          delay: 60s
          history: 30d
          trends: 60d
          units: alarms
          tags:
            -
              tag: Application
              value: 'UPS Status'
          triggers:
            -
              uuid: 42141388aace48ad994ebc947d8bccd8
              expression: 'last(/SNMP Riello UPS/upsAlarmsPresent.0)>0'
              name: 'Alarm present!'
              priority: HIGH
              tags:
                -
                  tag: POWER
        -
          uuid: 7600d27cc1e24e62bbc024f423f72f73
          name: 'Agent availability'
          type: INTERNAL
          key: 'zabbix[host,snmp,available]'
          delay: 30s
          history: 7d
          description: 'The agent always returns 1 for this item. It could be used in combination with nodata() for availability check.'
          valuemap:
            name: 'Host availability'
          tags:
            -
              tag: Application
              value: 'SNMP agent'
      discovery_rules:
        -
          uuid: 2e4df86d2dfb4e87934ac7acb6fb1e3d
          name: 'Bypass Lines'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#BYPASSV},.1.3.6.1.4.1.5491.10.1.5.3.1.2]'
          key: BypassLinesD
          delay: 30s
          item_prototypes:
            -
              uuid: af0d333f6e904543bed658cdec046fdb
              name: 'Line {#SNMPINDEX} Bypass Current'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.5491.10.1.5.3.1.3.{#SNMPINDEX}'
              key: 'rupsBypassCurrent[{#SNMPINDEX}]'
              delay: 30s
              value_type: FLOAT
              units: A
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '.1'
              tags:
                -
                  tag: Application
                  value: 'Bypass Lines'
            -
              uuid: 4263251e6e2f4f7089b6ad034ccea77d
              name: 'Line {#SNMPINDEX} Bypass Power'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.5491.10.1.5.3.1.4.{#SNMPINDEX}'
              key: 'rupsBypassPower[{#SNMPINDEX}]'
              delay: 30s
              units: w
              tags:
                -
                  tag: Application
                  value: 'Bypass Lines'
            -
              uuid: 8a71b0eb77fd427eafcbbdb874052b06
              name: 'Line {#SNMPINDEX} Bypass Voltage'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.5491.10.1.5.3.1.2.{#SNMPINDEX}'
              key: 'rupsBypassVoltage[{#SNMPINDEX}]'
              delay: 30s
              units: V
              tags:
                -
                  tag: Application
                  value: 'Bypass Lines'
        -
          uuid: 2fa2dcb8bcc24badb254db425d8c84fb
          name: 'Input Lines'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#INPUTF},.1.3.6.1.4.1.5491.10.1.3.3.1.2]'
          key: InputLinesD
          delay: 30s
          item_prototypes:
            -
              uuid: 220d595a435a4fce82a0dab46159ed79
              name: 'Line {#SNMPINDEX} Input Current'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.5491.10.1.3.3.1.4.{#SNMPINDEX}'
              key: 'rupsInputCurrent.[{#SNMPINDEX}]'
              delay: 30s
              value_type: FLOAT
              units: A
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '.1'
              tags:
                -
                  tag: Application
                  value: 'Input Lines'
            -
              uuid: 79c6a143709f49d8b2c207431c8d1b6f
              name: 'Line {#SNMPINDEX} Input Frequency'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.5491.10.1.3.3.1.2.{#SNMPINDEX}'
              key: 'rupsInputFrequency.[{#SNMPINDEX}]'
              delay: 30s
              value_type: FLOAT
              units: Hz
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '.1'
              tags:
                -
                  tag: Application
                  value: 'Input Lines'
            -
              uuid: 5f201dbe83c34e38b3fbbcadc64d82b5
              name: 'Line {#SNMPINDEX} Input  True Power'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.5491.10.1.3.3.1.5.{#SNMPINDEX}'
              key: 'rupsInputTruePower.[{#SNMPINDEX}]'
              delay: 30s
              units: W
              tags:
                -
                  tag: Application
                  value: 'Input Lines'
            -
              uuid: 8df4d94eac514bb395932ae12b091262
              name: 'Line {#SNMPINDEX} Input  Voltage'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.5491.10.1.3.3.1.3.{#SNMPINDEX}'
              key: 'rupsInputVolage.[{#SNMPINDEX}]'
              delay: 30s
              units: V
              tags:
                -
                  tag: Application
                  value: 'Input Lines'
              trigger_prototypes:
                -
                  uuid: ab5ffeb164754e11857e430064eb4547
                  expression: 'max(/SNMP Riello UPS/rupsInputVolage.[{#SNMPINDEX}],#2)<({$NOMINAL_VOLTAGE}*0.9)'
                  name: 'Bypass voltage on line {#SNMPINDEX} below {$NOMINAL_VOLTAGE}'
                  priority: HIGH
        -
          uuid: 7e3fcee0342b4025809788f157a110a1
          name: 'Output Lines'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#OUTPUTV},.1.3.6.1.4.1.5491.10.1.4.4.1.2]'
          key: OutputLinesD
          delay: 30s
          item_prototypes:
            -
              uuid: 7619bb857ae54cb88c2b95836346d51c
              name: 'Line {#SNMPINDEX} Output Current'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.5491.10.1.4.4.1.3.{#SNMPINDEX}'
              key: 'rupsOutputCurrent.[{#SNMPINDEX}]'
              delay: 30s
              value_type: FLOAT
              units: A
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '.1'
              tags:
                -
                  tag: Application
                  value: 'Output Lines'
            -
              uuid: 9c2e842ae8434136955086f802254fdc
              name: 'Line {#SNMPINDEX} Output Peak Current'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.5491.10.1.4.4.1.6.{#SNMPINDEX}'
              key: 'rupsOutputPeakCurrent.[{#SNMPINDEX}]'
              delay: 30s
              value_type: FLOAT
              units: A
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '.1'
              tags:
                -
                  tag: Application
                  value: 'Output Lines'
            -
              uuid: 77b47205ee824595be4e29dce072e2cf
              name: 'Line {#SNMPINDEX} Output % Load'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.5491.10.1.4.4.1.5.{#SNMPINDEX}'
              key: 'rupsOutputPercetLoad.[{#SNMPINDEX}]'
              delay: 30s
              units: '%'
              tags:
                -
                  tag: Application
                  value: 'Output Lines'
            -
              uuid: 3a63c810904548a69f36101f2d1ca6f3
              name: 'Line {#SNMPINDEX} Output Power'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.5491.10.1.4.4.1.4.{#SNMPINDEX}'
              key: 'rupsOutputPower.[{#SNMPINDEX}]'
              delay: 30s
              units: w
              tags:
                -
                  tag: Application
                  value: 'Output Lines'
            -
              uuid: b3717ea2f15748e1a62cc0b0d20269d6
              name: 'Line {#SNMPINDEX} Output Voltage'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.5491.10.1.4.4.1.2.{#SNMPINDEX}'
              key: 'rupsOutputVoltage.[{#SNMPINDEX}]'
              delay: 30s
              units: V
              tags:
                -
                  tag: Application
                  value: 'Output Lines'
      macros:
        -
          macro: '{$NOMINAL_FREQUENCY}'
          value: '60'
        -
          macro: '{$NOMINAL_VOLTAGE}'
          value: '230'
      valuemaps:
        -
          uuid: b942e0d4393d4542a966cf3ff921f8a5
          name: 'Host availability'
          mappings:
            -
              value: '0'
              newvalue: 'not available'
            -
              value: '1'
              newvalue: available
            -
              value: '2'
              newvalue: unknown
        -
          uuid: 0ca972d3aec34ce599f062426ab9a050
          name: upsBatteryStatus
          mappings:
            -
              value: '1'
              newvalue: Unknown
            -
              value: '2'
              newvalue: Normal
            -
              value: '3'
              newvalue: Low
            -
              value: '4'
              newvalue: Depleted
        -
          uuid: ca75388095f44001a3e5a32ffe7863de
          name: upsOutputSource
          mappings:
            -
              value: '1'
              newvalue: Other
            -
              value: '2'
              newvalue: None
            -
              value: '3'
              newvalue: Normal
            -
              value: '4'
              newvalue: Bypass
            -
              value: '5'
              newvalue: Battery
            -
              value: '6'
              newvalue: Booster
            -
              value: '7'
              newvalue: Reducer
  graphs:
    -
      uuid: 47c800f1f25744b9800a8f6d45485579
      name: 'Battery Status'
      graph_items:
        -
          drawtype: BOLD_LINE
          color: 1A7C11
          item:
            host: 'SNMP Riello UPS'
            key: rupsBatteryStatus.0
    -
      uuid: d7fecb2c86e04dd093bf510e77061fd5
      name: 'Battery Temperature'
      graph_items:
        -
          drawtype: BOLD_LINE
          color: 1A7C11
          item:
            host: 'SNMP Riello UPS'
            key: rupsBatteryTemperature.0
