Re: How to to check if an agentx is connected to master?

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 2020-05-04 22:41, Łukasz Bolda wrote:
> Hello,
> What is the best way to check (during runtime) if an agentx is connected to
> master?
> Right now i was trying to call this:
> 
> 	if( agentx_send_ping(main_session) )
> 		std::cout<<"AgentX is connected to master"<<std::endl;
> 
> but then (when everything is fine, and don't need reconnection) every second
> net-snmp produces log:
> 
> 	AgentX session to master agent attempted to be re-opened
> 
> I am using the 5.8 version from github downloaded May 4, 2020.

Is it really necessary to check whether the AgentX connection is still
operational? Isn't there a mechanism in Net-SNMP that automatically
restores that connection if necessary?

Bart.


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