Zabbix FortiGate firewall monitoring by REST API or SNMP

Zabbix ships two FortiGate templates, one over the REST API with an API admin token and one over SNMP. This page explains how to choose between them and what each needs before setup.

On this page

How Zabbix FortiGate firewall monitoring works by REST API or SNMP

A team that needs FortiGate health, interface and VPN status in Zabbix has two official options. The FortiGate by HTTP template calls the FortiGate REST API using an API admin token stored in the host macro {$FGATE.API.TOKEN}. The FortiGate by SNMP template polls the FORTINET-FORTIGATE-MIB with SNMP walks, using discovery to find the objects it monitors. Both templates require Zabbix 7.4. Zabbix's Fortinet integration page lists the HTTP template as tested on FortiGate v7.6.4 and the SNMP template as tested on FortiGate v7.2.5, so check those tested versions against the FortiOS release your firewalls actually run before you commit to either path. DeployOpen plans and builds the chosen integration inside your own infrastructure, including the Zabbix server or proxy that polls the firewall.

The choice usually comes down to what your firewall team can provision and what your monitoring team can maintain. The REST path depends on a dedicated API administrator with a token scoped to read-only monitoring, so the security team has to approve the admin profile, the trusted hosts allowed to use the token, and how the token is rotated and stored. The SNMP path depends on SNMP access being enabled on the firewall, a community or SNMPv3 user that matches your security policy, and network paths from the Zabbix poller to the firewall's management interface. Confirm with your FortiGate administrators which access method is already approved, which FortiOS version each firewall runs, and whether you need the template version that matches your Zabbix release. Those answers decide the first build step.

What you need before connecting a FortiGate to Zabbix

Both FortiGate templates depend on the same starting conditions: a supported Zabbix release, a tested FortiOS version and a network path from the monitoring layer to the firewall. Work through these cards before choosing between the REST API and SNMP, because each choice adds its own account or community setup on top of them.

Zabbix 7.4 for both templates

Both the FortiGate by HTTP template and the FortiGate by SNMP template require Zabbix 7.4. Confirm the release of your Zabbix server and of any proxies that will poll the firewall before you import anything. If your estate runs an older LTS line, plan the upgrade first, because the templates will not be a drop-in import there. Check the template version against the release you deploy, not against the version you remember from a previous project.

Fortinet integration page

Tested FortiOS versions per template

The HTTP template was tested on FortiGate v7.6.4, and the SNMP template was tested on FortiGate v7.2.5. Those are the versions Zabbix validated, not a statement about every FortiOS build. Compare the exact firmware running on each firewall in your estate with the Zabbix integration page, and record any gap. A firewall on a different branch may still work, but you will own the validation of its items and triggers.

Network path to the management interface

Whichever component polls the firewall, the Zabbix server or a proxy must reach the FortiGate management interface on the port your chosen method uses. Map that path through every firewall and access list between the monitoring host and the appliance. Confirm whether management traffic runs on a dedicated interface, and whether a proxy in the same segment is the better collection point for a remote site.

API admin account and token

The HTTP template authenticates with an API admin token stored in the {$FGATE.API.TOKEN} macro. Confirm which administrator account will own the token, what read-only profile it receives, and who approves its creation under your change process. Ask whether the token is scoped to the monitoring purpose, how it rotates, and where the value will be stored. Do not reuse a human administrator's login for this role.

SNMP access and community settings

The SNMP template polls FORTINET-FORTIGATE-MIB with SNMP walks, so the firewall must have SNMP enabled for the monitoring host and the community or SNMPv3 credentials must match what Zabbix will use. Confirm the SNMP version your security policy allows, the permitted source addresses, and the community or user name owned by the platform team. Record these before the first discovery walk, since failed walks often trace back to an allowed host list.

Certificate trust for HTTPS polling

