Re: Sending trap from source code
"Pranesh Kulkarni" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Yeah I am able to get the traps from the agent for the "examples/notification" . Thanks Ron To get the traps from the my MIB , should I recompile the snmpd with my mib .. And where should I have source code to send the my traps. Pranesh On Thu, Mar 20, 2008 at 11:00 AM, Pranesh Kulkarni <[email protected]> wrote: > I recompiled the snmpd with --with-mib-modules="examples/notification" .. > How to send the traps from the agent now ?? > > On Wed, Mar 19, 2008 at 6:52 PM, Ron Rader <[email protected]> > wrote: > > > > From: Pranesh Kulkarni [mailto:[email protected]] > > > After modifying the .c file, where should I integrate so that I can > > send the trap ? > > > > I'd like to add a "me too" to Pranesh's request. In my case, I have > > generated our private MIB notification code templates, and filled them in > > with placeholder data. I was also able to set up an alarm to test trap > > generation _exclusively within the agent_. All that stuff works fine. > > > > My question is: does the generated header then become accessible as a > > "public" API for the SNMP agent? I would really like to generate these > > traps from our C++ business logic. Haven't developed the latter to the > > point where I can test this out yet, although adding "extern "C" { ... }" > > allows compilation. > > > > [Pranesh, try recompiling snmpd with > > --with-mib-modules="examples/notification" and follow the guidelines in > > agent/mibgroup/examples/notification.c for your own MIBs.] > > > > Many thanks, > > > > Ron > > > > > > > > The information contained in this message may be privileged and > > confidential and protected from disclosure. If the reader of this message is > > not the intended recipient, or an employee or agent responsible for > > delivering this message to the intended recipient, you are hereby notified > > that any dissemination, distribution or copying of this communication is > > strictly prohibited. If you have received this communication in error, > > please notify us immediately by replying to the message and deleting all > > copies. Thank you. > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > 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 > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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