radacct/radutmp out of sync

Tuc at T-B-O-H.NET ml at t-b-o-h.net
Sun Jun 22 19:28:11 CEST 2008

> Tuc at T-B-O-H.NET wrote:
> > 	What are some possible causes in 2.0.4 for the radacct (MySQL) and 
> > radutmp (That feeds radwho) to get out of sync. It seems almost 100% of the
> > time, radwho/radutmp isn't showing the user, while radacct has no acctstoptime.
>   radutmp requires specific information to store a utmp record.  If that
> information isn't in an accounting request, no record is created.
	Ok, thanks. I have to do more work to see if radutmp EVER had a 
record for the user or not. My initial thought was that when the user logged
off and an accounting stop record was sent, that it updated the radutmp file,
and then "SOMETHING" happened that the sql radacct didn't get updated. I never
thought that for some reason the accounting start and interim update records
were getting into sql but none of it ever making radutmp.

	Are radutmp entrys ONLY created during accounting start requests, and
deleted during accounting stop records (Or Accounting On/Off for a NAS), or
can an accounting interim-update cause the creation of a radutmp entry that
wasn't there previously?

		Thanks, Tuc

More information about the Freeradius-Users mailing list