REST API polling runs over HTTPS, so the Zabbix server or proxy must trust the certificate presented by the FortiGate management interface. Confirm whether the firewall uses a certificate from your internal CA, a public CA or the default appliance certificate, and who will install the trust chain on the monitoring host. Ask your security team how certificate expiry will be tracked, because an expired certificate stops the polling without a clear error in the dashboard.

Configuring the FortiGate template step by step

This sequence takes a FortiGate from a read-only API or SNMP access setup to a Zabbix host that reports discovered interfaces and live item values. Each step ends with a check so you can stop and fix problems before moving on.

  1. Choose the access method and confirm versions

    Decide between the FortiGate by HTTP template, which uses the REST API and an API admin token, and the FortiGate by SNMP template, which polls FORTINET-FORTIGATE-MIB. Confirm that your Zabbix server or proxy runs 7.4, because both templates require it, and confirm your FortiOS version against the versions named in the Zabbix Fortinet integration page. The tested versions there are v7.6.4 for the HTTP template and v7.2.5 for the SNMP template, so ask your vendor or test lab to confirm support for any other release you run. Done when you have a written decision and a version check recorded for the change.

  2. Create the read-only API admin or SNMP access

    On the FortiGate, the network or security administrator creates a dedicated administrator with a read-only profile for the HTTP path, generates an API admin token, and records it in your secrets store. For the SNMP path, the same administrator enables SNMP on the relevant interfaces, creates the SNMP community or SNMPv3 user, and restricts the allowed source addresses to the Zabbix server or proxy. Check that the monitoring account can read the resources the template needs and cannot change configuration. Done when a test request from the Zabbix host's network returns data with the new credential and is refused from any other source.

  3. Import the template into Zabbix 7.4

    Download the matching template from the Zabbix Fortinet integration page and import it under Data collection, Templates in the Zabbix frontend. Review the template's macros, items and discovery rules before linking it, so you know which ones depend on the access method you chose. Done when the template appears in the template list with its items, discovery rules and macros visible.

  4. Create the host and set the template macros

    Create a host for the FortiGate, set its management IP address, and link the template you imported. For the HTTP path, set the macro {$FGATE.API.TOKEN} to the API admin token as a secret text macro so it is not shown in plain text. For the SNMP path, set the community or SNMPv3 security settings that match the FortiGate configuration, and confirm the SNMP interface settings on the host. Done when the host saves without errors and the macro values are stored as secret where the template supports it.

  5. Attach the host to a proxy when the network requires it

    If the FortiGate sits in a network segment the Zabbix server cannot reach directly, assign the host to a Zabbix proxy that has a route to the firewall management address and to the API or SNMP port. Keep the proxy in the same data path you plan to use for other devices in that segment. Done when the host's monitored-by setting shows the proxy and the proxy shows a recent last-seen time in the Zabbix frontend.

  6. Verify discovery of interfaces and other objects

    Wait for the discovery rules to run, or trigger them from the host's discovery page, then open the discovered items and prototypes. Confirm that interfaces and any other objects the template discovers appear as expected against the FortiGate's own interface list. Done when the discovered entities match the firewall's interface inventory and no discovery rule reports an error in the host's problem or latest data view.

  7. Confirm item data and resolve errors

    Open Latest data for the host and check that the core items return values, such as system status and interface counters. If an item shows an unsupported or authentication error, check the token or SNMP credential, the source address allowed on the FortiGate, the proxy route, and the template's expected FortiOS version. Done when the key items show current values, the host shows no unsupported items, and you have recorded the verified version, access method and macro settings in your change record.

REST API or SNMP: which FortiGate template to choose

