<div dir="ltr"><div><div><div>I did a system upgrade and my silly disto upgraded FreeRADIUS to 3.0.0 so I am reconfiguring it from scratch because of the changes. I have managed to get SQL up and running but am having troubles getting my sqlcounters to work.<br>
<br></div>After putting the following in /etc/raddb/mods-config/sql/counter/mysql/queries.conf<br><br>sqlcounter counter_octets_daily {<br> sql_module_instance = sql<br><br> counter_name = ChilliSpot-Max-Total-Octets-Daily<br>
check_name = CS-Total-Octets-Daily<br> reply-name = ChilliSpot-Max-Total-Octets<br><br> key = User-Name<br> reset = daily<br>
query = "SELECT IFNULL((SUM(AcctInputOctets + AcctOutputOctets)),0)
FROM radacct WHERE UserName='%{%k}' AND UNIX_TIMESTAMP(AcctStartTime) +
AcctSessionTime > '%b'"<br>}<br><br></div>I put "counter_octets_daily" in the authorize{} block after "sql" in /etc/raddb/sites-available/default<br><br></div>but when I try and boot radiusd I get:<br>
<div><br><div><div><div>/etc/raddb/sites-enabled/default[339]: Failed to find "counter_octets_daily" in the "modules" section.<br>/etc/raddb/sites-enabled/default[220]: Errors parsing authorize section.<br>
<br></div><div>When I remove "counter_octets_daily" from the authorize{} block after "sql" in /etc/raddb/sites-available/default<br><br></div><div>radiusd boots but does not know what the CS-Total-Octets-Daily attribute is so I must be missing something...<br>
<br>I can't find docs for version 3<br><br>Thanks in advance for any help<br></div><div><br></div></div></div></div></div>