session-time with incorrect calculations
Hi I am running FreeRadius 1.0.4 with Postgres. I have noticed that the sessiontime is sometimes calculated incorrectly in the radacct table. If you compare the acctsessionstart and the acctsessionend with the acctsessiontime it does not match. This is particularly true for connections ended with idle-timeout. When would session times generally be wrong and how can I stop this from happening ? Thanks Barry
Barry <barry@infosys.co.za> wrote:
If you compare the acctsessionstart and the acctsessionend with the acctsessiontime it does not match. ... When would session times generally be wrong and how can I stop this from happening ?
As a general principle, FreeRADIUS logs what it receives. If the session time is wrong, then it's because the NAS sent the data. The only solution to bad data is to fix the NAS. Alan DeKok.
Barry wrote:
I am running FreeRadius 1.0.4 with Postgres. I have noticed that the sessiontime is sometimes calculated incorrectly in the radacct table. If you compare the acctsessionstart and the acctsessionend with the acctsessiontime it does not match. This is particularly true for connections ended with idle-timeout.
When would session times generally be wrong and how can I stop this from happening ?
Could be a feature of the NAS to distract the idle time from the session time so as not to bill the user for unused time. Check your NAS features/configuration. -- Groeten, Regards, Salutations, Thor Spruyt M: +32 (0)475 67 22 65 E: thor.spruyt@telenet.be W: www.thor-spruyt.com www.salesguide.be www.telenethotspot.be
Hi
I am running FreeRadius 1.0.4 with Postgres. I have noticed that the sessiontime is sometimes calculated incorrectly in the radacct table. If you compare the acctsessionstart and the acctsessionend with the acctsessiontime it does not match. This is particularly true for connections ended with idle-timeout.
When would session times generally be wrong and how can I stop this from happening ?
Thanks Barry
Freeradius just logs what is sent over. Are you using radrelay? We get session delays sometimes when using radrelay when our sql server is overwhelmed. Check for acctstartdelay and acctstopdelay. If you find it, subtract acctstartdelay from the session time and see if that makes sense.
participants (4)
-
Alan DeKok -
Barry -
Dusty Doris -
Thor Spruyt