Re: [Linux-ISP] Re: (ASCEND) Re: Radius Log file analysis

Dave Algeo (dave@soark.net)
Sun, 2 Feb 1997 16:34:11 -0600 (CST)

On Sun, 2 Feb 1997, Mike Taylor wrote:

> On Sun, 2 Feb 1997, Skeeve Stevens wrote:
>
> > I still need a way to split the master detail file up into seperate months,
> > which will not be confused by (as i said before) someone who logs on at the
> > 30th of the month at 11pm and logs on at the 1st of the month.. say 2am.
> >
> What I did to solve the problems is to move the detail file to a directory
> for that month and add an extension with the daydate every night at 23:59.
> This way I have seperate files for each day which makes it quicker to
> generate reports for a single day. It also solves the days/month problem,
> as soon as the next month starts you just cat all of last months files
> together for one report, so instead of running reports on the 28th, 30th,
> 31st, you just run it on the 1st.
>
wouldnt be easier to import to a database?? then creates a file
'total.time' with one line per user like. at end of month file is renamed
time.last.

Id: [username] Your total time as of [reportdate] is [time] hours.

all the above is done by cron....

i click on the check timetodate [or time last month] runs a cgi with:

grep $username total.time |mail $username or cgi
grep $username time.last |mail $username

we also do reports: on port activity by port to find bad ports, port load
ver time, user time avg. and port usage reports etc etc... which are
useful for planning the future or maintaining present service.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Dave Algeo - Jefferson Communication 2600 Cherry St. Pine Bluff AR. USA
dave@soark.net voice (501)534-8271 fax (501) 534-4658 Radio N5RHI
* Internet * Pagers * Voice Mail * Phone Systems * Intercoms *
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
finger dave@soark.net for pgp public key and fingerprint
=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=