Connecting a FortiGate to Zabbix: SNMP v2c and v3
Sign in to read this lesson
On the FG-LAB-01 firewall we open SNMP on the interface, write the system information, set up a v2c community for the Zabbix server only and then an SNMP v3 user with SHA256 and AES. We add the FortiGate to Zabbix with the "FortiGate by SNMP" template and look at CPU, sessions, VPN tunnels and HA metrics.
What you will learn
- SNMP is opened in two places: on the interface (
set allowaccess ... snmp) and inconfig system snmp sysinfo(set status enable). - v2c:
config system snmp community→config hosts→set ip 10.10.10.20 255.255.255.255,set host-type query; onlyquery-v2c-statusenabled. - v3:
config system snmp user→set security-level auth-priv,set auth-proto sha256,set priv-proto aes,set notify-hosts 10.10.10.20. - The
FortiGate by SNMPtemplate:system.cpu.util[fgSysCpuUsage.0],vm.memory.util[memoryUsedPercentage.0],net.ipv4.sessions[fgSysSesCount.0], VPN tunnels and HA members through LLD. - We open SNMP only on the management interface;
snmpmust never be on the WAN port.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.