Re: popen() is executed many times in MODE_SET_ACTION:

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 17/10/2007, goon863 <[email protected]> wrote:
> I found the problem is "ping" command....
> While i run "snmpget -c public -v2c 192.168.0.148 1.3.6.1.4.1.9362.1.7.0",
> the snmpd will run several times handle_led7(),and the code
>  fp=popen("ping -c 8 www.google.com","r") is run serveral times too.

The most likely cause is that the "ping" command is taking too long to complete,
and the "snmpget" command is getting impatient, and resending the request.

Try extending the timeout period of the snmpget command:

    snmpget -t 600 -r 0 -c public -v2c 192.168.0.148 1.3.6.1.4.1.9362.1.7.0

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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.