On 05/04/07, maciej_golas <[EMAIL PROTECTED]> wrote:
> I developed my own trap receiver programm called trapd based on snmptrapd.


> Whe this func is run and I've this error:
> send_trap: no v2 trapOID varbind provided
>
> Could you tell me what's wrong with my function?

Can't spot anything obviously wrong.
Try adding some debug code to print out the var_list
chain before calling send_v2trap.   What does it look like?



> Anyway: how to set trap destination and port within my trapd or this 
> send_trap()?

The API 'send_v2trap' is designed for use within an SNMP agent,
and will direct all notifications to the destination(s) configured in
the snmpd.conf file.

If you're writing a trap receiver, then I'd suggest you look at the
code in the routine 'forward_handler' (in 'apps/snmptrapd_handlers.c')
instead.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to