| Description | This article describes how to fix the error 'socket/bind 162: Address already in use' o SNMP configuration on FortiAnalyzer. |
| Scope |
FortiAnalyzer v6.4.0, v7.0.0, v7.2.0 and above. |
| Solution |
Sometimes, when trying to configure the SNMP agent and SNMP community on the FortiAnalyzer, the SNMPD process is not initialized and SNMP communication fails. The SNMPD process ID is changing very quickly and it is not possible to kill or restart it.
The SNMPD process ID is visible with the following command:
diag system process list
On the SNMP debug the following messages appear:
FAZ # diagnose debug application snmpd -1 FAZ # diagnose debug enable
FAZ # snmpd: creating community=t3lmeXKom
The above error means that port162 is already used on the FortiAnalyzer configuration and that is why the SNMPD process could not be initialized Checking the SNMP configuration following settings:
config system snmp community (community)# edit 2
In this example, the user wrongly configured the same UDP port 162 for SNMP traps and queries causing the reported behavior.
query_v2c_port : 161 |
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.