Projects / RadiusReport


RadiusReport can analyse the logfiles produced by all the major Radius Servers including Livingston Radius V2.0+, V1.16, Merit Radius, Ascend Radius, Dale Reed's RadiusNT, Radiator Perl Radius Server, but excluding Microsoft Radius. It will allow you to produce many, varied, types of reports from one or multiple radius log files.


Recent comments

17 Jul 2007 06:49 johan_frid

Time calculation correction
If you have problem with that Login, Logout-time is plus one hour agents what the detail file says, its likely du to daylight saving.

The fix to this problem is to change the following line from:

my $cal = mktime($sec, $min, $hour, $mday, $monthshash{$month}, $year,

$weekhash{$day}, 0, 0);


my $cal = mktime($sec, $min, $hour, $mday, $monthshash{$month}, $year,

$weekhash{$day}, 0, -1);

07 Sep 2001 14:18 locutuz

Very Useful - 1 code error - 1 enhancement
I have been using this program for almost 2 years and it is EXTREMELY useful for keeping track of usage. Here are 2 comments which I find make the program a little more useful by fixing these 2 small bugs.

-- Multiple Logins are being calculated incorrectly --
To fix find line:
$duplicate_login = (($stoptimestamp{session} < $previous_session_time) ? 1 : 0);

and replace with:
$duplicate_login = (($starttimestamp{session} < $previous_session_time) ? 1 : 0);

Another useful item I put in there is to calculate a buffer zone for multiple logins.. for instance, user joe logs off TS1 at 17:30:59, and logs into TS3 at 17:29:15. The reason for this is often that the TS's have a time offset and it is not really a multiple login. I add a 5 minute buffer to my multi-login checking by doing this:

After modifying the line in the fix above add the following line directly above it.
$dup_prev_sess_time = ($previous_session_time - 300);

Now modify the next line (which is the one we fixed above) to read:
$duplicate_login = (($starttimestamp{session} < $dup_prev_sess_time) ? 1 : 0);

In mine, I actually specify 300 in a var assigned in the config at the top of the file to make it neater, but this is the crude fix. Seems to work well. Note that this var must be specified in seconds.


Project Spotlight


A Fluent OpenStack client API for Java.


Project Spotlight

TurnKey TWiki Appliance

A TWiki appliance that is easy to use and lightweight.