zabbix_export: version: '6.0' date: '2021-11-21T22:02:24Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: 9a11e2c0e1874c04a088529cbd8646a8 template: Mikrotik name: Mikrotik description: | ## Overview NESSE TEMPLATE MONITORAMOS CPU DISCO MEMORIA INTERFACE NOME DO EQUIPAMENTO UPTIME TEMPERATURA VOLTAGEM VERSÃO DO MIKOTIK ## Author Renato Severino groups: - name: Templates items: - uuid: e63587bd03974594931a2d8bfb988bd8 name: 'System name' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.5.0 key: mikrotik.identity.name delay: 10m trends: '0' value_type: CHAR - uuid: 5dc15ba141414b8688701dd25825e92c name: 'Software ID' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.14988.1.1.4.1.0 key: mikrotik.software.id delay: 10m trends: '0' value_type: CHAR - uuid: 9c973dd1745b42c39068a8484bd0228f name: 'Espaco Total em Disco' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.25.2.3.1.5.131073 key: mikrotik.total.disk.space delay: 10m history: 365d trends: 734d units: B preprocessing: - type: MULTIPLIER parameters: - '1024' - uuid: 60430ec48b254488903a9a34e356f019 name: 'Memoria Total' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.25.2.3.1.5.65536 key: mikrotik.total.memory delay: 1h history: 365d trends: 734d units: B preprocessing: - type: MULTIPLIER parameters: - '1024' - uuid: b7e12461aa1f41eda4124d7ea56b958f name: 'System uptime' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.3.0 key: mikrotik.uptime delay: 2m units: uptime preprocessing: - type: MULTIPLIER parameters: - '0.01' - uuid: 7d14b11a2c5f4cb19806af27f29f9da4 name: 'Espaco usado em Disco' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.25.2.3.1.6.131073 key: mikrotik.used.disk.space delay: 5m history: 365d trends: 734d units: B preprocessing: - type: MULTIPLIER parameters: - '1024' - uuid: 2ecfb1d8d80f4e47b5b100ec54aa865c name: 'Memoria em Uso' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.25.2.3.1.6.65536 key: mikrotik.used.memory delay: 30s history: 365d trends: 734d units: B preprocessing: - type: MULTIPLIER parameters: - '1024' - uuid: 0126e70384a1469bbafa72ffa8d71b78 name: 'System version and hw' type: SNMP_AGENT snmp_oid: iso.3.6.1.2.1.47.1.1.1.1.2.65536 key: mikrotik.version.and.hw delay: 10m trends: '0' value_type: CHAR - uuid: 7ce00246abab49e493e9414f2e2eb1e2 name: 'CPU Load' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.25.3.3.1.2.1 key: mtxCPULoad delay: 30s history: 365d trends: 734d units: '%' - uuid: 2e0106889993462890114cb581e5a9a2 name: 'Rede - DHCP Leases' type: SNMP_AGENT snmp_oid: 1.3.6.1.4.1.14988.1.1.6.1.0 key: mtxrDHCPLeaseCount history: 365d trends: 734d - uuid: bfaad99069d8418dbc6c715faf31c186 name: 'Firmware Aguardando Upgrade' type: SNMP_AGENT snmp_oid: 1.3.6.1.4.1.14988.1.1.7.7.0 key: mtxrFirmwareUpgradeVersion delay: 10m history: 365d trends: 734d value_type: FLOAT - uuid: e6d933566b6d45a9891186b59615e4b3 name: 'Firmware Ativo' type: SNMP_AGENT snmp_oid: 1.3.6.1.4.1.14988.1.1.7.4.0 key: mtxrFirmwareVersion delay: 10m history: 365d trends: 734d value_type: FLOAT - uuid: b6d1b23738ec412fa0ac78b9d8a5843c name: 'Frequencia Processador' type: SNMP_AGENT snmp_oid: 1.3.6.1.4.1.14988.1.1.3.14.0 key: mtxrHlProcessorFrequency delay: 10m history: 365d trends: 734d units: Mhz - uuid: 0c59571fd0e84fa28e38e5fc7a8b6251 name: Temperatura type: SNMP_AGENT snmp_oid: 1.3.6.1.4.1.14988.1.1.3.10.0 key: mtxrHlTemperature history: 365d trends: 734d units: C preprocessing: - type: MULTIPLIER parameters: - '0.1' triggers: - uuid: 685f490bf9c24b839e2043756fe7ec45 expression: last(/Mikrotik/mtxrHlTemperature)>37 name: 'Temperatura Ambiente Alta >27°' priority: AVERAGE description: | Checa temperatura ambiente do Roteador. Se maior que 27, alarme será disparado. Nota. CCR tem uma margem de +10 para medir temperatura. Use item Calculado. - uuid: 79ddc6ef28474e48a5dd0ccca7fab1f1 expression: last(/Mikrotik/mtxrHlTemperature)<25 name: 'Temperatura Ambiente Baixa <15°' priority: WARNING description: | Checa temperatura ambiente do Roteador. Se menor que 20, alarme será disparado. Nota: CCR tem erro de medição de +10 no sensor. - uuid: 1ac647e3f46a4bd68076943f957f431f name: Voltagem type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.14988.1.1.3.8.0 key: mtxrHlVoltage history: 365d trends: 734d units: V preprocessing: - type: MULTIPLIER parameters: - '0.1' - uuid: 9c36794040a641a6aaffd7093ed0827b name: 'Serial Number' type: SNMP_AGENT snmp_oid: 1.3.6.1.4.1.14988.1.1.7.3.0 key: mtxrSerialNumber delay: 30s history: 365d trends: '0' value_type: CHAR discovery_rules: - uuid: d1aad955ace3410cbe1a3b1952a20e37 name: 'Network Interfaces Discovery' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},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: 60s filter: evaltype: AND conditions: - macro: '{#IFADMINSTATUS}' value: (1|3) formulaid: A - macro: '{#IFNAME}' value: '@Network interfaces for discovery' formulaid: B - macro: '{#IFTYPE}' value: (6|135|209) formulaid: C lifetime: 2h description: . item_prototypes: - uuid: ef61cf653a004cf7884b96bbe0ac72f5 name: 'Interface {#IFNAME}({#IFALIAS}): Discards In' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' delay: 300s preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - uuid: 5709398795764d3ead2607ebdc6d36e1 name: 'Interface {#IFNAME}({#IFALIAS}): Erros In' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' delay: 300s preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - uuid: 6c9fd563438746369412195980771321 name: 'Interface {#IFNAME}({#IFALIAS}): Bytes In' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' delay: '120;30/2-6,07:00-21:00' units: bps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' - uuid: 08c9071850954e06bb61f56471817169 name: 'Interface {#IFNAME}({#IFALIAS}): Discards Out' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' delay: 300s preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - uuid: ebbee81b9e444eb083b2557507849030 name: 'Interface {#IFNAME}({#IFALIAS}): Erros Out' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' delay: '300' preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - uuid: cf2f87843fc643feac39775fb80312de name: 'Interface {#IFNAME}({#IFALIAS}): Bytes Out' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' delay: '120;30/2-6,07:00-21:00' units: bps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' - uuid: ac23e651a0314918aab8aff03c3e9be4 name: 'Interface {#IFNAME}({#IFALIAS}): Speed' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' delay: '300' units: Mbps preprocessing: - type: MULTIPLIER parameters: - '1000000' - uuid: 2c96f0dca8dc4489b468a2500bd7b187 name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' delay: '240s;120s/2-6,07:00-21:00' trigger_prototypes: - uuid: e5fa1f9927f947009a7ace6d3012f0b7 expression: '(last(/Mikrotik/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mikrotik/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mikrotik/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))=1)' name: 'Interface {#IFNAME}({#IFALIAS}): Link down' priority: AVERAGE graph_prototypes: - uuid: 5b2672d73eb64e95a8277ede264ba9e3 name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' graph_items: - drawtype: GRADIENT_LINE color: 1A7C11 item: host: Mikrotik key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' - sortorder: '1' drawtype: GRADIENT_LINE color: 2774A4 item: host: Mikrotik key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' - sortorder: '2' drawtype: DASHED_LINE color: F63100 yaxisside: RIGHT item: host: Mikrotik key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' - sortorder: '3' drawtype: DASHED_LINE color: A54F10 yaxisside: RIGHT item: host: Mikrotik key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' - sortorder: '4' drawtype: DASHED_LINE color: FC6EA3 yaxisside: RIGHT item: host: Mikrotik key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' - sortorder: '5' drawtype: DASHED_LINE color: 6C59DC yaxisside: RIGHT item: host: Mikrotik key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' - uuid: 44b4a02b4790466191bb4e33208d77cc name: 'Storage discovery' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.25.2.3.1.3,{#ALLOC_UNITS},1.3.6.1.2.1.25.2.3.1.4,{#STORAGE_TYPE},1.3.6.1.2.1.25.2.3.1.2]' key: storage.discovery delay: 1h description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter' item_prototypes: - uuid: 8d223fd2ec734b35923f1aed8f25263d name: 'Disk-{#SNMPINDEX}: Space utilization' type: CALCULATED key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]' value_type: FLOAT units: '%' params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' description: 'Space utilization in % for Disk-{#SNMPINDEX}' tags: - tag: Application value: Storage - uuid: 6ab42d6e3b274935ab16261a373570e2 name: 'Disk-{#SNMPINDEX}: Total space' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' units: B description: | MIB: HOST-RESOURCES-MIB The size of the storage represented by this entry, in units of hrStorageAllocationUnits. This object is writable to allow remote configuration of the size of the storage area in those cases where such an operation makes sense and is possible on the underlying system. For example, the amount of main memory allocated to a buffer pool might be modified or the amount of disk space allocated to virtual memory might be modified. tags: - tag: Application value: Storage - uuid: 98b3e043975a4b2291c13a8e0a943187 name: 'Disk-{#SNMPINDEX}: Used space' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]' units: B description: | MIB: HOST-RESOURCES-MIB The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. tags: - tag: Application value: Storage - uuid: 81c33a4ceef24d2b8c1a056d25cf7b2c name: 'Verificar CPU' type: SNMP_AGENT snmp_oid: 'discoverycpu[{#IFCPUNUM},1.3.6.1.2.1.25.3.3.1.2]' key: system.discoverycpu delay: 3s item_prototypes: - uuid: 9e12073dd81f4ce69a37c5fef91df93e name: 'Uso de CPU {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}' key: 'cpucore[ifnum{#SNMPINDEX}]' units: '%' macros: - macro: '{$SNMP_COMMUNITY}' value: sksnmp triggers: - uuid: 370850bdf5f24f858e11c48dba797deb expression: 'last(/Mikrotik/mtxrFirmwareUpgradeVersion,#2)<>last(/Mikrotik/mtxrFirmwareVersion,#2)' name: 'Firmware Aguardando Upgrade' priority: INFO graphs: - uuid: 35e7032c412c430f913c83d91d26991d name: 'CPU Load' width: '300' ymin_type_1: FIXED ymax_type_1: FIXED graph_items: - drawtype: GRADIENT_LINE color: CCCC00 item: host: Mikrotik key: mtxCPULoad - uuid: 3af287d085b541e086431306c8c7499c name: 'Temperatura Ambiente' width: '300' yaxismin: '10' yaxismax: '50' ymin_type_1: FIXED ymax_type_1: FIXED graph_items: - drawtype: GRADIENT_LINE color: '880088' item: host: Mikrotik key: mtxrHlTemperature - uuid: eb5fab1a440f4407ad9cdbcb181327c3 name: 'Uso de Memoria' width: '300' show_work_period: 'NO' show_triggers: 'NO' ymin_type_1: FIXED graph_items: - drawtype: GRADIENT_LINE color: 00BB00 calc_fnc: MAX item: host: Mikrotik key: mikrotik.used.memory - sortorder: '1' drawtype: BOLD_LINE color: BB0000 calc_fnc: MAX type: GRAPH_SUM item: host: Mikrotik key: mikrotik.total.memory