Technical Tip: SNMP failed to specific host when host set to trap only
| Description | This article describes that SNMP is failing for specific hosts and fails to match the community. |
| Scope | FortiOS. |
| Solution | Run the SNMP debug on FortiGate.
diagnose debug reset
In SNMP debug it shows it failed to match the community.
snmpd: request 1(root)/28/10.238.100.41 != comm 1/0/172.17.248.21/255.255.255.255 snmpd: host or intf mismatch snmpd: checking against community "FortiManager" snmpd: name mismatch. snmpd: failed to match community "FortiN******"
Check community name is the same on both the FortiGate and SNMP servers. Check the configuration of the SNMP community and host configuration.
config system snmp community
As the host type is set to trap only due to this, there is the error of community mismatch. To resolve this, set the host-type to any so FortiGate will also respond to the query. |

