I also try to add
agentPingInterval 15
in my snmpd.conf
I started my master as snmpd -r -f -Le -Dagent
And in the snmpd.log: Warning: Unknown token: agentPingInterval
It seems that this option is not supported. Why? I am using net-snmp5.2.
My problem is the subagent's reconnection to the master. When I start the master before the subagent, I can browse my own mib without a problem via a graphical tool. But then, if I disable the master and restart it again, my subagent is not able to reconnect properly:
AgentX master agent failed to respond to ping. Attempting to re-register.
Another question: where do I have to put the config file for my subagent (mySubagent.conf) ?? In the same directory where lies snmpd.conf?? Do I absolutely need one???
agentPingInterval 15
in my snmpd.conf
I started my master as snmpd -r -f -Le -Dagent
And in the snmpd.log: Warning: Unknown token: agentPingInterval
It seems that this option is not supported. Why? I am using net-snmp5.2.
My problem is the subagent's reconnection to the master. When I start the master before the subagent, I can browse my own mib without a problem via a graphical tool. But then, if I disable the master and restart it again, my subagent is not able to reconnect properly:
AgentX master agent failed to respond to ping. Attempting to re-register.
Another question: where do I have to put the config file for my subagent (mySubagent.conf) ?? In the same directory where lies snmpd.conf?? Do I absolutely need one???
Hi,
thanks for your reply. I looked at the snmpd.conf man page.
As a result I added
netsnmp_ds_set_int(NETSNMP_DS_APPLICATION_ID,
NETSNMP_DS_AGENT_AGENTX_PING_INTERVAL,10);
in the initialization of my subagent.
then I tried to stop my master (snmpd) and start it again. Then my subagent is not able to register again. I got the following error:
Error: Failed to connect to the agentx master agent: Unknown host (No such file or directory)
AgentX master agent failed to respond to ping. Attempting to re-register.
Any ideas??
----- Message d'origine ----
De : Dave Shield <[EMAIL PROTECTED]>
À : brisse <[EMAIL PROTECTED]>
Cc : [email protected]
Envoyé le : Lundi, 13 Mars 2006, 11h54mn 25s
Objet : Re: verify connection to master agent
thanks for your reply. I looked at the snmpd.conf man page.
As a result I added
netsnmp_ds_set_int(NETSNMP_DS_APPLICATION_ID,
NETSNMP_DS_AGENT_AGENTX_PING_INTERVAL,10);
in the initialization of my subagent.
then I tried to stop my master (snmpd) and start it again. Then my subagent is not able to register again. I got the following error:
Error: Failed to connect to the agentx master agent: Unknown host (No such file or directory)
AgentX master agent failed to respond to ping. Attempting to re-register.
Any ideas??
----- Message d'origine ----
De : Dave Shield <[EMAIL PROTECTED]>
À : brisse <[EMAIL PROTECTED]>
Cc : [email protected]
Envoyé le : Lundi, 13 Mars 2006, 11h54mn 25s
Objet : Re: verify connection to master agent
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
> 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
