zabbix_export: version: '6.0' date: '2021-11-21T21:33:50Z' groups: - uuid: e5e24234980a4eb6ba5945412cc8ba27 name: Fortigate templates: - uuid: ee91bef8a80e4330b0170fd24f821d10 template: 'Fortigate 100D' name: 'Fortigate 100D' description: | ## Overview Customized Template based on the original made by Leonardo Nascimento da Silva. Added LLD for Hostname, CPU, Memory and Serial Number. Also added HA Status and basic SNMP info (Contact, Name, Uptime). Tested with Fortigate 100D on Zabbix 3.4.6 BTW, I had to create some Value Mappings as follows: Fortigate HA Auto Sync 1 > Disabled 2 > Enabled Fortigate HA Status 1 > Standalone 2 > Active/Active 3 > Active/Passive ###################################### Template customizado baseado no original do Leonardo Nascimento da Silva. Adicionei LLD's para o Hostname, CPU, Memória e Número de Série das unidades (quando estiverem em HA). Também adicionei o status do HA e informações básicas do SNMP (Nome, Uptime, Contato) Testei com o Fortigate 100D no Zabbix 3.4.6 Inclusive, eu tive que criar alguns mapeamentos de valores: Fortigate HA Auto Sync 1 > Desativado 2 > Ativado Fortigate HA Status 1 > Sem HA 2 > Ativo/Ativo 3 > Ativo/Passivo Cheers! Luiz Fernando Gondin Santos ## Author Luiz Fernando Gondin Santos groups: - name: Fortigate items: - uuid: 55140e065f664ec3869d08dd3de3a69c name: 'HA Auto Sync' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.12356.101.13.1.5.0 key: fgHaAutoSync delay: 30s valuemap: name: 'Fortigate HA Auto Sync' tags: - tag: Application value: 'High Availability' - uuid: 4f4e15f8fd0c43f096138f172019d911 name: 'HA Mode' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.12356.101.13.1.1.0 key: fgHaSystemMode delay: 30s valuemap: name: 'Fortigate HA Status' tags: - tag: Application value: 'High Availability' - uuid: 6e0ed0b47c7c4387a3c32613845019e0 name: 'System Contact' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.4.0 key: sysContact delay: 30s trends: '0' value_type: CHAR tags: - tag: Application value: General - uuid: 8b332f3a3ead437db0b5823fabb020af name: 'System Name' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.5.0 key: sysName delay: 30s trends: '0' value_type: CHAR tags: - tag: Application value: General - uuid: 4629faec3a4e4d348d97aa9956c0489b name: 'System Uptime' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.3.0 key: sysUpTime delay: 30s value_type: FLOAT units: s preprocessing: - type: MULTIPLIER parameters: - '0.01' tags: - tag: Application value: General discovery_rules: - uuid: 3d215a4d9c784f4c99de0a2c080594b4 name: 'CPU Usage' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE}, .1.3.6.1.4.1.12356.101.13.2.1.1.3]' key: fgStatsCpuUsage delay: '300' item_prototypes: - uuid: 6d6badd20004436b9fcd215b99cbda60 name: 'CPU $1 Usage' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.12356.101.13.2.1.1.3.{#SNMPINDEX}' key: 'fgStatsCpuUsage.[{#SNMPINDEX}]' delay: 30s units: '%' tags: - tag: Application value: CPU trigger_prototypes: - uuid: 2c4cac7ff9f845d6ad1a9cdbd4b71652 expression: 'last(/Fortigate 100D/fgStatsCpuUsage.[{#SNMPINDEX}])>80' name: 'CPU {#SNMPINDEX} Load is High' priority: AVERAGE graph_prototypes: - uuid: 8d3fbc65e33e4a4faf688fc7b8d5e523 name: 'CPU {#SNMPINDEX} Load' graph_items: - color: 1A7C11 item: host: 'Fortigate 100D' key: 'fgStatsCpuUsage.[{#SNMPINDEX}]' - uuid: 0f0f77f188b544f09f88786d58cb258b name: 'Unit Hostname' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.4.1.12356.101.13.2.1.1.11]' key: fgStatsHostName delay: '300' item_prototypes: - uuid: cabb03c06a514648b86e61eefe540594 name: 'Unit $1 Hostname' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.12356.101.13.2.1.1.11.{#SNMPINDEX}' key: 'fgStatsHostName.[{#SNMPINDEX}]' delay: 30s trends: '0' value_type: CHAR tags: - tag: Application value: General - uuid: aab76ed20ae9424c80ae076845328049 name: 'Memory Usage' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.4.1.12356.101.13.2.1.1.4]' key: fgStatsMemUsage delay: '300' item_prototypes: - uuid: 280b5a91a06a4af994ec65c6df7a6678 name: 'Memory Usage $1' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.12356.101.13.2.1.1.4.{#SNMPINDEX}' key: 'fgStatsMemUsage.[{#SNMPINDEX}]' delay: 30s units: '%' tags: - tag: Application value: Memory trigger_prototypes: - uuid: d6a96c308d914eb291498bd460fb0956 expression: 'last(/Fortigate 100D/fgStatsMemUsage.[{#SNMPINDEX}])>80' name: 'Memory {#SNMPINDEX} use is High' priority: AVERAGE graph_prototypes: - uuid: 0007db3414a9408793ae5d6699077f3d name: 'Memory {#SNMPINDEX} Usage' graph_items: - drawtype: FILLED_REGION color: 1A7C11 item: host: 'Fortigate 100D' key: 'fgStatsMemUsage.[{#SNMPINDEX}]' - uuid: 6274b34de24441c996b60e36ddd4a15b name: 'Serial Number' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.4.1.12356.101.13.2.1.1.2]' key: fgStatsSerial delay: '300' item_prototypes: - uuid: ca4267b9da714fe5a272c30e9845e0ff name: 'Unit $1 Serial Number' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.12356.101.13.2.1.1.2.{#SNMPINDEX}' key: 'fgStatsSerial.[{#SNMPINDEX}]' delay: 30s trends: '0' value_type: CHAR tags: - tag: Application value: General - uuid: 1c44f75773314fa7908c3d209727175a name: 'Network Interfaces' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.2.1.31.1.1.1.1]' key: ifname delay: '300' item_prototypes: - uuid: 11da244e17e54d5eb22045832190b6ad name: 'Upload $1' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifHCOutOctets.{#SNMPINDEX}' key: 'ifHCOutOctets[{#SNMPVALUE}]' delay: '5' history: 7d trends: 180d units: bps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' tags: - tag: Application value: Tráfego - uuid: 8cbf8bfceaa64844b682e16d8cc23eb8 name: 'Speed $1' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifHighSpeed.{#SNMPINDEX}' key: 'ifHighSpeed[{#SNMPVALUE}]' delay: '300' history: 7d trends: 180d tags: - tag: Application value: 'Link 10\100\1000' - uuid: 55e89e4e28d24ef6bfa26934f18ea4e7 name: 'Download $1' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifInOctets.{#SNMPINDEX}' key: 'ifInOctets[{#SNMPVALUE}]' delay: '5' history: 7d trends: 180d units: bps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' tags: - tag: Application value: Tráfego graph_prototypes: - uuid: 487a3e5f646f41baa9bfac365b274c14 name: 'Network Load {#SNMPVALUE}' graph_items: - color: 00C800 item: host: 'Fortigate 100D' key: 'ifInOctets[{#SNMPVALUE}]' - sortorder: '1' color: C80000 item: host: 'Fortigate 100D' key: 'ifHCOutOctets[{#SNMPVALUE}]' valuemaps: - uuid: 8ab2c1c982654de983774ca8550d4305 name: 'Fortigate HA Auto Sync' mappings: - value: '1' newvalue: Disabled - value: '2' newvalue: Enabled - uuid: ad1bd31cbbd0449296c890949e697a12 name: 'Fortigate HA Status' mappings: - value: '1' newvalue: Standalone - value: '2' newvalue: Active/Active - value: '3' newvalue: Active/Passive