zabbix_export:
  version: '5.4'
  date: '2021-11-21T21:54:23Z'
  groups:
    -
      uuid: 7df96b18c230490a9a0a9e2307226338
      name: Templates
  templates:
    -
      uuid: 5a08764674c74d0fadd35b09a5973a65
      template: 'LLD OLT ZTE'
      name: 'LLD OLT ZTE'
      description: |
        ## Overview
        
        Template OLT ZTE com LLD
        
        
         
        
        
        O QUE O TEMPLATE FAZ:
        
        
         
        
        
        - Sinal TX e RX OLT
        
        
        - Status up e down das onu.
        
        
         
        
        
        Feito com a ajuda do **Gabriel Augusto Besteiro.**
        
        
        
        ## Author
        
        Anderson Raber
        
        
      groups:
        -
          name: Templates
      discovery_rules:
        -
          uuid: da74d3fee12c4172b1f29e18a748b869
          name: 'ONU Status'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.4.1.3902.1012.3.28.1.1.2]'
          key: .1.3.6.1.4.1.3902.1012.3.28.1.1.2
          item_prototypes:
            -
              uuid: 1b9b4664ebd8472a9cc0c9a1116977d7
              name: 'OLT RX Signal - {#SNMPVALUE}'
              type: SNMP_AGENT
              snmp_oid: '1.3.6.1.4.1.3902.1012.3.50.12.1.1.14.{#SNMPINDEX}.1'
              key: 'zxoltrxsignal.[{#SNMPINDEX}]'
              history: 30d
              trends: 30d
              value_type: FLOAT
              units: dbm
              preprocessing:
                -
                  type: JAVASCRIPT
                  parameters:
                    - 'return value-10000'
                -
                  type: JAVASCRIPT
                  parameters:
                    - 'return value*0.002-30'
            -
              uuid: 5c668e3319a742a0812bfa252e163ca0
              name: 'OLT TX Signal - {#SNMPVALUE}'
              type: SNMP_AGENT
              snmp_oid: '1.3.6.1.4.1.3902.1012.3.50.12.1.1.10.{#SNMPINDEX}.1'
              key: 'zxolttxsignal.[{#SNMPINDEX}]'
              history: 30d
              trends: 30d
              value_type: FLOAT
              units: dbm
              preprocessing:
                -
                  type: JAVASCRIPT
                  parameters:
                    - 'return value*0.002-30'
            -
              uuid: c1c5b3303bfe4c35ba78cffa0eb504bb
              name: 'ONU Status {#SNMPVALUE}'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.3902.1012.3.28.2.1.2.{#SNMPINDEX}'
              key: 'zxonustatus.[{#SNMPINDEX}]'
              history: 30d
              trends: 30d
              valuemap:
                name: 'Status ONU'
              trigger_prototypes:
                -
                  uuid: c9b865209eb740178619676cf59b23e5
                  expression: 'last(/LLD OLT ZTE/zxonustatus.[{#SNMPINDEX}],#24)>1'
                  name: 'ONU {#SNMPVALUE} is Offline'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    -
                      tag: 'ONU Status'
      valuemaps:
        -
          uuid: 38d8af7fefe2412bb4b4041a0f444b2a
          name: 'Status ONU'
          mappings:
            -
              value: '1'
              newvalue: Online
            -
              value: '2'
              newvalue: Offline
