logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Trap handling without using snmptrapd?: msg#00402

Subject: Re: Trap handling without using snmptrapd?
> Is it possible for me to write an application using net-snmp which would
> receive and process traps without using the snmptrapd daemon?

Of course.
It's just a "simple matter of programming" :-)


>                                                              I would
> like my application to do pretty much what snmptrapd does...
>                                                [but] not necessarily
> having the full functionality of snmptrapd in terms of config files

Well, most of the config handling is actually dealt with in the
snmp library.   So all you'd need to do is to remove the unwanted
'register_config_handler' calls from the snmptrapd code.

You might find it easier to start with the current snmptrapd code,
and strip out the bits you don't want - rather than to recode it
from scratch.
  Snmptrapd doesn't do much itself - most of the hard work is handled
by the library.

Dave



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf


<Prev in Thread] Current Thread [Next in Thread>