<meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Here is the result of the SQL Query :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>SELECT SUM(AcctInputOctets) FROM radacct WHERE  <a href="/user/SendEmail.jtp?type=node&node=4801856&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>';<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>SUM(AcctInputOctets)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>68882<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>And freeradius log for the counter section :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Debug: rlm_sqlcounter: Entering module authorize code<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Debug: WARNING: Please replace '%k' with '${key}'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Debug: sqlcounter_expand:  'SELECT SUM(AcctInputOctets) FROM radacct WHERE UserName='%{User-Name}''<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Info: (0) totalinputoctets :  expand: SELECT SUM(AcctInputOctets) FROM radacct WHERE UserName='%{User-Name}' -> SELECT SUM(AcctInputOctets) FROM radacct WHERE <a href="/user/SendEmail.jtp?type=node&node=4801856&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Debug: WARNING: Please replace '%S' with '${sqlmod-inst}'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Debug: sqlcounter_expand:  '%{sql:SELECT SUM(AcctInputOctets) FROM radacct WHERE <a href="/user/SendEmail.jtp?type=node&node=4801856&i=2" target="_top" rel="nofollow" link="external">[hidden email]</a>'}'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Info: (0) totalinputoctets : sql_xlat<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Info: (0) totalinputoctets :  expand: %{User-Name} -> <a href="/user/SendEmail.jtp?type=node&node=4801856&i=3" target="_top" rel="nofollow" link="external">[hidden email]</a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Info: (0) totalinputoctets : sql_set_user escaped user --> '<a href="/user/SendEmail.jtp?type=node&node=4801856&i=4" target="_top" rel="nofollow" link="external">[hidden email]</a>'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Info: (0) totalinputoctets :  expand: SELECT SUM(AcctInputOctets) FROM radacct WHERE <a href="/user/SendEmail.jtp?type=node&node=4801856&i=5" target="_top" rel="nofollow" link="external">[hidden email]</a>' -> SELECT SUM(AcctInputOctets) FROM radacct WHERE <a href="/user/SendEmail.jtp?type=node&node=4801856&i=6" target="_top" rel="nofollow" link="external">[hidden email]</a>'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Info: (0) totalinputoctets:  expand: /usr/local/var/log/radius/sqltrace.sql -> /usr/local/var/log/radius/sqltrace.sql<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Debug: rlm_sql (sql): Reserving sql socket id: 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Debug: rlm_sql_mysql: query:  SELECT SUM(AcctInputOctets) FROM radacct WHERE <a href="/user/SendEmail.jtp?type=node&node=4801856&i=7" target="_top" rel="nofollow" link="external">[hidden email]</a>'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Info: (0) totalinputoctets: sql_xlat finished<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Debug: rlm_sql (sql): Released sql socket id: 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Info: (0) totalinputoctets :  expand: %{sql:SELECT SUM(AcctInputOctets) FROM radacct WHERE <a href="/user/SendEmail.jtp?type=node&node=4801856&i=8" target="_top" rel="nofollow" link="external">[hidden email]</a>'} -> 68882<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Debug: rlm_sqlcounter: (Check item - counter) is less than zero<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Wed Sep 14 09:17:45 2011 : Debug: rlm_sqlcounter: Rejected user <a href="/user/SendEmail.jtp?type=node&node=4801856&i=9" target="_top" rel="nofollow" link="external">[hidden email]</a>, check_item=0, counter=68882<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Any idea ?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks for your help<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Nicolas<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De :</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Suman Dash [via FreeRadius] [mailto:<a href="/user/SendEmail.jtp?type=node&node=4801856&i=10" target="_top" rel="nofollow" link="external">[hidden email]</a>] <br><b>Envoyé :</b> mardi 13 septembre 2011 19:44<br><b>À :</b> nfourel<br><b>Objet :</b> Re: Problem with rml_sqlcounter with GigaByte datavolume<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'>SELECT SUM(AcctInputOctets) FROM radacct WHERE  UserName='username'<br><br>Run the above query in mysql and post the result<br><br>then post the freeradius log specific to this section.<o:p></o:p></p><div><p class=MsoNormal>On Tue, Sep 13, 2011 at 10:00 PM, Nicolas FOUREL <<a href="/user/SendEmail.jtp?type=node&node=4799383&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:<o:p></o:p></p><p class=MsoNormal>Hi Arran,<br><br>I have get version 3.0.0 with 64 bit counters support from Git and installed<br>it. Unfortunatly, I still have the same problem with my sql counter which<br>has always "check_item=0" when I put a value bigger than 2^32. On<br>Access-Request in debug mode, I have the following lines :<br><br>Tue Sep 13 18:20:47 2011 : Debug: rlm_sqlcounter: (Check item - counter) is<br>less than zero<br>Tue Sep 13 18:20:47 2011 : Debug: rlm_sqlcounter: Rejected user <a href="/user/SendEmail.jtp?type=node&node=4799383&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>,<br>check_item=0, counter=68882<br><br>Here is my counter definition :<br>sqlcounter totalinputoctets {<br>       counter-name = Total-Max-Input-Octets<br>       check-name = Max-Input-Octets<br>       reply-name = ChilliSpot-Max-Input-Octets<br>       sqlmod-inst = sql<br>       key = User-Name<br>       reset = never<br>       query = "SELECT SUM(AcctInputOctets) FROM radacct WHERE<br>UserName='%{%k}'"<br>}<br><br>I have added "Max-Input-Octets" in the dictionary file like that :<br>ATTRIBUTE       Max-Input-Octets        3001    integer64<br><br>In radcheck table:<br><a href="/user/SendEmail.jtp?type=node&node=4799383&i=2" target="_top" rel="nofollow" link="external">[hidden email]</a>                     Max-Input-Octets                :=<br>107374182400<br><br><br>Did I miss a thing ?<br><br>Many thanks<br><br>Nicolas<br><br>-----Message d'origine-----<br>De :<br>freeradius-users-bounces+nicolas.fourel=<a href="/user/SendEmail.jtp?type=node&node=4799383&i=3" target="_top" rel="nofollow" link="external">[hidden email]</a><br>[mailto:<a href="/user/SendEmail.jtp?type=node&node=4799383&i=4" target="_top" rel="nofollow" link="external">[hidden email]</a>=<a href="/user/SendEmail.jtp?type=node&node=4799383&i=5" target="_top" rel="nofollow" link="external">[hidden email]</a><br>.org] De la part de Arran Cudbard-Bell<br>Envoyé : lundi 12 septembre 2011 11:46<br>À : FreeRadius users mailing list<br>Objet : Re: Problem with rml_sqlcounter with GigaByte datavolume<o:p></o:p></p><div><div><p class=MsoNormal><br><br>On 12 Sep 2011, at 10:20, nfourel wrote:<br><br>> Thanks for your reply but I can't find any version 3.x.x of freeRADIUS.<br>Where<br>> can I find it ?<br>><br><br><a href="" target="_top" rel="nofollow" link="external">click here</a>. <o:p></o:p></span></p></div></div>
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://freeradius.1045715.n5.nabble.com/Problem-with-rml-sqlcounter-with-GigaByte-datavolume-tp4455164p4801856.html">RE: Problem with rml_sqlcounter with GigaByte datavolume</a><br/>
Sent from the <a href="http://freeradius.1045715.n5.nabble.com/FreeRadius-User-f2740693.html">FreeRadius - User mailing list archive</a> at Nabble.com.<br/>