The two templates read the same firewall through different interfaces, so the data they expose is not identical. The FortiGate by HTTP template calls the FortiGate REST API, which is the more direct route to the configuration and status objects that FortiOS exposes through its API. The FortiGate by SNMP template polls the FORTINET-FORTIGATE-MIB with SNMP walks, which suits counters and status values that SNMP already carries well. Before choosing, list the metrics your team needs, such as session counts, VPN tunnel state, HA member status, interface traffic and hardware health, and check which template covers each one.

  • Object coverage: Confirm that each metric you need appears in the template's item list, not only in the MIB or API documentation.
  • Discovery method: The SNMP template discovers through SNMP walks, so its discovered objects follow what the MIB reports on each unit.
  • Polling cost: Each template's polling load on the firewall depends on the items enabled, so compare item counts before enabling everything.
  • Gaps: Any metric missing from one template may be available through the other, so note these for a possible second check.

Confirm the item lists in the Zabbix Fortinet integration page against your requirements before you pilot.

Which FortiGate data lands in which Zabbix objects

This table maps what each FortiGate template collects onto Zabbix hosts, items, discovery rules, triggers and macros, for both the REST API and SNMP approaches. Read it to see where a metric lives before you build dashboards or alerts. Confirm the exact item and trigger list in the template version you import, because the template contents change between releases.

Zabbix objectFortiGate by HTTP (REST API)FortiGate by SNMP
Credential inputAPI admin token stored in the {$FGATE.API.TOKEN} macro on the hostSNMP community or SNMPv3 credentials set on the host interface, as the template expects
Discovery methodHTTP agent discovery rules that call REST endpoints for interfaces and VPN tunnelsSNMP walks of FORTINET-FORTIGATE-MIB to find interfaces and VPN tunnels
Host structureOne FortiGate host, with discovered interfaces and tunnels created as dependent items and prototypesOne FortiGate host, with discovered interfaces and tunnels created from SNMP index values
System status itemsDevice status and resource values read from the API, such as system informationSystem status values read from MIB objects, such as CPU, memory and uptime
Interface itemsPer-interface state and traffic counters from the API responsePer-interface operational status and octet counters from the MIB tables
VPN tunnel itemsTunnel status values from the API, where the FortiOS version exposes themTunnel status values from the MIB, where the FortiOS version exposes them
TriggersTriggers on system status and interface or tunnel state, as documented by the templateTriggers on interface and system state, as documented by the template
Version dependencyRequires Zabbix 7.4, tested on FortiGate v7.6.4Requires Zabbix 7.4, tested on FortiGate v7.2.5

How the FortiGate, Zabbix server or proxy and the data path fit together

The diagram starts at the Zabbix server or an optional Zabbix proxy in the monitoring segment. Two parallel paths leave it: the FortiGate by HTTP template calls the FortiGate REST API with the API admin token stored in {$FGATE.API.TOKEN}, and the FortiGate by SNMP template runs SNMP walks against FORTINET-FORTIGATE-MIB. Both cross the trust boundary into the firewall management interface, so check which interface and source addresses the firewall allows for each path before you build.

Two polling paths from Zabbix to the FortiGate management interface, each with its own template.

Securing the API token and SNMP access on the firewall

Both templates give Zabbix a standing read path into the firewall, so the access you grant on the FortiGate decides how much damage a leaked token or community string can do. The cards below cover the API profile, trusted hosts, token storage, rotation and SNMP version choice. Confirm admin profile and SNMP option names in the FortiOS version you run before you apply them.

Read-only API admin profile

Create a dedicated administrator for the FortiGate by HTTP template and bind it to an admin profile that grants read access only to the monitoring data the template requests. Do not reuse an existing administrator or a profile with write or configuration rights, because a token that can change policy turns a monitoring leak into a configuration change. Confirm which read permissions the profile needs in your FortiOS version, then test the template against that profile before you widen anything.

Zabbix Fortinet integration

Trusted hosts limited to Zabbix

Restrict the API administrator to the source addresses of the Zabbix server or the proxy that polls the firewall. If you use proxy groups, list every proxy that can take over the host, since a failover to an address outside the list will fail silently. Check that the address Zabbix presents is the one the FortiGate sees after any NAT on the path, because that mismatch is a common reason for lockouts after a change.

