zabbix_export:
  version: '6.0'
  date: '2021-11-21T21:57:25Z'
  groups:
    -
      uuid: cae02ebe0e514628b896b01fe62e74e9
      name: 'Templates/Mikrotik Network Devices'
  templates:
    -
      uuid: 8421625cdab844f2855c1d9c26dead21
      template: 'Mikrotik RouterOS'
      name: 'Mikrotik RouterOS'
      description: |
        ## Description
        
        Ros Modelo dedicado (dispositivo RB) Este modelo é usado apenas para o monitoramento do sistema de roteamento RouterOS.。 By:[Suspeito]
        
        ## Overview
        
        MONITORAMENTO MIKROTIK 
        
        
         
        
        
         
        
        
         
        
        
        Temperatura da CPU
        
        
        Temperatura do equipamento
        
        
        Tempo de Atividade
        
        
        Monitirando Comsumo Clientes PPoE
        
        
        Monitirando Quantidade de Clientes PPoE
        
        
        Monitora todos os comnumo das portas
        
        
        Monitirando CPUs 
        
        
        Monitora Ping
        
        
         
        
        
         
        
        
         
        
        
        Contatos: whatsapp 81 982670619
        
        
         
        
        
        E-Mail: rsg.sp.gov@gmail.com
        
        
        
        ## Author
        
        Renato
        
        
      groups:
        -
          name: 'Templates/Mikrotik Network Devices'
      items:
        -
          uuid: 7baa61538ed94117be2de68b4b6b9fe8
          name: 'Uso da CPU (total)'
          type: CALCULATED
          key: 'cpucore[ifnum]'
          delay: 30s
          units: '%'
          params: '(last(//cpucore[ifnum1]))/1'
          description: |
            Dica: Por favor, preencha de acordo com o número principal do seu dispositivo! Copie o código da fórmula。
            A referência é a seguinte：
            2 fórmulas principais
            (last(cpucore[ifnum1])+last(cpucore[ifnum2]))/2
            3 fórmulas principais
            (last(cpucore[ifnum1])+last(cpucore[ifnum2])+last(cpucore[ifnum3]))/3
            4 fórmulas principais
            (last(cpucore[ifnum1])+last(cpucore[ifnum2])+last(cpucore[ifnum3])+last(cpucore[ifnum4]))/4
          tags:
            -
              tag: Application
              value: 'Status da CPU'
        -
          uuid: f7fc7b68cb9d4d3bb50779624cdfab71
          name: 'Atividade Ping'
          type: SIMPLE
          key: icmpping
          delay: '60'
          valuemap:
            name: 'Service state'
          tags:
            -
              tag: Application
              value: Status
        -
          uuid: 57623332b1ce4ebbb458e6e7d0bd388e
          name: 'Perda de Pacote'
          type: SIMPLE
          key: icmppingloss
          delay: '60'
          units: '%'
        -
          uuid: 380ea1a3db3f45e6aec47047104a8837
          name: Latencia
          type: SIMPLE
          key: icmppingsec
          delay: '60'
          value_type: FLOAT
          units: s
          tags:
            -
              tag: Application
              value: Status
        -
          uuid: c765064b623244f28f7c7030068df0c8
          name: 'Temperatura da CPU'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.14988.1.1.3.11.0
          key: mikrotik.cpu.temperature
          delay: 30s
          value_type: FLOAT
          units: °C
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.1'
          tags:
            -
              tag: Application
              value: 'Estado de saúde'
        -
          uuid: 86edeb006f654be39c14865ce7240362
          name: 'Temperatura do equipamento'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.14988.1.1.3.10.0
          key: mikrotik.device.temperature
          delay: 30s
          value_type: FLOAT
          units: °C
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.1'
          tags:
            -
              tag: Application
              value: 'Estado de saúde'
        -
          uuid: f0cda17abf5647d793b8fa0427deb056
          name: 'Tempo de execução'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.2.1.1.3.0
          key: mikrotik.uptime
          delay: 30s
          units: uptime
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.01'
          tags:
            -
              tag: Application
              value: 'Estado de saúde'
        -
          uuid: b6c5506c1ee74577854e9db48e12384d
          name: 'Clientes Conectado'
          type: SNMP_AGENT
          snmp_oid: 1.3.6.1.4.1.9.9.150.1.1.1.0
          key: PPPoE
          tags:
            -
              tag: Application
              value: Status
        -
          uuid: 8b567a7bb0ef47869581eedb9761e8fd
          name: 'Memória livre'
          type: CALCULATED
          key: 'vm.memory.free[hrStoragefree.Memory]'
          delay: 30s
          value_type: FLOAT
          units: bps
          params: '(last(//vm.memory.total[hrStorageSize.Memory])-last(//vm.memory.used[hrStorageUsed.Memory]))'
          tags:
            -
              tag: Application
              value: 'Status da memória'
        -
          uuid: 179fba4281c1499b9dd048fd8e055473
          name: 'Uso de memória'
          type: CALCULATED
          key: 'vm.memory.pused[memoryUsedPercentage.Memory]'
          delay: 30s
          value_type: FLOAT
          units: '%'
          params: '(last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory]))*100'
          tags:
            -
              tag: Application
              value: 'Status da memória'
        -
          uuid: aca9b31993b0456dbc154c2aab3abb1a
          name: 'Tamanho da memória'
          type: SNMP_AGENT
          snmp_oid: 1.3.6.1.2.1.25.2.3.1.5.65536
          key: 'vm.memory.total[hrStorageSize.Memory]'
          delay: 15s
          units: bps
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '1045'
          tags:
            -
              tag: Application
              value: 'Status da memória'
        -
          uuid: 50fefdd1164642abad991b8df6766393
          name: 'Memória usada'
          type: SNMP_AGENT
          snmp_oid: 1.3.6.1.2.1.25.2.3.1.6.65536
          key: 'vm.memory.used[hrStorageUsed.Memory]'
          delay: 15s
          units: bps
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '1024'
          tags:
            -
              tag: Application
              value: 'Status da memória'
      discovery_rules:
        -
          uuid: 3f8f26d57a4747d8838ed278ed517a0c
          name: 'Descubra a interface NIC local'
          type: SNMP_AGENT
          snmp_oid: 'discoverylocal[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]'
          key: discoverylocal
          delay: 30s
          filter:
            conditions:
              -
                macro: '{#SNMPINDEX}'
                value: '^([1,2,3,4,5,6,7,8,9]|10)$'
                formulaid: A
          description: |
            NICs de expressão regular 1-10
            ^ ([1,2,3,4,5,6,7,8,9] | 10) $
          item_prototypes:
            -
              uuid: 1ffdcd9f838643968caf6de090faa158
              name: '{#IFNAME}Recepção de tráfego da placa de rede'
              type: SNMP_AGENT
              snmp_oid: '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}'
              key: 'net.if.in[localin.{#SNMPINDEX}]'
              delay: 1s
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
                -
                  type: MULTIPLIER
                  parameters:
                    - '8'
              tags:
                -
                  tag: Application
                  value: 'Interface local'
            -
              uuid: 7954ce819c124021be601b455cd210c9
              name: '{#IFNAME}Envio de tráfego NIC'
              type: SNMP_AGENT
              snmp_oid: '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}'
              key: 'net.if.out[localout.{#SNMPINDEX}]'
              delay: 1s
              preprocessing:
                -
                  type: SIMPLE_CHANGE
                  parameters:
                    - ''
                -
                  type: MULTIPLIER
                  parameters:
                    - '8'
              tags:
                -
                  tag: Application
                  value: 'Interface local'
          graph_prototypes:
            -
              uuid: d1d0c2487ac6400aa1798b554e6fdb64
              name: '{#IFNAME}Tráfego da interface NIC'
              graph_items:
                -
                  color: 1A7C11
                  item:
                    host: 'Mikrotik RouterOS'
                    key: 'net.if.out[localout.{#SNMPINDEX}]'
                -
                  sortorder: '1'
                  color: F63100
                  item:
                    host: 'Mikrotik RouterOS'
                    key: 'net.if.in[localin.{#SNMPINDEX}]'
        -
          uuid: a751c3bd8a604ebd8e1b07f3ee52bd62
          name: 'Descubra interfaces de rede'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]'
          key: net.if.discovery
          delay: 30s
          filter:
            conditions:
              -
                macro: '{#SNMPINDEX}'
                value: '^\d{2,3}$'
                formulaid: A
          description: |
            Expressão regular 2-3 dígitos 
             ^\d{2,3}$
          item_prototypes:
            -
              uuid: 64562178af22424590df6bc0e9b82ea2
              name: '{#IFNAME}Recepção de tráfego'
              type: SNMP_AGENT
              snmp_oid: '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}'
              key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]'
              delay: 1s
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
                -
                  type: MULTIPLIER
                  parameters:
                    - '8'
              tags:
                -
                  tag: Application
                  value: 'Interface local'
            -
              uuid: 50c874e429d44c2783c4c2c698c1d8b9
              name: '{#IFNAME}Envio de tráfego'
              type: SNMP_AGENT
              snmp_oid: '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}'
              key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]'
              delay: 1s
              units: bps
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
                -
                  type: MULTIPLIER
                  parameters:
                    - '8'
              tags:
                -
                  tag: Application
                  value: 'Interface local'
          graph_prototypes:
            -
              uuid: 5f9ce74b49694fea915325a2490ff34e
              name: '{#IFNAME}Tráfego de rede'
              graph_items:
                -
                  color: 1A7C11
                  item:
                    host: 'Mikrotik RouterOS'
                    key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]'
                -
                  sortorder: '1'
                  color: F63100
                  item:
                    host: 'Mikrotik RouterOS'
                    key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]'
        -
          uuid: 9d3610e3fd4d4e56bc6943f105cbe4f9
          name: 'Verificar automaticamente a conta de discagem VPN'
          type: SNMP_AGENT
          snmp_oid: 'discoveryppp[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]'
          key: net.if.discoveryppp
          delay: 30s
          filter:
            conditions:
              -
                macro: '{#SNMPINDEX}'
                value: '^(157)+\d{1,}$'
                formulaid: A
          item_prototypes:
            -
              uuid: 2bcdf5e1d9e1439a9b4637c156ca424f
              name: '{#IFNAME}Recepção de tráfego'
              type: SNMP_AGENT
              snmp_oid: '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}'
              key: 'net.if.in[ifHCInOctetsppp.{#SNMPINDEX}]'
              delay: 30s
              units: bps
              tags:
                -
                  tag: Application
                  value: 'Interface PPP'
            -
              uuid: fbfd8c053fdb4e32a6a74942a565ded0
              name: '{#IFNAME}Envio de tráfego'
              type: SNMP_AGENT
              snmp_oid: '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}'
              key: 'net.if.out[ifHCOutOctetsppp.{#SNMPINDEX}]'
              delay: 30s
              units: bps
              tags:
                -
                  tag: Application
                  value: 'Interface PPP'
          graph_prototypes:
            -
              uuid: 1b405807c27142a290787c4cc4d618dc
              name: '{#IFNAME}Tráfego de saída'
              graph_items:
                -
                  color: 1A7C11
                  item:
                    host: 'Mikrotik RouterOS'
                    key: 'net.if.out[ifHCOutOctetsppp.{#SNMPINDEX}]'
                -
                  sortorder: '1'
                  color: F63100
                  item:
                    host: 'Mikrotik RouterOS'
                    key: 'net.if.in[ifHCInOctetsppp.{#SNMPINDEX}]'
        -
          uuid: bb4e20eb4ea7465d82234699c4e0a478
          name: 'Descubra as estatísticas de tráfego da interface'
          type: SNMP_AGENT
          snmp_oid: 'discoveryStatistics[{#IFBYTESIN},1.3.6.1.2.1.31.1.1.1.6,{#IFBYTESOUT},1.3.6.1.2.1.31.1.1.1.10,{#IFNAME},1.3.6.1.2.1.2.2.1.2]'
          key: net.if.discoveryStatistics
          delay: 30s
          filter:
            conditions:
              -
                macro: '{#SNMPINDEX}'
                value: '^\d{2,8}$'
                formulaid: A
          item_prototypes:
            -
              uuid: bc94a2dc79784074932537051b37b412
              name: '{#IFNAME}Recebendo aquisição total'
              type: SNMP_AGENT
              snmp_oid: '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}'
              key: 'net.if[interface.in.{#SNMPINDEX}]'
              delay: 30s
              units: bps
              tags:
                -
                  tag: Application
                  value: 'Interface de rede externa'
                -
                  tag: Application
                  value: 'Interface local'
            -
              uuid: 62c35b4d121948fda15ba5d11b4fd453
              name: '{#IFNAME}Obter o valor total'
              type: SNMP_AGENT
              snmp_oid: '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}'
              key: 'net.if[interface.out.{#SNMPINDEX}]'
              delay: 30s
              units: bps
              tags:
                -
                  tag: Application
                  value: 'Interface de rede externa'
                -
                  tag: Application
                  value: 'Interface local'
          graph_prototypes:
            -
              uuid: 81e3a5fc83e64514a30be97360700a0b
              name: '{#IFNAME}Estatísticas da interface'
              graph_items:
                -
                  color: 1A7C11
                  item:
                    host: 'Mikrotik RouterOS'
                    key: 'net.if[interface.out.{#SNMPINDEX}]'
                -
                  sortorder: '1'
                  color: F63100
                  item:
                    host: 'Mikrotik RouterOS'
                    key: 'net.if[interface.in.{#SNMPINDEX}]'
        -
          uuid: c35d23b893dc482fae73323aa242aa8b
          name: 'Descubra automaticamente estatísticas de tráfego da NIC local'
          type: SNMP_AGENT
          snmp_oid: 'discoveryStatistics[{#IFBYTESIN},1.3.6.1.2.1.31.1.1.1.6,{#IFBYTESOUT},1.3.6.1.2.1.31.1.1.1.10,{#IFNAME},1.3.6.1.2.1.2.2.1.2]'
          key: net.if.discoveryStatisticslocal
          delay: 30s
          filter:
            conditions:
              -
                macro: '{#SNMPINDEX}'
                value: '^([1,2,3,4,5,6,7,8,9]|10)$'
                formulaid: A
          item_prototypes:
            -
              uuid: a02a3e9db7fb475eba4451170be1d787
              name: '{#IFNAME}Obter a quantidade total de placas de rede locais recebidas'
              type: SNMP_AGENT
              snmp_oid: '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}'
              key: 'net.if[localinterface.in.{#SNMPINDEX}]'
              delay: 30s
              units: bps
              tags:
                -
                  tag: Application
                  value: 'Interface local'
            -
              uuid: 323ed60f96b64a068f2378cdbdca5510
              name: '{#IFNAME}Obter o valor total enviado pela placa de rede local'
              type: SNMP_AGENT
              snmp_oid: '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}'
              key: 'net.if[localinterface.out{#SNMPINDEX}]'
              delay: 30s
              units: bps
              tags:
                -
                  tag: Application
                  value: 'Interface local'
          graph_prototypes:
            -
              uuid: f00a58d218f44b5693787428b214b391
              name: '{#IFNAME}Estatísticas da interface local'
              graph_items:
                -
                  color: 1A7C11
                  item:
                    host: 'Mikrotik RouterOS'
                    key: 'net.if[localinterface.out{#SNMPINDEX}]'
                -
                  sortorder: '1'
                  color: F63100
                  item:
                    host: 'Mikrotik RouterOS'
                    key: 'net.if[localinterface.in.{#SNMPINDEX}]'
        -
          uuid: 76ffb176193845f0b11f8cbbb24ec190
          name: 'Verificar automaticamente a CPU'
          type: SNMP_AGENT
          snmp_oid: 'discoverycpu[{#IFCPUNUM},1.3.6.1.2.1.25.3.3.1.2]'
          key: system.discoverycpu
          delay: 3s
          filter:
            conditions:
              -
                macro: '{#SNMPINDEX}'
                value: '^([0,1,2,3,4,5,6,7,8,9]|10|11|12|13|14|15|16)$'
                formulaid: A
          item_prototypes:
            -
              uuid: 3bbb308cd1cc49519f6caf23d663e399
              name: 'CPU{#SNMPINDEX}Use'
              type: SNMP_AGENT
              snmp_oid: '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}'
              key: 'cpucore[ifnum{#SNMPINDEX}]'
              delay: 15s
              units: '%'
              tags:
                -
                  tag: Application
                  value: 'Status da CPU'
      valuemaps:
        -
          uuid: 19bfacd65e284e058e9055c8ffe03fb2
          name: 'Service state'
          mappings:
            -
              value: '0'
              newvalue: Down
            -
              value: '1'
              newvalue: Up
  graphs:
    -
      uuid: 67153793e74742ff8e4d3bcfd55a5bdf
      name: 'CPU% De taxa de uso'
      graph_items:
        -
          color: 1A7C11
          item:
            host: 'Mikrotik RouterOS'
            key: 'cpucore[ifnum]'
    -
      uuid: 4a474277e2c24356a2fb1b6e2dbc24a2
      name: 'Temperatura do equipamento'
      graph_items:
        -
          color: 1A7C11
          item:
            host: 'Mikrotik RouterOS'
            key: mikrotik.device.temperature
    -
      uuid: 612a0989a16547bebb26b28b0635c8bc
      name: 'Uso de memória'
      graph_items:
        -
          color: 1A7C11
          item:
            host: 'Mikrotik RouterOS'
            key: 'vm.memory.pused[memoryUsedPercentage.Memory]'
