Skip to main content
AlexC-FTNT
Staff
Staff
Aug 13, 2024 12:01 PM UTC

Troubleshooting Tip: General troubleshooting guide for SNMP issues

  • Sep 23, 2026 10:28 AM UTC
  • 0 replies
  • 27684 views
  • Translate All

Description

 

This article provides a go-to point for troubleshooting all SNMP issues that may occur with polling information from FortiGate, sorted by issue type. This article does not focus on SNMP traps.

 

Scope

 

FortiGate.

 

Solution

 

General setup guide (make sure setup is performed correctly before taking any other troubleshooting steps): Technical Tip: How to Configure FortiGate SNMP Agent for Monitoring.

 

No reply to SNMP (at all, or only on one interface/VDOM/unit):

 

Debug flow example:

 

2024-11-13 13:24:14 id=20085 trace_id=20 func=resolve_ip_tuple_fast line=5950 msg="Find an existing session, id-11edd8e0, original direction"
2024-11-13 13:24:17 id=20085 trace_id=21 func=print_pkt_detail line=5864 msg="vd-root:0 received a packet(proto=17, 192.168.11.123:55398->10.246.16.1:161) tun_id=4.2.55.66 from CNVtoGSC. "
2024-11-13 13:24:17 id=20085 trace_id=21 func=resolve_ip_tuple_fast line=5950 msg="Find an existing session, id-11edd8e0, original direction"

 

Only some OIDs are not working or return unexpected values:

If all of the above are matched, make sure to have the latest FortiOS version available and then open a support case to investigate.

 

SNMPD crashes (depending on the type):

For the other cases, contact TAC support for help with troubleshooting. Collect SNMP debug output (from diagnose debug crash logd -1 and diagnose debug enable while reproducing the crash).

 

Troubleshooting actions on FortiGate (after all the above fail):

  • Gracefully restart snmpd:

 

diagnose test application snmpd 99

 

Debugging (if enabled) will display the following:

diagnose test application snmpd 99

snmpd: received debug test signal
restarting snmp daemon
snmpd: creating community=fortinet
snmpd: community: fortinet mask:       9e9ff9f37f
snmpd: creating community=FortiManager
snmpd: community: FortiManager mask: 7fffffffffffffff
snmpd: set mac_host_timeout as 300


  • Alternatively, forcefully restart snmpd using one of the 2 CLI command methods outlined below:

 

CLI Method 1:

 

diagnose sys process pidof snmpd
diagnose sys kill 11 <pid#>


diagnose sys process pidof snmpd <- This command will return the process ID of the snmpd process(es) in use. 

CLI Method 2:

 

fnsysctl killall snmpd

 

See Technical Tip: Find and restart/kill a process on a FortiGate by the process ID (PID) via pidof. The result will be seen as snmpd showing another process number, and the crashlog will show 'signal 11' sent by the user to snmpd.

  • Check the packet capture to ensure packets are seen/received by FortiGate.

  • Check the debug flow for the SNMP request to determine if it is passed or blocked.

  • Check if the SNMP port is used/open on FortiGate: diagnose sys udpsock | grep 161.
    See Technical Tip: SNMP process is not listening.

  • Check the output of snmpd -1 debug: if the request is not blocked by the interface or other security checks, the output will provide the reason for failure.

 

Note: SNMP queries only work on the management (root) VDOM or dedicated management interfaces.

 

config system interface
    edit <mgmt-iface>
        set vdom root
        set allowaccess snmp
end

 

Related articles:

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024