Introduction to SNMP

Hello Thao

The configuration you’ve provided seems correct from the point of view of R1. However, based on your description, you may also want to check some of the following to help you in your troubleshooting process:

  1. Make sure the SNMP service is running on R1. You can check this by running the command “show snmp”.
  2. Check if there are any ACLs that might be blocking SNMP traffic. If there are, you will need to modify them to allow SNMP traffic.
  3. The username MYUSER password password1 role MYGROUP command is used for local authentication, not for SNMP. For SNMPv3, the user is specified in the “snmp-server user” command, which you have correctly configured.
  4. Make sure your Nagios server is configured to use SNMPv3 with the correct user, authentication password, and privacy key.
  5. Also, ensure the Nagios server is configured to use the correct SNMP port (default is 161).

If all of these are correct and you’re still having issues, I would recommend enabling SNMP debugging on the NXOS 9000 using the debug snmp packets command and see if there are any error messages when you try to poll it from the Nagios server.

Below you will find detailed Cisco documentation for the configuration of SNMP on a Nexus 9000 device, for your reference.

Let us know how you get along in your troubleshooting so we can see if we can help you out further.

I hope this has been helpful!