Re :Re: Agent & Subagent connection status

This is a discussion on Re :Re: Agent & Subagent connection status within the SNMP Users forums, part of the Networking and Network Related category; --===============0500089982== Content-Type: multipart/alternative; boundary="=_4e3ec7fa5c34d77f69f18b2c52a3c69a" --=_4e3ec7fa5c34d77f69f18b2c52a3c69a Content-Type: text/plain; charset="ISO-8859-1" ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008
girish
 
Posts: n/a
Default Re :Re: Agent & Subagent connection status

--===============0500089982==
Content-Type: multipart/alternative;
boundary="=_4e3ec7fa5c34d77f69f18b2c52a3c69a"

--=_4e3ec7fa5c34d77f69f18b2c52a3c69a
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit

Thanks for the reply Dave.Why I'm asking for this is I need to set some flag in my subagent code when ever master goes down. Once master comes up I need to reset that flag so that my subagent will not receive any notifications untill master has came up. On Mon, 18 Feb 2008 09:33:51 +0000 "Dave Shield" wrote On 18 Feb 2008 06:54:39 -0000, girish wrote: > I want to know how we can get information that master and subagents > have been connected. Not possible, I'm afraid. The connection from the subagent to the master isn't done until *after* the "init_agent" routine is processed. This is because the config file settings (handled by the "init_snmp" call) may specify the AgentX connection to use. So the subagent cannot connect to the master until fairly late in the initialization cycle ("SNMP_CALLBACK_POST_READ_CONFIG"). > Also whenever master goes down i want to inform the same to my subagent. If you have set the AgentX ping interval (e.g. using
the config directive agentxPingInterval), then the subagent will try to maintain contact with the master agent, and attempt to re-connect if this connection is lost. This is handled by the main (sub)agent framework code. You don't have to worry about this yourself. Dave


Regards,
Girish
--=_4e3ec7fa5c34d77f69f18b2c52a3c69a
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks for the reply Dave.<br /><br />Why I'm asking for this is I need to =
set some flag in my subagent code when ever master goes down. Once master c=
omes up I need to reset that flag so that my subagent will not receive any =
notifications untill master has came up. <br /><br /><br />On Mon, 18 Feb 2=
008 09:33:51 +0000 "Dave Shield" wrote<br /> On 18 Feb 2008 06:54:39 -000=
0, girish wrote:<br /> &gt; I want to know how we can get information th=
at master and subagents<br /> &gt; have been connected.<br /> <br /> Not=
possible, I'm afraid.<br /> The connection from the subagent to the maste=
r isn't done until *after* the<br /> "init_agent" routine is processed. =
This is because the config file settings<br /> (handled by the "init_snmp"=
call) may specify the AgentX connection to use.<br /> So the subagent can=
not connect to the master until fairly late in the<br /> initialization cy=
cle ("SNMP_CALLBACK_POST_READ_CONFIG").<br /> <br /> <br /> &gt; Also =
whenever master goes down i want to inform the same to my subagent.<br /> =
<br /> If you have set the AgentX ping interval (e.g. using the config dir=
ective<br /> agentxPingInterval), then the subagent will try to maintain c=
ontact with the<br /> master agent, and attempt to re-connect if this conn=
ection is lost.<br /> This is handled by the main (sub)agent framework =
code. You don't have<br /> to worry about this yourself.<br /> <br /> D=
ave<br /> =20
<br><br>Regards,<br />
Girish<br><Table border=3D0 Width=3D644 Height=3D57 cellspacing=3D0 cellpad=
ding=3D0 style=3D'font-family:Verdana;font-size:11px;line-height:15px;'><TR=
><td><a href=3D'http://adworks.rediff.com/cgi-bin/AdWorks/click.cgi/www.red=

iff.com/signature-home.htm/1050715198@Middle5/2048400_2041094/2048411/1?PAR=
TNER=3D3&OAS_QUERY=3Dnull' target=3Dnew ><img src =3D'http://imadworks.redi=
ff.com/cgi-bin/AdWorks/adimage.cgi/2048400_2041094/creative_2048411.gif' a=
lt=3D'Rediff Generics' border=3D0></a></td></TR></Table>
--=_4e3ec7fa5c34d77f69f18b2c52a3c69a--


--===============0500089982==
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--===============0500089982==
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

--===============0500089982==--

Reply With Quote
Reply


Thread Tools
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

vB 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 11:55 AM.


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