Created on
07-20-2023
03:29 PM
Edited on
03-17-2025
06:10 AM
By
Jean-Philippe_P
Description |
This article describes how to resolve an issue where SNMP is not established after completing the initial configuration in FortiGate. |
Scope |
FortiGate v6.x.x, and v7.x.x. |
Solution |
Upon attempting to connect the SNMP client (FortiGate) to the SNMP manager (Oputils), the connection fails.
As can be seen in the Sniffer and Wireshark captures, no response is seen from the FortiGate:
If using VDOMs, ensure that the interface being used for SNMP is in the management VDOM:
config global
To make sure the SNMP process sees the incoming packet, take the following debug:
diagnose debug enable Nothing is seen in the output or the following continuously. For example:
snmpd: updating cache: idx_cache snmpd: updating cache: idx_cache snmpd: updating cache: idx_cache snmpd: updating cache: idx_cache snmpd: updating cache: idx_cache snmpd: updating cache: idx_cache
The conditions described in Technical Tip: How to configure FortiGate SNMP Agent for monitoring have been met.
The guide has been verified as per SNMP v1/v2c communities - FortiGate documentation.
This issue can occur if the SNMP agent is disabled. It is necessary to enable the SNMP agent to send the traps and receive queries, which is disabled by default:
config system snmp sysinfo set status enable end
After changing to enable, traffic will be seen on 161 from FortiGate and also the following debug output:
|