Bluehost.com Web Hosting $6.95

Re: Cannot send trap from my trapdaemon

This is a discussion on Re: Cannot send trap from my trapdaemon within the SNMP Users forums, part of the Networking and Network Related category; On 05/04/07, maciej_golas <maciej_golas@o2.pl> wrote: > I developed my own trap receiver programm called ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2007
Dave Shield
 
Posts: n/a
Default Re: Cannot send trap from my trapdaemon

On 05/04/07, maciej_golas <maciej_golas@o2.pl> 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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:52 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0