zabbix_export:
  version: '6.0'
  date: '2021-11-21T22:08:53Z'
  groups:
    -
      uuid: 9b450eb2b60e45f68571917b0658ce35
      name: 'Template/Rede de dados'
  templates:
    -
      uuid: 4e2e6a0e7ae64b70a2270f8650e5a482
      template: Peplink
      name: Peplink
      description: |
        ## Overview
        
        *** LLD - SPEEDFUSION IN USE BY NAME**
        
        
        - Item prototype - Speedfusion status
        
        
        *** LLD - WAN IN USE BY NAME**
        
        
        - Item prototype - Status wan
        
        
        - Item prototype - Health check
        
        
        
        ## Author
        
        Brunno Freitas Santos
        
        
      groups:
        -
          name: 'Template/Rede de dados'
      discovery_rules:
        -
          uuid: da9e90fe6e964e969039d0b3f8b906b4
          name: Discovery_VPN
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#PEPVPNNAME}, .1.3.6.1.4.1.23695.200.1.10.1.1.2.1.2]'
          key: pepVpnStatusId
          delay: 30s
          item_prototypes:
            -
              uuid: ffc1ad21fba14c1190c7f8f63f870718
              name: 'Status on {#PEPVPNNAME}'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.23695.200.1.10.1.1.2.1.3.{#SNMPINDEX}'
              key: 'pepVpnStatusConnectionState[{#PEPVPNNAME}]'
              delay: 30s
              history: 30d
              trends: '0'
              valuemap:
                name: PEPVPNSTATUS
              tags:
                -
                  tag: Application
                  value: VPN
              trigger_prototypes:
                -
                  uuid: d80e1670334f409abfabb6b766dfc324
                  expression: 'last(/Peplink/pepVpnStatusConnectionState[{#PEPVPNNAME}])<>4'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'last(/Peplink/pepVpnStatusConnectionState[{#PEPVPNNAME}])=4'
                  name: '{HOST.NAME} Status SpeedFusion on {#PEPVPNNAME}'
                  priority: HIGH
        -
          uuid: 2b41307ced9346ecabe2d7bcbe1c9f60
          name: Discovery_WAN
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#WANNAME}, 1.3.6.1.4.1.23695.2.1.2.1.2]'
          key: wanName
          delay: 30s
          item_prototypes:
            -
              uuid: fcb0e971be8c480587a03475fb576274
              name: 'Health Check on {#WANNAME}'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.23695.2.1.2.1.4.{#SNMPINDEX}'
              key: 'wanHealthCheckState[{#WANNAME}]'
              delay: 30s
              history: 30d
              valuemap:
                name: PEPWANHEALTH
              tags:
                -
                  tag: Application
                  value: WAN
            -
              uuid: 44dbec710b87462a996bc41267ff9d58
              name: 'Status on {#WANNAME}'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.23695.2.1.2.1.3.{#SNMPINDEX}'
              key: 'wanState[{#WANNAME}]'
              history: 30d
              valuemap:
                name: PEPWANSTATUS
              tags:
                -
                  tag: Application
                  value: WAN
              trigger_prototypes:
                -
                  uuid: 2b1092897d8f4ebe960a713fc89c9f4b
                  expression: |
                    last(/Peplink/wanState[{#WANNAME}])<>3
                    and last(/Peplink/wanState[{#WANNAME}])<>1
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'last(/Peplink/wanState[{#WANNAME}])=3 or  last(/Peplink/wanState[{#WANNAME}])=1'
                  name: '{HOST.NAME} : {#WANNAME} Link down'
                  priority: HIGH
      valuemaps:
        -
          uuid: 422b557d20514cfe82742f01ed7de112
          name: PEPVPNSTATUS
          mappings:
            -
              value: '0'
              newvalue: Start
            -
              value: '1'
              newvalue: Authen
            -
              value: '2'
              newvalue: Tunnel
            -
              value: '3'
              newvalue: Route
            -
              value: '4'
              newvalue: Connected
        -
          uuid: 8625380a97dd48fc93822e3dff9d8c92
          name: PEPWANHEALTH
          mappings:
            -
              value: '0'
              newvalue: Fail
            -
              value: '1'
              newvalue: Success
        -
          uuid: 104d10d5aa24486e9753f967c6287bf1
          name: PEPWANSTATUS
          mappings:
            -
              value: '0'
              newvalue: Unknown
            -
              value: '1'
              newvalue: Disable
            -
              value: '2'
              newvalue: Disconnect
            -
              value: '3'
              newvalue: Connected
            -
              value: '5'
              newvalue: Activating
            -
              value: '6'
              newvalue: Health-check-fail
            -
              value: '7'
              newvalue: Disconnected-manually
            -
              value: '8'
              newvalue: Standby
