Re :Re: Re :Re :Re: Agent & Subagent connection status

"girish" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <1203334847.S.2916.57920.f4mail-235-208.rediffmail.com.old.1203335300.8617@webmail.rediffmail.com>
thanks for the suggestion. will try itand one more thing is i'm using "agent_check_and_process" which i missed mentioning in the earlier mail:while(1)&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; agent_check_and_process(1);/*0 = don't block*/&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; snmp_shutdown("subagent_daemon");&nbsp;&nbsp;&nbsp; SOCK_CLEANUP;Here whenever master goes down souldn't "agent_check_and_process" function return "-1"??When I tried printing it when master gone down for the 1st time it returned "1" and after 15 seconds it use to return "0". When it will return "-1" then???On Mon, 18 Feb 2008 11:43:40 +0000 "Dave Shield"  wrote  On 18 Feb 2008 11:19:15 -0000, girish  wrote:  &gt; So, cant I inform my subagent by any means that master has gone down and  &gt; u stop rec
 eiving the informs from other module and not to forward to master???    One option would be to add something to the routine "agentx_reopen_session"  (agent/mibgroup/agentx/subagent.c), which
  is called when the subagent loses  contact with the master agent.     If it fails to re-establish contact, then it currently just sets an  alarm to try  again later.  You could add something to choke the handling of informs there.  I suppose.    Dave  


Regards,
Girish

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