<div dir="ltr">Dear Fajar<div>That worked beautifully, thanks ! Can you point me in the direction of setting up daily BW limits as well please ?</div><div>Regards</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Jul 15, 2014 at 1:59 PM, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On Tue, Jul 15, 2014 at 6:33 PM, Ali Jawad <<a href="mailto:alijawad1@gmail.com">alijawad1@gmail.com</a>> wrote:<br>
> Hi Fajar<br>
> Thanks for the input, so if I use dailycounter instead of daily, and of<br>
> course dailycounter is defined in sql/mysql/counter.conf does freeradius<br>
> automatically know that it should look into sql counter.conf, or should I<br>
<br>
</div>Have you read the configuration file (i.e. radiusd.conf)? If not, please do.<br>
<br>
Here's the upstream version (I assume you use distro-bundled FR-2.x):<br>
<a href="https://github.com/FreeRADIUS/freeradius-server/blob/v2.x.x/raddb/radiusd.conf.in#L746" target="_blank">https://github.com/FreeRADIUS/freeradius-server/blob/v2.x.x/raddb/radiusd.conf.in#L746</a><br>
<div class=""><br>
<br>
<br>
> comment out counter without db ?<br>
<br>
</div>In general, only use/activate the modules you need. Do you need the<br>
counter module?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Fajar<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> Regards<br>
><br>
><br>
> On Tue, Jul 15, 2014 at 1:25 PM, Fajar A. Nugraha <<a href="mailto:list@fajar.net">list@fajar.net</a>> wrote:<br>
>><br>
>> On Tue, Jul 15, 2014 at 5:59 PM, Ali Jawad <<a href="mailto:alijawad1@gmail.com">alijawad1@gmail.com</a>> wrote:<br>
>> > counter daily {<br>
>> ><br>
>> > filename = ${db_dir}/db.daily<br>
>><br>
>><br>
>> > rlm_counter: Failed to open file /etc/raddb/db.daily: Permission denied<br>
>> ><br>
>> > /etc/raddb/modules/counter[71]: Instantiation failed for module "daily"<br>
>><br>
>> > What strikes me as weird is why does freeradius try to look in db.daily<br>
>> > which does not exist, instead of the MySQL table radacct ?<br>
>><br>
>> counter -> store data in a file (gdbm)<br>
>> sqlcounter -> use accounting data stored in sql<br>
>><br>
>><br>
>> > Any pointers in the right directions please?<br>
>><br>
>> Try <a href="http://wiki.freeradius.org/modules/Rlm_sqlcounter" target="_blank">http://wiki.freeradius.org/modules/Rlm_sqlcounter</a><br>
>><br>
>> --<br>
>> Fajar<br>
>> -<br>
>> List info/subscribe/unsubscribe? See<br>
>> <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
><br>
><br>
><br>
> -<br>
> List info/subscribe/unsubscribe? See<br>
> <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</div></div></blockquote></div><br></div>