Re: NET SNMP Sub agent And Master Agent Ping Interval

Wes Hardaker <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Sparta
Message-ID <[email protected]>
>>>>> On Mon, 22 Mar 2010 19:47:50 +0530, Ashish vashishtha <[email protected]> said:

Av> i am trying to set the ping interval in the application by
Av> netsnmp_ds_set_int(NETSNMP_DS_APPLICATION_ID,
Av> NETSNMP_DS_AGENT_AGENTX_PING_INTERVAL,1);
Av> but still it is not working and it is trying to reconnect after 15
Av> sec.

Are you sure there is no other location that it might be getting a ping
interval from?  Like a configuration file?

The other thing is that the above function call doesn't reset the alarm
timer and thus if the ping alarm is already registered the above won't
over-ride it.  See subagent_register_ping_alarm in
agent/mibgroup/agentx/subagent.c if you want to fix it.
-- 
Wes Hardaker
Cobham Analytic Solutions

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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.