Token stored as a secret macro

The FortiGate by HTTP template reads the token from the {$FGATE.API.TOKEN} macro. Set that macro as a secret text value at the host or template level, not as plain text in a shared template, and keep the write path to it limited to the people allowed to manage that host. If your Zabbix security policy requires a vault, fetch the token from the vault and apply the same access limits to the vault path. Never paste the token into tickets, chat or exported configuration.

Token rotation schedule

Set a rotation date for the API token and record it with the host owner, since FortiOS tokens do not expire on their own in a way that forces a rotation. To rotate, create the new token, update the Zabbix macro, confirm that the host returns data, and then revoke the old token. Run the revocation in the same change window so a stale token does not remain valid after the handover. Ask your team which rotation interval your policy requires before you set one.

SNMPv3 over community strings

Where your FortiOS version and the FORTINET-FORTIGATE-MIB polling needs allow it, configure an SNMPv3 user with authentication and privacy rather than a v1 or v2c community string. A community string travels in clear text and is shared by every system that knows it, while an SNMPv3 user can be scoped to one monitoring source. Confirm the supported SNMPv3 security levels and the Zabbix SNMPv3 settings for your version before you commit to one.

SNMP source and view limits

Limit the SNMP community or user to the Zabbix server or proxy address, and allow only the read access that the template walks. The template uses SNMP walks for discovery, so check that the scope covers the Fortinet MIB objects it requests and nothing that changes state. Verify the limit by querying from an address outside the allowed source and confirming that the request is refused, then record the test result for the change file.

Common failures when monitoring FortiGate with Zabbix

This table lists the failures teams most often hit when they set up the FortiGate templates, with the likely cause and the fix for each. Read the symptom column first, then check the cause against your own environment, since several failures look alike from the Zabbix side.

FailureLikely causeFix
API token rejected or returns 401 or 403The token in {$FGATE.API.TOKEN} is wrong, was copied with extra spaces, or belongs to an admin profile without read access to the monitored sectionsRegenerate the API admin token on the FortiGate, paste it into the macro without whitespace, and confirm the admin profile can read system status, interfaces and VPN data
Token worked, then stopped workingThe token expired or was revoked, or the admin account was disabled or renamed during a change windowCheck the token and account status on the FortiGate, issue a new token, and record an owner and renewal date for it
Template items stay unsupported after importZabbix server or proxy is older than 7.4, which is the version both FortiGate templates requireUpgrade the Zabbix server and every proxy that polls the firewall to 7.4 or later, then re-import the template
Template loads but data does not match the deviceFortiOS version is outside the tested list (FortiOS v7.6.4 for the HTTP template, v7.2.5 for the SNMP template)Confirm your FortiOS build against the Zabbix Fortinet integration page, test in a non-production setup first, and log items that fail after each firmware change
SNMP discovery walks time out or return partial resultsLarge MIB walks over a slow or congested path, SNMP version or community mismatch, or the firewall's SNMP service limited to a few source addressesConfirm the SNMP version and community or user on both sides, allow the Zabbix server or proxy address, and tune the walk and timeout settings in small steps while watching firewall CPU
Polling fails only from a proxyThe proxy has no route to the firewall management address, or a firewall policy or local-in rule blocks the proxy's source IPTest reachability from the proxy host itself, add a route or policy for the proxy subnet, and confirm the proxy is the host that holds the monitored firewall
API or SNMP requests refused by the firewallTrusted hosts on the admin account or the SNMP settings do not include the Zabbix server or proxy addressAdd the exact polling source address to the trusted hosts list for the API admin or the SNMP community, and avoid broad ranges unless your change process allows them
Items keep changing between polls or show gapsSession or token limits on the device, overlapping polls from more than one Zabbix host for the same firewall, or an unstable management linkPoll each firewall from one Zabbix host or proxy, review the intervals on the template items, and check the management link for drops during the gap window

