> Maybe the trap you are sending is not correct? In
> snmptrapd_handlers.c
> I see:
>
> /*
> * v2c/v3 notifications *should* have snmpTrapOID
> as the
> * second varbind, so we can go straight there.
> * But check, just to make sure
> */
>
> and if it can't find it, it logs: "Cannot find
> TrapOID in TRAP2 PDU".
>
As far as I can see the trapoid is the second varbind
from my SNMP server.
> Can you try sending a V2 trap from something else to
> see if it logs
> correctly? You could configure snmpd.exe to send
> traps by configuring
> it with 'trap2sink 192.168.1.1 public' for example.
>
I added the above line trap2sink 0.0.0.0 public to
snmpd.conf and get the following error:
[d:\net-snmp-5.2.1\bin]snmpd
No log handling enabled - turning on stderr logging
d:/net-snmp-5.2.1/etc/snmp/snmpd.conf: line 1:
Warning: Unknown token: mibdirs.
d:/net-snmp-5.2.1/etc/snmp/snmpd.conf: line 2:
Warning: Unknown token: persistentDir.
d:/net-snmp-5.2.1/etc/snmp/snmpd.conf: line 3:
Warning: Unknown token: tempFilePattern.
snmpd: send_trap: Failure in sendto (No such file or
directory)
NET-SNMP version 5.2.1
Thanks.
/Shobana
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders