<div dir="ltr">Hi<div><br></div><div>We are using asterisk 1.8.23.1</div><div><br></div><div>We have a script that runs on a minute cron which polls the asterisk server for 3 bits of information by using</div><div><br></div>
<div>asterisk -rx 'command'</div><div><br></div><div>which then gets pushed to a graphite server we have</div><div><br></div><div>99% of this runs smoothly.</div><div><br></div><div>Every now and again, the asterisk service will become completely unresponsive and if we look at the logs we will see the following:</div>
<div><br></div><div><div>[2013-11-07 00:17:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:17:01] VERBOSE[26566] asterisk.c: -- Remote UNIX connection disconnected</div><div>[2013-11-07 00:17:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div>
<div>[2013-11-07 00:17:01] VERBOSE[26586] asterisk.c: -- Remote UNIX connection disconnected</div><div>[2013-11-07 00:17:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:18:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div>
<div>[2013-11-07 00:18:01] VERBOSE[26650] asterisk.c: -- Remote UNIX connection disconnected</div><div>[2013-11-07 00:18:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:18:01] VERBOSE[26670] asterisk.c: -- Remote UNIX connection disconnected</div>
<div>[2013-11-07 00:18:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:19:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:19:01] VERBOSE[26736] asterisk.c: -- Remote UNIX connection disconnected</div>
<div>[2013-11-07 00:19:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:19:01] VERBOSE[26756] asterisk.c: -- Remote UNIX connection disconnected</div><div>[2013-11-07 00:19:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div>
<div>[2013-11-07 00:20:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:20:01] VERBOSE[26820] asterisk.c: -- Remote UNIX connection disconnected</div><div>[2013-11-07 00:20:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div>
<div>[2013-11-07 00:20:01] VERBOSE[26841] asterisk.c: -- Remote UNIX connection disconnected</div><div>[2013-11-07 00:20:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:21:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div>
<div>[2013-11-07 00:21:01] VERBOSE[26914] asterisk.c: -- Remote UNIX connection disconnected</div><div>[2013-11-07 00:21:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:21:01] VERBOSE[26934] asterisk.c: -- Remote UNIX connection disconnected</div>
<div>[2013-11-07 00:21:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:22:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:22:01] VERBOSE[27000] asterisk.c: -- Remote UNIX connection disconnected</div>
<div>[2013-11-07 00:22:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:22:01] VERBOSE[27020] asterisk.c: -- Remote UNIX connection disconnected</div><div>[2013-11-07 00:22:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div>
<div>[2013-11-07 00:23:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:23:01] VERBOSE[27084] asterisk.c: -- Remote UNIX connection disconnected</div><div>[2013-11-07 00:23:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div>
<div>[2013-11-07 00:23:01] VERBOSE[27104] asterisk.c: -- Remote UNIX connection disconnected</div><div>[2013-11-07 00:23:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:24:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div>
<div>[2013-11-07 00:24:01] VERBOSE[27170] asterisk.c: -- Remote UNIX connection disconnected</div><div>[2013-11-07 00:24:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:24:01] VERBOSE[27190] asterisk.c: -- Remote UNIX connection disconnected</div>
<div>[2013-11-07 00:24:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:25:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:25:01] VERBOSE[27255] asterisk.c: -- Remote UNIX connection disconnected</div>
<div>[2013-11-07 00:25:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:25:01] VERBOSE[27276] asterisk.c: -- Remote UNIX connection disconnected</div><div>[2013-11-07 00:25:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div>
<div>[2013-11-07 00:26:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div><div>[2013-11-07 00:26:01] VERBOSE[27624] asterisk.c: -- Remote UNIX connection disconnected</div><div>[2013-11-07 00:26:01] VERBOSE[25963] asterisk.c: -- Remote UNIX connection</div>
<div>[2013-11-07 00:26:01] VERBOSE[27644] asterisk.c: -- Remote UNIX connection disconnected</div></div><div><br></div><div>As you can see, at these times there isn't a disconnect for every connect. I think this ends up maxing out the amount of connections the service allows and that's what makes it unresponsive. A service restart fixes the issue at this time.</div>
<div><br></div><div>This happens completely randomly, I've not been able to correlate this happening with any other events that are going on at the time.</div><div><br></div><div>Can anyone think of any reason why doing the asterisk -rx command might not disconnect cleanly?</div>
<div><br></div><div>Thanks in Advance</div><div><br></div><div>Ish</div><div><div><br></div>-- <br><div dir="ltr"><pre>Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: <a href="mailto:ish@pack-net.co.uk" target="_blank">ish@pack-net.co.uk</a>
w: <a href="http://www.pack-net.co.uk" target="_blank">http://www.pack-net.co.uk</a>
Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
</pre></div>
</div></div>