Created on
‎11-14-2024
10:29 PM
Edited on
‎09-18-2025
10:21 PM
By
Jean-Philippe_P
| Description | This article describes scenarios when 'Message authentication or checking failed (USM authentication failure)' is encountered while performing an SNMPv3 walk. |
| Scope | FortiGate. |
| Solution |
CLI log: date=2024-11-14 time=00:13:00 eventtime=1731523380957393442 tz="+0530" logid="0100029021" type="event" subtype="system" level="warning" vd="root" logdesc="SNMP query failed" user="snmp_user" dstip=10.210.1.3 dstport=161 srcip=10.210.2.56 srcport=3747 version="SNMP_v3" msg="Message authentication or checking failed (USM authentication failure)." Debug output: FW1 # diagnose debug console timestamp en FW1 # diagnose debug app snmpd -1 FW1 # diagnose debug enable One of the reasons this error is encountered is when the '$' character is used in either password or username; This string is altered when received on the firewall, resulting in authentication failure.
Another reason could be a mismatch between the authentication algorithm selected on the FortiGate and the monitoring server. Ensure that the authentication algorithm configured (e.g., MD5, SHA1, SHA224, SHA384, SHA256, SHA512) matches on both sides. Take a packet capture and verify that the SNMP manager is sending authentication and encryption parameters.
Note: Third-party SNMP agents will request a complexity of the password at the Authentication/Encryption algorithm, because of this, the base length should be at least 8 characters. If the password is not that long, the error 'parse failed. errno=-44 (USM authentication failure)' will be shown. |
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.