Snmp "unknown user name"

Trying to get a couple 9.0 systems setup to do snmp v3, authNoPriv queries. (I’m using a check_mk server to monitor with their agent and snmp queries.)

I’ve been using the same setup that works on RL8.6 but any of the 9.0 systems I’ve set up refuse to work. I keep getting:

snmpget: Unknown user name

I can get snmpV2 and V1 to function but I need to use V3 for security requirements.

Just ran through these steps:

  • stopped snmpd
  • ran net-snmp-config --create-snmpv3-user -A authpassword -a MD5 username
  • verified that /var/lib/net-snmp/snmpd.conf was modified to add the user with a usmUser entry
  • started snmpd
  • Checked the usmUser entry in /var/lib/net-snmp/snmpd.conf
    ** It’s now gone, the file has reverted to it’s original contents

If you have the check-mk-agent rpm package installed, then usually all agent communication is on port 6556. The server doesn’t need to be monitored via SNMP, unless you are maybe after something else additional that the check-mk-agent doesn’t give? Is there a reason for monitoring over SNMP as well as the check-mk-agent? Wouldn’t the check-mk-agent and associated plugins be enough?

I don’t tend to use SNMP on my servers, just the check-mk-agent.

As for SNMP, shouldn’t you make changes in /etc/snmp/snmpd.conf file?