(RADIATOR) Skip a accounting

kaiser kaiser at gentrice.net
Tue Nov 15 19:13:29 CST 2005


Hi,
Thanks for your reply.

We use radiator to receive stop accounting packet and save to MySQL.
It works fine.
We hope to ignore some kinds of stop accounting with a condition for
example, if the attribute Acct-Session-Time =0 , we don't want to save this
accounting record to MySQL DB.
Because we always find Qadiator always save all incoming accounting packets
to DB.

Do you have any suggestion?

parts of readius.cfg

<Realm DEFAULT>
      PostAuthHook file:"/etc/radiator/test.pl"
      PreProcessingHook file:"/etc/radiator/cost2.pl"


AccountingTable cdrs
 DefaultSimultaneousUse 1
AcctColumnDef billseconds,Acct-Session-Time,integer
AcctColumnDef   cardnum,User-Name
AcctColumnDef type,Service-Type,integer


kaiser

----- Original Message ----- 
From: "Hugh Irvine" <hugh at open.com.au>
To: "kaiser" <kaiser at gentrice.net>
Cc: <radiator at open.com.au>
Sent: Wednesday, November 16, 2005 5:23 AM
Subject: Re: (RADIATOR) Skip a accounting


>
> Hello Kaiser -
>
> Can you give me a bit more detail about what accounting requests you
> do not want to be inserted in the database?
>
> If it is always the same type of accounting request, you can set up a
> Handler just for those requests.
>
> regards
>
> Hugh
>
>
> On 16 Nov 2005, at 01:51, kaiser wrote:
>
> > Hi,
> >
> > We use MySQL to store Accounting record, can we use a hook program
> > to filte some accounting message without insert a accounting record
> > into the accounting table? We try many different way, readiator
> > always save radius message into accounting table define in radius.cfg.
> >
> > Thanks.
> >
> >
> >
>
>
> NB:
>
> Have you read the reference manual ("doc/ref.html")?
> Have you searched the mailing list archive (www.open.com.au/archives/
> radiator)?
> Have you had a quick look on Google (www.google.com)?
> Have you included a copy of your configuration file (no secrets),
> together with a trace 4 debug showing what is happening?
>
> -- 
> Radiator: the most portable, flexible and configurable RADIUS server
> anywhere. Available on *NIX, *BSD, Windows, MacOS X.
> -
> Nets: internetwork inventory and management - graphical, extensible,
> flexible with hardware, software, platform and database independence.
> -
> CATool: Private Certificate Authority for Unix and Unix-like systems.
>
>
> --
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on radiator-announce at open.com.au
> To unsubscribe, email 'majordomo at open.com.au' with
> 'unsubscribe radiator' in the body of the message.
>

--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list