Re: problem with notification sending from inside agent

"Suyash Pratap Singh" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
well, so snmptrapd is configured to accept all traps and also igonore
authentication failures. The community configured is 'public'. And when i
start snmpd, a coldstart trap is sent out which is correctly received.

compiling with -Dexamples_notification gives no particular indication in the
log file. I am pretty certain that the code is not being executed. I just 2
lines of code to simply create a file 'testing.txt' in the
init_notification() function, which is supposed to called. But i can't see
that file newhere. So im assuming the code is not being called. However
using net-snmp-config, i am sure that notification module is compiled in the
agent.

any clues???

On Fri, Apr 11, 2008 at 2:52 PM, Dave Shield <[email protected]>
wrote:

> On 10/04/2008, Mike Ayers <[email protected]> wrote:
> >         What traps are you expecting to receive that you are not?
>
> If Suyash has compiled in the 'examples/notification' module,
> then presumably the netSnmpExampleHeartbeatNotification
> trap.   Since that's precisely what this module does.
>
>
>
> >  > I compiled snmpd version 5.4.1 with
> >  > –with-mid-modules="examples/notification" option. Now this
> >  > compiles fine and snmptrapd receives the coldstart trap from
> >  > snmpd when I run it.
>
> OK - so snmpd.conf is configured to send traps to your
> trap receiver.
>
> >  > However there are no other traps generated by snmpd.
>
> Try running the agent using the option '-Dexample_notification'
> What debug output does it generate?
>
> Dave
>

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.