<div dir="ltr">Hi,<div><br></div><div>Please find my radius -X output.</div><div><br></div><div>Now, for some reason. It give this error:</div><div><br></div><div><div>sqlcounter_expand: 'SELECT IFNULL(SUM(acctsessiontime - GREATEST((0 - UNIX_TIMESTAMP(acctstarttime)), 0)),0) FROM radacct WHERE username = '%{User-Name}' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '0''</div>
<div>(9) ERROR: noresetcounter : %{sql:SELECT IFNULL(SUM(acctsessiontime - GREATEST((%b - UNIX_TIMESTAMP(acctstarttime)), 0)),0) FROM radacct WHERE username = '%{%k}' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '%b'}SELECT IFNULL(SUM(acctsessiontime - GREATEST((0 - UNIX_TIMESTAMP(acctstarttime)), 0)),0) FROM radacct WHERE username = '%{User-Name}' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '0'}</div>
<div>(9) ERROR: noresetcounter : ^ Invalid variable expansion</div></div><div><br></div><div><br></div><div>This is my sqlcounter</div><div><br></div><div><div>sqlcounter noresetcounter {</div>
<div> sql_module_instance = sql</div><div> #dialect = ${sql_module_instance}.dialect</div><div> dialect = mysql</div><div> counter_name = Daily-Session-Time</div><div> check_name = Max-Daily-Session</div>
<div> reply_name = Session-Timeout</div><div> key = User-Name</div><div> reset = never</div><div>query = "SELECT IFNULL(SUM(acctsessiontime - \</div><div> GREATEST((%b - UNIX_TIMESTAMP(acctstarttime)), 0)),0) \</div>
<div> FROM radacct WHERE username = '%{%k}' AND \</div><div> UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '%b'"</div><div>}</div></div><div><br></div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, May 12, 2014 at 8:21 PM, Alan DeKok <span dir="ltr"><<a href="mailto:aland@deployingradius.com" target="_blank">aland@deployingradius.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">* wrote:<br>
><br>
> Thank you for your reply.<br>
><br>
> Here is my radius -X<br>
<br>
</div> No, it's not. You need to post ALL of it.<br>
<br>
And don't add extra blank lines. Or ">" quote markers. It's<br>
annoying. Just attach a text file. If it's too big for the list (100K)<br>
gzip it, and then attach it.<br>
<span class="HOEnZb"><font color="#888888"><br>
Alan DeKok.<br>
</font></span><div class="HOEnZb"><div class="h5">-<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>