Why is not writting in second detail file?

Fajar A. Nugraha list at fajar.net
Tue Oct 25 10:45:50 CEST 2011


On Tue, Oct 25, 2011 at 3:30 PM, tonimanel
<antoniofernandez at fabergames.com> wrote:
> I have defined a second detail file writer that functions correct writting a
> second file. When I define in radiusd.conf this code:
>
> server radiusB {
>        listen {
>                type = detail
>                filename = /var/log/freeradius/radacct/second_detail
>                load_factor = 25
>        }

This is a READER.

> Writer doesn't writes to the file.

First thing to check is whether you have a second instance of
rlm_detail that WRITES to that file.

>  Module: Instantiating module "second_detail" from file
> /etc/freeradius/modules/detail
>  detail second_detail {
>        detailfile = "/var/log/freeradius/radacct/second_detail"
>        header = "%t"
>        detailperm = 384
>        dirperm = 493
>        locking = no
>        log_packet_header = no
>  }

... and apparently you do. That was the instantiation part ...

> +- entering group accounting {...}
> [detail]        expand:
> /var/log/freeradius/radacct/%{Client-IP-Address}/detail-%Y%m%d ->
> /var/log/freeradius/radacct/192.168.1.7/detail-20111025
> [detail] /var/log/freeradius/radacct/%{Client-IP-Address}/detail-%Y%m%d
> expands to /var/log/freeradius/radacct/192.168.1.7/detail-20111025
> [detail]        expand: %t -> Tue Oct 25 10:19:36 2011
> ++[detail] returns ok
> [second_detail]         expand: /var/log/freeradius/radacct/second_detail ->
> /var/log/freeradius/radacct/second_detail
> [second_detail] /var/log/freeradius/radacct/second_detail expands to
> /var/log/freeradius/radacct/second_detail
> [second_detail]         expand: %t -> Tue Oct 25 10:19:36 2011
> ++[second_detail] returns ok

... and that part shows an accounting packet written to two different
detail file by the "detail" and "second_detail" instance.


> Polling for detail file /var/log/freeradius/radacct/second_detail
> Detail - Renaming /var/log/freeradius/radacct/second_detail ->
> /var/log/freeradius/radacct/second_detail.work
> detail_recv: Read packet from /var/log/freeradius/radacct/second_detail.work
>        User-Name = "probador"
>        Acct-Session-Id = "1319530776V34yzo"
>        NAS-IP-Address = 127.0.0.1
>        NAS-Identifier = "Localhost"
>        NAS-Port = 0
>        Calling-Station-Id = "1115551212"
>        Acct-Status-Type = Stop
>        Acct-Session-Time = 180
>        Acct-Delay-Time = 1
>        Acct-Unique-Session-Id = "7fca33c18994b4b7"
>        Packet-Original-Timestamp = "Oct 25 2011 10:19:36 CEST"
>        Packet-Transmit-Counter = 1
> server replicatedRadius {

... and that part shows the rader processing the second_detail file.

So everything looks OK. What did you think went wrong, and why?

-- 
Fajar




More information about the Freeradius-Users mailing list