Created on
08-13-2024
05:01 AM
Edited on
09-22-2025
12:13 AM
By
Jean-Philippe_P
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.
FortiGate.
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 app snmpd -1 and diagnose debug enable while reproducing the crash).
Troubleshooting actions on FortiGate (after all the above fail):
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
diagnose sys process pidof snmpd <----- It will return the process ID of snmpd to use.
diagnose sys kill 11 <pid#>
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.
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:
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.