FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
Article Id 198520



This article describes how to find and set the correct OID to monitor each interface state with SNMP polling.






FortiGate system resources and other statuses can be monitored with SNMP polling. An OID (Object Identifier Value) is an address used to identify a particular device and its status. Each device has a unique OID which can be used to track the performance and status of that particular device.


Download the FortiGate MIB file:

Technical Tip: How to get and troubleshoot MIBs and OIDs from SNMP

To check a device's OID:


  1. Install any MIB browser (iReasoning was used as an example in this article).
  2.  Use the MIB browser to load the FortiGate MIB file to find the OID for the status of the interface. is the OID used to check the interface's status.

A FortiGate can have multiple interfaces. To monitor a specific interface, use the OID, where the 'x' is the snmp-index number for that specific interface.
To check the SNMP-index number of the interface, issue the command 'show system interface' and check the output. For example:

config system interface
    edit "1-A10"
        set vdom "root"
        set type physical
        set snmp-index 10 <-
The correct OID for 1-A10 will be
OID . (ifOperStatus) refers only to the physical interface and subinterface status.
It should not be used for checking the VPN interface status.
The reason is clarified in this article:
A separate OID exists for checking the VPN interface status: (fgVpnTunEntStatus).

Another option to find the OID is to connect the iReasoning MIB browser with the FortiGate. Below are the steps to do it:


  1. Create SNMP Agent and SNMP Community on the FortiGate after going to System -> SNMP -> Create New (under SNMPv1/v2c):






  1. Add the management IP address of the FortiGate on the 'Address' field of the iReasoning MIB Browser and configure the 'Advanced Properties of SNMP Agent' as below:




  1. Choose the operation in the 'Operations' field and select 'Go' and will be generated the list of all OIDs. To get the OID, just select a name on the list and the OID will appear on top:




Related article:

Technical Tip: SNMP Charting with PRTG.