I would be very interested in this. We had some downtime on a 30 concurrent user test server because IPs had gotten "lost" in accounting, eg the NAS hadn't sent an accounting-stop so the IP was never added back to the pool. Preventing this from happening automatically would be very useful (having the script produce a usable output to a logfile or sql would be even handier, so we can see just where the IPs are "leaking").
<br><br>Thanks,<br><br>Jan Mulders<br><br><div><span class="gmail_quote">On 16/01/07, <b class="gmail_sendername">Cory Robson</b> <<a href="mailto:cory@cmi.net.au">cory@cmi.net.au</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Further investigations into this make me believe an alternative session<br>script function ability is required.<br><br>Currently when you click on the stale sessions link within dialup admin it<br>just removes that record entirely.
<br><br>Now with My upstream provider I get accounting updates every 15 mins so the<br>best method would be to get the start date add the last session online time<br>and complete the stop record based on that. If there is no session time then
<br>wipe the record.<br><br>If the sql script was independent then for people like me who have a max<br>session time set for 8 hrs I could check for sessions supposedly online for<br>more than that period and run a cron to run the script every hour or so.
<br><br><br>Just a thought<br><br><br><br>-----Original Message-----<br>From: freeradius-users-bounces+cory=<a href="mailto:cmi.net.au@lists.freeradius.org">cmi.net.au@lists.freeradius.org</a><br>[mailto:<a href="mailto:freeradius-users-bounces+cory=cmi.net.au@lists.freeradius.org">
freeradius-users-bounces+cory=cmi.net.au@lists.freeradius.org</a>] On<br>Behalf Of Alan DeKok<br>Sent: Thursday, 21 December 2006 12:42 PM<br>To: FreeRadius users mailing list<br>Subject: Re: Stale session problem<br><br>
Cory Robson wrote:<br>> Has anyone written a script or event process to monitor the update packets<br>> against the users apparently online and in the event that no update is<br>> received in a 20 min period (my updates are every 15 mins from the NAS)
<br>> create a close session event?<br><br> I don't think one has been written, but it shouldn't be too hard to<br>write something that does the proper SQL SELECTs.<br><br> If you do write one, *please* submit it back, and we'll include it in
<br>the next release.<br><br> Alan DeKok.<br>--<br> <a href="http://deployingradius.com">http://deployingradius.com</a> - The web site of the book<br> <a href="http://deployingradius.com/blog/">http://deployingradius.com/blog/
</a> - The blog<br>-<br>List info/subscribe/unsubscribe? See<br><a href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a><br><br>__________ NOD32 1932 (20061220) Information __________
<br><br>This message was checked by NOD32 antivirus system.<br><a href="http://www.eset.com">http://www.eset.com</a><br><br><br>-<br>List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html">
http://www.freeradius.org/list/users.html</a><br></blockquote></div><br>