SNMPv3 Traps
Posted: Thu Mar 13, 2014 5:25 pm
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?
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?