This is good, although we require that at the end of the month all
existing records that don't have a stop record at the turn of the month
get truncated at 00:00h the next day.
Would it be possible to have some sort of hook that intercepted the
incoming acct packet, then check if it's start record is in the previous
month, create the truncated record, create a new Start record at the
beginning of the month and then put down the modified Stop record?
The one who demands much ;-)
Pete.
Hugh Irvine wrote:
>
> Hi Pete -
>
> On Wed, 06 Oct 1999, Pete Black wrote:
> > Is there any way to put in a post accounting hook?
> >
> > We need to create another accounting log file in our own format on the
> > fly and we need to know if we can do it via a hook or by altering the
> > code itself.
>
> The simplest way to do this is in your Handler(s) or Realms(s):
>
> <Handler ...>
> AcctLogFileName .....
> AcctLogFileFormat .....
> ......
> </Handler>
>
> You can specify as many files with as many formats as you wish.
>
> See Section 6.13.4 and 6.13.5 in the Radiator 2.14.1 reference manual.
>
> hth
>
> Hugh
>
> --
> Radiator: the most portable, flexible and configurable RADIUS server
> anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
> Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8,
> NT, Rhapsody
--
==================================================================
_/ Pete Black: Network Administrator mailto:[EMAIL PROTECTED]
_/ Dot Communications Pty Ltd http://www.dot.net.au/
==================================================================
begin:vcard
n:Black;Pete
tel;pager:02 9966 7689
tel;cell:0411 648 655
tel;fax:02 9281 2219
tel;work:02 9281 1111
x-mozilla-html:TRUE
url:http://www.dot.net.au/~pete/
org:Dot Communications Pty Ltd;Network Operations Center
version:2.1
email;internet:[EMAIL PROTECTED]
title:Network Administrator
adr;quoted-printable:;;Level 19, Central Square,=0D=0A323 Castleraigh St=0D=0A;Sydney;NSW;2000;Australia
x-mozilla-cpt:;0
fn:Pete Black
end:vcard