Strange Issue with datacounter_acct.sh

classic Classic list List threaded Threaded
2 messages Options
| Threaded
Open this post in threaded view
|

Strange Issue with datacounter_acct.sh

Selahattin Cilek
I am running FreeRADIUS 3.0.17. I have run into a strange issue with
the  *datacounter_acct*. It will run the *datacounter_acct.sh* only when
it receives an *Interim-Update* packet from the NAS, and *NOT* when it
receives a *Start* or *Stop* packet. What am I missing here?

This is my datacounter_acct file:

exec check_quota {
         wait = no
         program = "/usr/local/bin/bash
/usr/local/etc/raddb/scripts/datacounter_acct.sh %{request:User-Name}
%{request:Calling-Station-Id} %{request:NAS-IP-Address} %{request:Class}
%{request:Acct-Status-Type} %{request:Called-Station-Id}"
     }


This is a part of my default site:

accounting {

...
     exec
...

}





--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
| Threaded
Open this post in threaded view
|

Re: Strange Issue with datacounter_acct.sh

Selahattin Cilek
Please forget about the previous mail. I found out that in my haste, I
missed an important detail. It was because of a mishap in my
configuration. The problem is solved now. Sorry.


On 19.03.2020 15:30, Selahattin ÇİLEK wrote:

> I am running FreeRADIUS 3.0.17. I have run into a strange issue with
> the  *datacounter_acct*. It will run the *datacounter_acct.sh* only
> when it receives an *Interim-Update* packet from the NAS, and *NOT*
> when it receives a *Start* or *Stop* packet. What am I missing here?
>
> This is my datacounter_acct file:
>
> exec check_quota {
>         wait = no
>         program = "/usr/local/bin/bash
> /usr/local/etc/raddb/scripts/datacounter_acct.sh %{request:User-Name}
> %{request:Calling-Station-Id} %{request:NAS-IP-Address}
> %{request:Class} %{request:Acct-Status-Type}
> %{request:Called-Station-Id}"
>     }
>
>
> This is a part of my default site:
>
> accounting {
>
> ...
>     exec
> ...
>
> }
>
>
>
>
>

--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html