SNMPv3 Traps

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
page
Posts: 13
Joined: Thu Dec 06, 2012 11:35 am

SNMPv3 Traps

Post 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?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: SNMPv3 Traps

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked