There is still an possible NULL pointer issue at current code!
Have a look at my patch.
I configure the trap session via the MIB, not the configuration files.
It is like we want to use it in our real system.
Only or the test script, I use this example to show the problem.
Note: No trapsession and no trap user with engineID used!
(The engineID is only set for the testcase, not at real world!)
Please try this configuration:
claus-kleins-macbook-pro:snmp-test-42-64202 clausklein$ tail *.conf
==> snmpd.conf <==
engineID 0x7f000001
snmpNotifyTable "NMS" "NMS" 1 3 1
targetAddr NMS .1.3.6.1.6.1.1 0x7f00000104d2 1500 3 "NMS" NMS 3 1
targetParams NMS 3 3 unsec 1 3 1
authtrapenable 1
createUser unsec MD5 --none-- DES --none--
rwuser unsec noAuthNoPriv -V all '*'
master agentx
agentxsocket tcp:127.0.0.1:7050
authcommunity read,write snmptrapd default -V all snmptrapd
==> snmptrapd.conf <==
authcommunity log public
authUser log unsec noAuthNoPriv -V _all_ '*'
agentxsocket tcp:127.0.0.1:7050
createUser -e 0x80001f880430783766303030303031 unsec MD5 --none-- DES
--none--
claus-kleins-macbook-pro:snmp-test-42-64202 clausklein$I send you my full tests scripts for all kind of trap message sending and notification logging.
Please add this to the default tests, they work all with my patch. Kindly regards; Claus Klein
T058agentauthtrap1_simple
Description: Binary data
T058agentauthtrap2_simple
Description: Binary data
T058agentauthtrap3_simple
Description: Binary data
T058agentauthtrap4_simple
Description: Binary data
T058agentauthtrap5_simple
Description: Binary data
T058agentauthtrap6_simple
Description: Binary data
T058agentauthtrap7_simple
Description: Binary data
engineID-v3trap.diff
Description: Binary data
On 04.12.2010, at 00:42, Claus Klein wrote:
On 01.12.2010, at 07:42, Wes Hardaker wrote:We've released Net-SNMP 5.6.1.pre1 which contains bug fixes over the 5.6 release. Please give it a whirl and let us know how it works for you!There is still a problem with snmpV3 traps!With this simple configuration, the v3 trap is not logged from snmptrapd.To there are 2 a NULL pointer issues while v3 trap sending! This problem exist on branch 5.4, 5.5, 5.6, and on trunk. I attach a patch and a test script based on trunk. Please fix before release. With regards, Claus
------------------------------------------------------------------------------ What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
