How do I pass more than one attribute with sqlcounter
Posted:Tue Oct 29, 2013 7:50 pm
Hello world !!!
我想限制the transferred volume of data for my hotspot users to 5GB.
In counter.conf I have :
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.
有提示吗?
TIA
我想限制the transferred volume of data for my hotspot users to 5GB.
In counter.conf I have :
Code:Select all
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}'" }
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.
有提示吗?
TIA