Thanks Dave,
I'll look into that. The reason why i don't/didn't want to use the  
existing traphandler is because they only seem to use scripts or perl  
and i would like to embed snmp functionality in my own application.

Alef
On Oct 9, 2007, at 11:04 PM, Dave Shield wrote:

> On 07/10/2007, Alef Veld <[EMAIL PROTECTED]> wrote:
>> I'm trying to integrate the net-snmp snmptrapd.c to my own
>> application, and i would like to be able to pass received traps from
>> snmptrapd.c to display in my own eventviewer. I don't want to use a
>> traphandle.....    Is there any way to pass a
>> already parsed trap to my own function ?
>
> That's effectively what the traphandle routines are intended for.
> You could write a simple Netsnmp_Trap_Handler wrapper, that
> just passes the pdu parameter to your own function (or however
> you need the information).
>
> See apps/snmptrapd_handlers.c for the API details.
> (e.g. 'print_handler()', etc)
>
> Dave
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to