Bluehost.com Web Hosting $6.95

Re: problem with notification sending from inside agent

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-...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008
Suyash Pratap Singh
 
Posts: n/a
Default Re: problem with notification sending from inside agent

--===============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 &lt;<a href=3D"mailto:D.T.Shield@liverpool.ac.uk">D.T.=
Shield@liverpool.ac.uk</a>&gt; 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 &lt;<a href=3D"mailto:mike_=
ayers@tvworks.com">mike_ayers@tvworks.com</a>&gt; wrote:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; 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. &nbsp; Since that's precisely what this module does.<br>
<div class=3D"Ih2E3d"><br>
<br>
<br>
&gt; &nbsp;&gt; I compiled snmpd version 5.4.1 with<br>
&gt; &nbsp;&gt; =96with-mid-modules=3D&quot;examples/notification&quot; opt=
ion. Now this<br>
&gt; &nbsp;&gt; compiles fine and snmptrapd receives the coldstart trap fro=
m<br>
&gt; &nbsp;&gt; 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>
&gt; &nbsp;&gt; However there are no other traps generated by snmpd.<br>
<br>
</div>Try running the agent using the option '-Dexample_notification&#3=
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==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:51 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0