Questions buyers ask before monitoring FortiGate with Zabbix

What drives the cost of monitoring FortiGate with Zabbix?

The cost is driven by how many firewalls, sites and HA pairs you monitor, how many items and triggers you need, and how much of the Zabbix build around them is new. Zabbix open source carries no license fee, so the spend is labor and infrastructure: the Zabbix server or proxies, the database, and the time to configure templates, API access and alerting. Ask any partner for a quote built from a written scope that lists the firewalls, the FortiOS versions, the template method (REST API or SNMP), and the alert destinations. Ask which items are one-time work and which recur, such as template upkeep after upgrades and any paid Zabbix support subscription, which is a separate purchase from the software.

Does Zabbix limit the number of FortiGate devices I can monitor?

Zabbix states that its open source software has no license fee, no device limits and no feature gates, so the FortiGate templates do not add a per-device charge. Your real limits are hardware and design: how many hosts and items a server or proxy can poll, the database sizing, and how many FortiGate APIs or SNMP endpoints your firewalls can serve without slowing down. Paid Zabbix technical support is sold separately in Silver, Gold, Platinum, Enterprise and Global tiers, and its response times and coverage hours differ by tier. Confirm the tier you need with Zabbix before you assume support cover is included.

How long does a FortiGate monitoring project take?

Duration depends on the number of firewalls, the number of sites and whether each site has its own Zabbix proxy, plus how many FortiOS versions and HA configurations you run. Work usually includes the admin token or SNMP setup on each firewall, template import and macro tuning, trigger review, and alert routing tests. Those steps repeat per firewall family and per site, so a few firewalls in one site take far less time than many firewalls across several networks. No duration is stated here because none has been researched for this scope. Ask for a timeline in the written scope and check it against the change windows your firewall team can give you.

What do we need to provide before monitoring starts?

You need to provide four things: administrative access on each FortiGate or a firewall administrator who can create the API admin token or configure SNMP, a change window for those firewall changes, a running Zabbix 7.4 server or proxy because both templates require it, and network paths from Zabbix to the firewall management interfaces. Also provide the list of FortiOS versions in production, since the templates were tested on specific releases and you should confirm yours. Name a contact who can approve SNMP community or access settings and decide which alerts go to which team.

Can our internal team set up FortiGate monitoring alone?

Yes, a team with Zabbix and FortiGate administration experience can do this in house, because Zabbix open source includes the templates and the software has no license fee. The hard parts are less about installation and more about secure access: creating a scoped API admin token, or setting up SNMP with the right access, and then testing discovery, item values and triggers on each firewall type. Internal teams often stall on alert design, escalation and keeping templates current after upgrades. If your team has not run Zabbix at this scale before, a fixed-scope engagement can cover the build, while you keep operational ownership.

Should we choose the REST API template or the SNMP template?

Choose the FortiGate by HTTP template if you want API-based collection and can create a dedicated API admin token with limited rights, since it calls the FortiGate REST API with the token stored in the {$FGATE.API.TOKEN} macro. Choose the FortiGate by SNMP template if your security policy and monitoring tools already rely on SNMP, since it polls the FORTINET-FORTIGATE-MIB with SNMP walks for discovery. Both templates require Zabbix 7.4. The HTTP template was tested on FortiGate v7.6.4 and the SNMP template on v7.2.5, so match each choice to your FortiOS versions and confirm the results in your own lab first.

What security risks come with a FortiGate API token or SNMP access?

A FortiGate API admin token is a credential with access to firewall data, so an overly broad token can expose configuration and let an attacker read or change policies. Store it in the Zabbix macro with restricted access, scope the administrator profile to read-only needs where the platform allows it, and rotate it on a schedule. SNMP has its own exposure: older community-based versions send credentials in weak form, so prefer SNMP version 3 with authentication and encryption where your FortiOS and monitoring setup support it. Ask the firewall team to confirm the access model and log who uses it.

