Re: problem with mysql accounting

This is a discussion on Re: problem with mysql accounting within the FreeRADIUS Users forums, part of the Networking and Network Related category; basile wrote: > accounting_start_query = "INSERT into radaact SET\ > `User-Name` = '%{User-Name}',\ > `Calling-Station-Id` = '%{Calling-Station-...


Go Back   Usenet Forums > Networking and Network Related > FreeRADIUS Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-21-2006
Dennis Skinner
 
Posts: n/a
Default Re: problem with mysql accounting

basile wrote:
> accounting_start_query = "INSERT into radaact SET\
> `User-Name` = '%{User-Name}',\
> `Calling-Station-Id` = '%{Calling-Station-Id}',\
> `Called-Station-Id` = '%{Called-Station-Id}',\
> `NAS-IP-Address` = '%{NAS-IP-Address}',\
> `NAS-Port` = %{NAS-Port},\
> `Timestamp Start` = NOW(),\
> `Acct-Unique-Session-Id` = '%{Acct-Unique-ession-Id}'
> "


Any particular reason you are using backticks (`) instead of single
quotes (') around the column names? I'm not sure if they have special
meanings in radius/mysql.

You should also ensure that the Acct-Unique-Session-Id is truly unique
when you UPDATE. Often NAS's will reuse supposedly unique id's. Esp if
they are rebooted. Looking for a Timestamp Start within X hours of
NOW() may help you out there. Otherwise you may update really old rows
and have sessions that look like they lasted 30 days or something. We
ran into this problem.

--
Dennis Skinner
Systems Administrator
BlueFrog Internet
http://www.bluefrog.com
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:16 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0