Created on 08-08-2023 12:07 AM Edited on 12-12-2024 09:46 PM By Jean-Philippe_P
Description | This article describes how to troubleshoot an issue where SNMP traps do not get generated from the firewall. |
Scope | All FortiGate firewalls. |
Solution |
The first step is to verify if there is an SNMP manager server configured in the firewall as shown below:
config system snmp sysinfo set status enable end
If the route is over a VPN tunnel, consider configuring the Source IP as referenced in the following article:
Make sure that under System -> SNMP, the agent option is enabled and the description fields are filled as shown below:
If it is still not generating, execute these commands:
After executing these commands, try to disable some interfaces in the downtime. Logs should be centered. Execute 'diag debug disable'.
FortiOS provides a mechanism to generate a test SNMP trap which is sent to a configured SNMP server :
diagnose snmp trap send
To see if that test SNMP trap is sent to the remote server, it is possible to open 3 SSH sessions :
SSH No1:
diag debug console timestamp enable diag debug enable
SSH No2:
diagnose snmp trap send
SSH No3:
diagnose sniffer packet any "host x.x.x.x and port abc " 6 0 l <- Where x.x.x.x is the IP address of the SNMP server and ABC is the port used for SNMP traps in the configuration (default 162).
If it is impossible to view traps being sent toward the hosts on SSH No3:
If the issue persists, share the logs when opening the TAC ticket. |
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 2024 Fortinet, Inc. All Rights Reserved.