Does monitoring FortiGate with Zabbix need a change to our firewall policy?

Monitoring requires changes to the firewall configuration, though not to traffic policies: you create an API admin token or enable and configure SNMP access, and you allow the Zabbix server or proxy to reach the management interface. Those changes should go through your normal change process, with a rollback plan and a test on one firewall before wider rollout. Confirm with your network team that the management path does not cross a segment with restrictive rules, and record the exact changes so your auditors and firewall administrators can see what monitoring added.

What to confirm with your FortiGate and Zabbix environment before choosing

Start with two version checks before you compare templates. Confirm the FortiOS version on every firewall you plan to monitor against the versions Zabbix tested: the FortiGate by HTTP template was tested on FortiGate v7.6.4 and the FortiGate by SNMP template on FortiGate v7.2.5. A firewall that runs a different release is not unsupported by default, but it is untested with that template, so ask whether your FortiOS branch is covered and plan a validation step for any gap. Then confirm that your Zabbix server, and any proxy that will poll the firewall, runs version 7.4 or later, because both templates require it. Older Zabbix servers cannot import these templates, so an upgrade may come before the monitoring work and belongs in the scope and timeline.

Next, decide where the polling happens. A Zabbix proxy placed on the firewall segment keeps the API or SNMP traffic local, reduces the number of firewall management paths you open from the central server, and continues collecting data if the link to the central server drops. Check which network path reaches the firewall management interface, whether that interface is restricted to a management VLAN, and whether a proxy in that segment can reach the central server. If your firewalls sit in several segments or sites, confirm which proxy owns each device before you attach hosts, since moving hosts later changes history and alert routing.

Finally, run a pilot on one firewall before rollout. Pick a device that carries normal traffic, not a lab unit, and compare the data from both templates against the firewall's own dashboard for a few days. Check that discovery returns the interfaces, VPN tunnels and HA members you expect, that the API token or SNMP community has only the read access the template needs, and that triggers fire for a deliberate test condition. Record the FortiOS version, Zabbix version, proxy placement and polling interval used in the pilot, because these are the values you will ask your partner or internal team to reproduce across the rest of the estate.

How DeployOpen works on this

DeployOpen plans and builds Zabbix FortiGate firewall monitoring inside your own infrastructure, choosing between the REST API and SNMP route based on your FortiOS version, admin access model and Zabbix version. We document the setup so your security and network teams can review the API token or SNMP access before anything reaches production.

How we scope

  • Engagements are fixed-scope, with the FortiGate models, FortiOS versions and monitoring goals agreed in writing before work starts.
  • The written scope states whether the REST API route, the SNMP route or both are used, and which Zabbix version the monitoring runs on.
  • We confirm the admin profile, API token ownership, SNMP community or user, and firewall paths from the Zabbix server or proxy before quoting.

How we build

  • We configure the FortiGate by HTTP or FortiGate by SNMP template, with the API token stored in the {$FGATE.API.TOKEN} macro rather than in plain host settings.
  • We test discovery and item collection against each FortiOS version in scope, and check that the template version matches your Zabbix release.
  • We set up triggers, host groups and proxy placement, then verify data for interfaces, sessions, resources and VPN status against the firewall itself.

How we hand over

  • You receive a written record of the template choice, token or SNMP access settings, permissions granted and the tested FortiOS versions.
  • We walk your administrators through the firewall-side configuration, rotation steps for the API token and the SNMP access that remains in place.
  • Known limits, such as any FortiOS version outside the tested list and data the template does not collect, are listed in the handover document.

How we support

  • Ongoing support, template upgrades after a FortiOS or Zabbix change, and continuous testing are available as retainers.
  • Before a FortiOS upgrade, we can retest discovery and item collection so monitoring gaps are found before they reach operations.
  • Changes to the API token, SNMP settings or firewall administrators are documented and reviewed against the original written scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.