On Thu, 2006-03-09 at 11:30 +0100, brisse wrote:
> I would like a mechanism to check the connection to
> the master agent. For example the master crashes and
> then up again. How can I make sure that my subagent
> reconnect properly to the master???
Please see the snmpd.conf(5) man page - in particular
the 'agentPingInterval' directive.
> Do I have to do
> these steps again:
>
> netsnmp_ds_set_boolean(NETSNMP_DS_APPLICATION_ID,NETSNMP_DS_AGENT_ROLE,1));
> init_agent("mySubAgentName");
> init_myMIB();;
> init_snmp("mySubAgentName");
>
> then again my loop:
> agent_check_and_process(0);
Have a look at how this directive is implemented - in particular,
follow the code through from 'agentx_reopen_session()' (in the file
mibgroup/agentx/subagent.c)
Dave
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders