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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to