This is a discussion on Re: problem with notification sending from inside agent within the SNMP Users forums, part of the Networking and Network Related category; --===============0495910284== Content-Type: multipart/alternative; boundary="----=_Part_31458_20783783.1207905995955" ------=_Part_31458_20783783.1207905995955 Content-Type: text/plain; charset=WINDOWS-1252 Content-...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============0495910284==
Content-Type: multipart/alternative; boundary="----=_Part_31458_20783783.1207905995955" ------=_Part_31458_20783783.1207905995955 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 th= e 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 th= e agent. any clues??? On Fri, Apr 11, 2008 at 2:52 PM, Dave Shield <D.T.Shield@liverpool.ac.uk> wrote: > On 10/04/2008, Mike Ayers <mike_ayers@tvworks.com> 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 > > > =96with-mid-modules=3D"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 > ------=_Part_31458_20783783.1207905995955 Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline well, so snmptrapd is configured to accept all traps and also igonore authe= ntication failures. The community configured is 'public'. And when = i start snmpd, a coldstart trap is sent out which is correctly received. <b= r> <br>compiling with -Dexamples_notification gives no particular indication i= n 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 i= nit_notification() function, which is supposed to called. But i can't s= ee 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 th= e agent.<br> <br>any clues???<br><br><div class=3D"gmail_quote">On Fri, Apr 11, 2008 at = 2:52 PM, Dave Shield <<a href=3D"mailto:D.T.Shield@liverpool.ac.uk">D.T.= Shield@liverpool.ac.uk</a>> wrote:<br><blockquote class=3D"gmail_quote" = style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8= ex; padding-left: 1ex;"> <div class=3D"Ih2E3d">On 10/04/2008, Mike Ayers <<a href=3D"mailto:mike_= ayers@tvworks.com">mike_ayers@tvworks.com</a>> wrote:<br> > What traps are you expecting to receive th= at you are not?<br> <br> </div>If Suyash has compiled in the 'examples/notification' module,= <br> then presumably the netSnmpExampleHeartbeatNotification<br> trap. Since that's precisely what this module does.<br> <div class=3D"Ih2E3d"><br> <br> <br> > > I compiled snmpd version 5.4.1 with<br> > > =96with-mid-modules=3D"examples/notification" opt= ion. Now this<br> > > compiles fine and snmptrapd receives the coldstart trap fro= m<br> > > snmpd when I run it.<br> <br> </div>OK - so snmpd.conf is configured to send traps to your<br> trap receiver.<br> <div class=3D"Ih2E3d"><br> > > However there are no other traps generated by snmpd.<br> <br> </div>Try running the agent using the option '-Dexample_notification= 9;<br> What debug output does it generate?<br> <font color=3D"#888888"><br> Dave<br> </font></blockquote></div><br> ------=_Part_31458_20783783.1207905995955-- --===============0495910284== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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;198757...un.com/javaone --===============0495910284== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0495910284==-- |