Inform socket overflow issue
raja vankam <[email protected]> Thu, 4 Jun 2026 17:14:06 -0500
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAAixXyVycj+0G_0OHh6+dkK0Rv+1Fut=i58ftPM8yhTZugOrSw@mail.gmail.com> |
--===============4427399021375868522== Content-Type: multipart/alternative; boundary="0000000000007d0fcf065374dd58" --0000000000007d0fcf065374dd58 Content-Type: text/plain; charset="UTF-8" Hi, I am seeing an issue with net-SNMP-5.9.1 configured to send informs where I get an error that maximum sockets 1024 are opened and no more files can be opened. I even tried net-SNMP-5.9.5.2 as well. This issue surfaces after a time frame of about 240 days with 4 Informs every day. To accelerate the issue, I configured it to send informs every 10 sec with a retry of 1 min. I see an error after about 2 hours of run time. I did run a tcpdump command during the testing to confirm I receive acknowledgements from the trap receiver. There are occasional missed acknowledgements and I see a retry with a successful acknowledgement. watch -n 1 "ls /proc/<PID>/fd | wc -l" gives output as 1024 which is the default socket limit in our Linux. I tried SNMP GET for every 5 sec with no issue in the number of sockets. So GETs are not a problem. Errors I see are: /proc/stat: Too many open files interface_linux: cannot open /proc/net/dev: Too many open files interface_linux: cannot open /proc/net/dev: Too many open files /proc/stat: Too many open files interface_linux: cannot open /proc/net/dev: Too many open files Agent configuration: compiled for V2C agent Agent is generating Informs from a posix thread that is actively waiting for the events. send_v2trap() is used to generate Informs. snmpd.conf file: (retry count is 72, interval is 1 min) rwcommunity private trapsess -v 2c -Ci -c tech -r 72 -t 60 192.168.1.100:162 Any inputs in this regard are greatly appreciated. Regards, Raj. --0000000000007d0fcf065374dd58 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi,<div>I am seeing an issue with net-SNMP-5.9.1 configure= d to send informs where I get an error that maximum sockets 1024 are opened= and no more files can be opened.</div><div>I even tried=C2=A0 net-SNMP-5.9.5.2 as well.</div><div><br></div><div>This issue surfaces afte= r a time frame of about 240 days with=C2=A04 Informs every day. To accelera= te the issue, I configured it to send informs every 10 sec with a retry of = 1 min. I see an error after about 2 hours of run time.</div><div>I did run = a tcpdump command during the testing to confirm I receive acknowledgements = from the trap receiver. There are occasional missed acknowledgements and I = see a retry with a successful acknowledgement.=C2=A0watch -n 1 "ls /pr= oc/<PID>/fd | wc -l" gives output as 1024 which is the default s= ocket limit in our Linux.</div><div><br></div><div>I tried SNMP GET for eve= ry 5 sec with no issue in the number of sockets. So GETs are not a problem.= </div><div><br></div><div>Errors I see are:<br>/proc/stat: Too many open fi= les<br>interface_linux: cannot open /proc/net/dev: Too many open files<br>i= nterface_linux: cannot open /proc/net/dev: Too many open files<br>/proc/sta= t: Too many open files<br>interface_linux: cannot open /proc/net/dev: Too m= any open files</div><div><br></div><div>Agent configuration:</div><div>comp= iled for V2C agent</div><div>Agent is generating Informs from a posix threa= d that is actively waiting for the events.</div><div>send_v2trap() is used = to generate Informs.</div><div><br></div><div>snmpd.conf file: (retry count= is 72, interval is 1 min)</div><div>rwcommunity private</div><div>trapsess= -v 2c -Ci -c tech -r 72 -t 60 <a href=3D"http://192.168.1.100:162">192.168= .1.100:162</a></div><div><br></div><div>Any inputs in this regard are great= ly appreciated.</div><div><br></div><div>Regards,</div><div>Raj.</div><div>= <br></div><div><br></div></div> --0000000000007d0fcf065374dd58-- --===============4427399021375868522== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============4427399021375868522== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============4427399021375868522==--