Hello world !!!
I want to limit the transferred volume of data for my hotspot users to 5GB.
In counter.conf I have :
sqlcounter volumecounter{
counter-name = Max-All-Octets
check-name = Mikrotik-Total-Limit
reply-name = Mikrotik-Xmit-Limit
sqlmod-inst = sql
key = User-Name
reset = never
query = "select ifnull(sum(acctinputoctets),0) from radacct WHERE UserName='%{%k}'"
}
This only conpares to Mikrotik-Total-Limit and returns only Mikrotik-Xmit-Limit. What do I need to do
to get the return values for the related Gigawords values ?
Is it possible to get both values from one counter or do I need a second one?
I have seen that the problem was often discussed here, the answers were always “use …-Gigawords”, but
no one had a solution how to implement it.
Any hints ?
TIA