<div dir="ltr">Dear Gentlemen<br>I'm having a problem with my daily count :<br><br>sqlcounter chillispot_max_bytes_daily {<br>counter-name = ChilliSpot-Max-Total-Octets<br>check-name = ChilliSpot-Max-Total-Octets<br>reply-name = ChilliSpot-Max-Total-Octets<br>
sqlmod-inst = sql<br>key = User-Name<br>reset = daily<br>query = "SELECT SUM(AcctInputOctets - GREATEST((%b - UNIX_TIMESTAMP(AcctStartTime)), 0))+ SUM(AcctOutputOctets -GREATEST((%b - UNIX_TIMESTAMP(AcctStartTime)), 0))<br>
FROM radacct WHERE UserName='%{%k}' AND UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime > '%b'"<br>}<br><br>It is disconnecting the user if limit is reached but user can connect again like it is not stopping the account, now if i replace the query with #query = "SELECT (SUM(AcctInputOctets)+SUM(AcctOutputOctets)) FROM radacct WHERE UserName='%{%k}'" that will disconnect the account and it wont be able to connect again but the problem here with reset , how i will be able to reset daily? <br>
Best regards<br></div>