Page 1 of 1

SNMPv3 Traps

Posted: Thu Mar 13, 2014 5:25 pm
by page
I am now trying to configure SNMPv3 Traps and thought this might be an easy process as I was able to figure out the SNMPv3 queries from my earlier post (http://support.nagios.com/forum/viewtop ... =6&t=25975 and http://support.nagios.com/forum/viewtop ... 16&t=26034). If I understand the process you need to add the following into the /var/lib/net-snmp/snmptrapd.conf file:

createUser -e <EngineID> <UserName> <AuthenticationProtocol> "<AuthenticationPassword" <PrivacyProtocol> "<PrivacyPassword>"

I was able to find the engine ID by running the following snmpget (SNMPv1, but 2c would work too) command:

snmpget -c <Community> -v 1 <IPaddress>:<port> snmpEngineID.0
snmpget -c MyCommunity -v 1 192.168.1.10:161 snmpEngineID.0

This returned back a Hex string. I also read that the 5th octet determines the remainder of the string (MAC address in this case):
10 00 05 5F 03 00 85 B6 B8 D2 8F

However everytime I try to test it doesn't seem to work. I have tried the following:
createUser -e "10 00 05 5F 03 00 85 B6 B8 D2 8F" MyUser MD5 "MyPassword" DES "MyPassword"
createUser -e 1000055F030085B6B8D28F MyUser MD5 "MyPassword" DES "MyPassword"

Am I missing something? Is there anything else that needs to be done?

Re: SNMPv3 Traps

Posted: Fri Mar 14, 2014 9:29 am
by sreinhardt
This is something I have been meaning to setup, test and document, and just have not had time. I think you might find this post helpful, as he does get it working, short of an issue with his device changing engine id's every time.