Re: log loading of configuration files [was Re: Accounting to MySQL not working]

2010-06-07 Thread Alan DeKok
Josip Rodin wrote: Then again, there is no clear indication to users which part of the large debug output is important and which part is ignorable, so even if they don't ignore it, it may still actually be too complicated for them to handle. The alternative is to run a system that you don't

Re: log loading of configuration files [was Re: Accounting to MySQL not working]

2010-06-07 Thread Josip Rodin
On Mon, Jun 07, 2010 at 10:49:01AM +0200, Alan DeKok wrote: Josip Rodin wrote: Then again, there is no clear indication to users which part of the large debug output is important and which part is ignorable, so even if they don't ignore it, it may still actually be too complicated for them

Re: log loading of configuration files [was Re: Accounting to MySQL not working]

2010-06-06 Thread Josip Rodin
On Wed, Jun 02, 2010 at 01:46:02PM +0200, Alan DeKok wrote: When they run it with -X, they'll see the packets as they come in and that's good for the debugging of the per-request logic, but a lot of this initial text will scroll down the screen as if everything in it is all right, and they

log loading of configuration files [was Re: Accounting to MySQL not working]

2010-06-02 Thread Josip Rodin
On Tue, Jun 01, 2010 at 02:19:31PM +0200, joy wrote: On Sat, May 29, 2010 at 10:42:06AM +0200, Alan DeKok wrote: Even Apache reads the entire directory: ... # Include the virtual host configurations: Include /etc/apache2/sites-enabled/ ... So what's the solution? Why isn't

Re: log loading of configuration files [was Re: Accounting to MySQL not working]

2010-06-02 Thread Alan DeKok
Josip Rodin wrote: It occurs to me that it would be a good idea to add an option that would allow users to log the entire initial configuration parsing on startup to the main log file, IOW log that part even if the server did not run with -X. Hmm... OK. When they run it with -X, they'll

Re: Accounting to MySQL not working

2010-06-01 Thread Josip Rodin
On Sat, May 29, 2010 at 10:42:06AM +0200, Alan DeKok wrote: Even Apache reads the entire directory: ... # Include the virtual host configurations: Include /etc/apache2/sites-enabled/ ... So what's the solution? Why isn't this a problem for Apache, and is a problem here? It stands

Re: Accounting to MySQL not working

2010-05-29 Thread Alan DeKok
John Dennis wrote: Hmm... we just had a discussion about how loading every configuration file in a directory trips folks up. Yet another example :-) We need a solution that is (a) easy, and (b) doesn't involve a massive re-name of files in the middle of a stable release? Even Apache reads

Re: Accounting to MySQL not working

2010-05-28 Thread Christoph Schwabl
Hi Alan, thank you for your response. according to the debug: +- entering group accounting {...} [detail]expand: /var/log/freeradius/radacct/%{Client-IP-Address}/detail-%Y%m%d - +/var/log/freeradius/radacct/192.168.1.10/detail-20100527 [detail]

Re: Accounting to MySQL not working

2010-05-28 Thread Alan DeKok
Christoph Schwabl wrote: this part is (and was) enabled please find below the configuration of the files (which is the same configuration as for 2.0.4 - this configuration is working for 2.0.4) however, it seems the sql line is ignored by the radius server This happens in one of two

Re: Accounting to MySQL not working

2010-05-28 Thread Christoph Schwabl
however, it seems the sql line is ignored by the radius server This happens in one of two cases: 1) the server is reading a *different* file than the one you're editing this exactly was the problem I had 2 files in /etc/raddb/sites-enabled default.original default It seems the

Re: Accounting to MySQL not working

2010-05-28 Thread John Dennis
On 05/28/2010 04:33 PM, Christoph Schwabl wrote: however, it seems the sql line is ignored by the radius server This happens in one of two cases: 1) the server is reading a *different* file than the one you're editing this exactly was the problem I had 2 files in

Re: Accounting to MySQL not working

2010-05-28 Thread Marinko Tarlac
:) Sure, its good idea to create backups but do not store them in the sites-enabled dir :) John Dennis wrote: On 05/28/2010 04:33 PM, Christoph Schwabl wrote: however, it seems the sql line is ignored by the radius server This happens in one of two cases: 1) the server is reading a

Re: Accounting to MySQL not working

2010-05-28 Thread John McDonnell
Making a backup of the file in sites-available would make more sense since the files in sites-enabled are only links to the files in sites-enabled. It is documented. ;) Marinko Tarlac mangi...@gmail.com wrote: :) Sure, its good idea to create backups but do not store them in the

Re: Accounting to MySQL not working

2010-05-27 Thread Alan Buxey
hi, according to the debug: +- entering group accounting {...} [detail]expand: /var/log/freeradius/radacct/%{Client-IP-Address}/detail-%Y%m%d - +/var/log/freeradius/radacct/192.168.1.10/detail-20100527 [detail] /var/log/freeradius/radacct/%{Client-IP-Address}/detail-%Y%m%d expands to

Accounting to MySQL not working

2010-05-26 Thread Christoph Schwabl
Hello, I have a small problem with accounting to mysql. freeradius 2.1.8 mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 5.2 The NAS is sending accounting data, which I can see in: more /var/log/freeradius/radacct/192.168.1.10/detail-20100526 ... Wed May 26 23:43

Re: Accounting into MySQL

2009-05-15 Thread Tim Dressel
Yes, both. 2009/5/14 EasyHorpak.com i...@easyhorpak.com: is it freeradius and freeradius-mysql ? I'm doing some more testing using the suggestions from Edvin and Ivan (almost like the two ivan's), and will follow up. I think its just my misunderstanding of what accounting actually does. ;)

Accounting into MySQL

2009-05-14 Thread Tim Dressel
detailed how-to on the internet (I guess my google-foo is not as good as others) specifically on accounting in mysql? 3.b) ... sepecifically on MAC authentication? Thanks so much! Tim - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

RE: Accounting into MySQL

2009-05-14 Thread Edvin Seferovic
1. Using NTRadPING, should I get entries in my radacct table? Are you sending accounting packets? If not - why should freeradius pass any request to accounting parts. 2. I have uncommented the sql_log, and all the detail log sections, and in the accounting section, and uncommented the sql in

Re: Accounting into MySQL

2009-05-14 Thread Ivan Kalik
google-foo is not as good as others) specifically on accounting in mysql? Configure sql connection details in sql.conf. Uncomment sql in accounting section of the default virtual server. That's it. 3.b) ... sepecifically on MAC authentication? http://wiki.freeradius.org/Mac-Auth Ivan Kalik

Re: Accounting into MySQL

2009-05-14 Thread EasyHorpak.com
is it freeradius and freeradius-mysql ? - Original Message - From: Tim Dressel tjdres...@gmail.com To: freeradius-users@lists.freeradius.org Sent: Friday, May 15, 2009 3:53 AM Subject: Accounting into MySQL Hi folks, I have an Ubuntu server 8.04.2 LTS running (pretty bare bones

RE: Accounting in MySQL

2007-01-24 Thread DESEtech - German P. Santillan
- Argentina Tel/Fax: +54 (291) 456-5642 [EMAIL PROTECTED] http://www.desetech.com.ar From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] .org] On Behalf Of satish patel Sent: Tuesday, January 23, 2007 4:56 AM To: FreeRadius users mailing list Subject: Re: Accounting in MySQL Dear

RE: Accounting in MySQL

2007-01-24 Thread satish patel
: Accounting in MySQL Dear First check your radiusd -X debug log and find mysql connectivity debug if there any problem regarding connection ??? then check radius.conf file there is accounting option and put sql key word in it and u can also find some document on my website

Re: Accounting in MySQL

2007-01-23 Thread satish patel
Dear Find freeradius + Mysql document on my website http://geocities.com/satish_patel_2000_2000/ Satish Patel Alan DeKok [EMAIL PROTECTED] wrote: DESEtech - German P. Santillan wrote: But I don´t hace records in radacct Table. What is the problem? See the FAQ. Is the server

Re: Accounting in MySQL

2007-01-23 Thread satish patel
Dear First check your radiusd -X debug log and find mysql connectivity debug if there any problem regarding connection ??? then check radius.conf file there is accounting option and put sql key word in it and u can also find some document on my website

Accounting in MySQL

2007-01-22 Thread DESEtech - German P. Santillan
I actually have my Users DB in MySQL Server and my FreeRADIUS use the radcheck and radreply tables to read (SELECT) records, in my radiusd.conf I have... authorize { sql } accounting { sql } But I don´t hace records in radacct Table. What is the problem? Thanks in advance and

Re: Accounting in MySQL

2007-01-22 Thread Alan DeKok
DESEtech - German P. Santillan wrote: But I don´t hace records in radacct Table. What is the problem? See the FAQ. Is the server receiving accounting packets? Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog - List

duplicate accounting with mysql-accounting and radrelay

2004-06-18 Thread Michael Markstaller
Hi, there are several things I can imagine to prevent the below, but before re-inventing the wheel, I'm sure somebody of you has a simple solution for this or some good posts to point to ? Here it goes: using freeradius-1.0-pre2 on two servers, setup as follows: - server1 doing local mysql

RE: how to do accounting with mysql?

2004-04-28 Thread Rogelio Alvarado Anchisi
] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Berry Sent: Martes, 27 de Abril de 2004 11:14 To: [EMAIL PROTECTED] Subject: RE: how to do accounting with mysql? The NAS has the fake response off, so it is sending the packages. How do I check if it is sending them? I want to have another reference

Re: how to do accounting with mysql?

2004-04-28 Thread Milver S. Nisay
I've set up sqlcounter and I'm on testing right now, the next step is prepaid cards and still dont know how to do them read the subscription list - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

how to do accounting with mysql using the radacct table?

2004-04-28 Thread Rogelio Alvarado Anchisi
. +507-6744093 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Milver S. Nisay Sent: Miércoles, 28 de Abril de 2004 14:34 To: [EMAIL PROTECTED] Subject: Re: how to do accounting with mysql? I've set up sqlcounter and I'm on testing right now, the next

Re: setting up accounting in mysql

2004-04-27 Thread apellido
you very much for your response. - Original Message - From: Milver S. Nisay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 26, 2004 9:08 PM Subject: Re: setting up accounting in mysql Hello milver, what i mean is in noresetcounter configuration in rlm_sqlcounter

Re: setting up accounting in mysql

2004-04-27 Thread apellido
will be the config of another sql.conf which only use to update start and stop of accounting. - Original Message - From: Milver S. Nisay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 27, 2004 9:05 PM Subject: Re: setting up accounting in mysql Hello milver, i already test what you

Re: setting up accounting in mysql

2004-04-27 Thread Milver S. Nisay
Actually im using dialup admin for user account management, thanks very much for reply, i really appreciate it. I have another idea what else if i have 2 database which update user accounting realtime, it is possible? i would create 2 sql.conf in radius.conf. but i dont know what will be the

RE: how to do accounting with mysql?

2004-04-27 Thread Nick Berry
it on my lib? I am doing accounting with MySQL without sqlcounter (since I'm not limiting my user's connection time). Have you been able to get this to work? Do you still need any help? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: setting up accounting in mysql

2004-04-26 Thread apellido
. A new start of his/her 10 hrs. Any comment or suggestion? I want to keep this accounting of all users i have. - Original Message - From: Milver S. Nisay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 24, 2004 4:03 PM Subject: Re: setting up accounting in mysql

Re: setting up accounting in mysql

2004-04-26 Thread Milver S. Nisay
Hello milver, what i mean is in noresetcounter configuration in rlm_sqlcounter. Where resetcounter add all accounting of the user and compare to session timeout. My problem is i have a client with constant username. example: user X have a connection of 10 hrs starting from date, April 26

Re: setting up accounting in mysql

2004-04-24 Thread Milver S. Nisay
Do u have any idea how to update the user account? example im setup prepaid internet access using freeradius. im include rlm_sqlcounter in the config and it works perfectly. Now my problem is because im configured rlm_sqlcounter for noresetcounter it works when the user

how to do accounting with mysql?

2004-04-23 Thread Rogelio Alvarado Anchisi
Hello Im using v.0.9.3 and Im trying to do accounting. When I see the debug I see that every sql sentence is run, except the accounting sentences. I dont know if it has something to do with radacct. Maybe it could happen because I have the radacct empty. Im sending you the radius.conf

RE: how to do accounting with mysql?

2004-04-23 Thread Rogelio Alvarado Anchisi
] Subject: Re: how to do accounting with mysql? doesn't work. you must use postgresql. look in the src/billing directory and all will be revealed! - Original Message - From: Rogelio Alvarado Anchisi To: [EMAIL PROTECTED] Sent: Friday, April 23, 2004 03:50 PM

Re: how to do accounting with mysql?

2004-04-23 Thread Costin Manda
Subject: RE: how to do accounting with mysql? All the info it says is about Ciscos. But I’m using a Nortel. Is there any way other than sql to do accounting? I can’t leave my MySql database because I have all users there and are several thousands. Can I do a file

setting up accounting in mysql

2004-04-23 Thread Rogelio Alvarado Anchisi
Hello, Has anyone set up accounting using the radacct table in MySql? I read the debug and the sql trace doesn't show that the sql is being queried for accounting. Where in the radiusd.conf do I have to set it up? I got into the accounting { } but it seems that the sql trigger I put doesn't do

Re: setting up accounting in mysql

2004-04-23 Thread Milver S. Nisay
Has anyone set up accounting using the radacct table in MySql? I read the debug and the sql trace doesn't show that the sql is being queried for accounting. Where in the radiusd.conf do I have to set it up? I got into the accounting { } but it seems that the sql trigger I put doesn't do a

Re: setting up accounting in mysql

2004-04-23 Thread Milver S. Nisay
I can see that I have rlm_sqlcounter but I don't see the sqlcounter.conf Where or how do I get it? download the latest CVS pls. it should be something like this sqlcounter noresetcounter { driver = rlm_sqlcounter counter-name = Max-All-Session-Time

Re: how to do accounting with mysql?

2004-04-23 Thread Alan DeKok
Rogelio Alvarado Anchisi [EMAIL PROTECTED] wrote: I'm using v.0.9.3 and I'm trying to do accounting. When I see the debug I see that every sql sentence is run, except the accounting sentences. I don't know if it has something to do with radacct. Maybe it could happen because I have the

RE: how to do accounting with mysql?

2004-04-23 Thread Rogelio Alvarado Anchisi
PROTECTED] Subject: Re: how to do accounting with mysql? Rogelio Alvarado Anchisi [EMAIL PROTECTED] wrote: I'm using v.0.9.3 and I'm trying to do accounting. When I see the debug I see that every sql sentence is run, except the accounting sentences. I don't know if it has something to do

Re: how to do accounting with mysql?

2004-04-23 Thread Alan DeKok
Rogelio Alvarado Anchisi [EMAIL PROTECTED] wrote: The NAS has the fake response off, so it is sending the packages. How do I check if it is sending them? I want to have another reference. tcpdump Other thing. I put the sqlcounter stuff but I don't have any sqlcounter.so or something like

Re: setting up accounting in mysql

2004-04-23 Thread apellido
... - Original Message - From: Milver S. Nisay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 23, 2004 11:57 PM Subject: Re: setting up accounting in mysql I can see that I have rlm_sqlcounter but I don't see the sqlcounter.conf Where or how do I get it? download the latest

RE: accounting to mysql database

2004-03-31 Thread Kirti S. Bajwa
I have no idea how this posting ending up on freeRADIUS!! Kirt -Original Message- From: Kirti S. Bajwa [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 10:46 AM To: '[EMAIL PROTECTED]' Subject: RE: accounting to mysql database Hello List: I have installed and tested

accounting to mysql database

2004-03-14 Thread apellido
hello does anyone have example config of what Mr. Allan Dekok Suggestion? Have two accounting databases: One used by your RADIUS server fordaily/weekly/monthly accounting for "live" sessions, and another formulti-year backups. Alan DeKok. Thanks very much

Re: accounting to mysql database

2004-03-12 Thread Guy Fraser
This is a good suggestion. The MySQL schema should be changed, so that raddb is by default InnoDB. This is exactly the reason I have been using PostgreSQL for the last 6 or so years. Rather than using a different database for archived records just put the archived data into different tables.

Re: accounting to mysql database

2004-03-12 Thread Jeff Warnica
How about this scenario: (say it is March 1, SQL and col names from memory...) The 'live' table keeps up to two months (and a few hours) of data (January, February, March 1) Some time on March 1 you rotate out January CREATE TABLE jan_04 LIKE. INSERT INTO jan_04 SELECT * FROM radacct WHERE

accounting to mysql database

2004-03-11 Thread Mike Sturdee
I have radius set up to log accounting to a MySQL database. It currently holds a couple years worth of logging from several thousand users, so it's quite large.. Problem I'm having is if I do a select that will return a couple hundred entries, or anything other than the simplest of queries

Re: accounting to mysql database

2004-03-11 Thread Michael McFadden
Message - From: Mike Sturdee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 11, 2004 3:31 PM Subject: accounting to mysql database I have radius set up to log accounting to a MySQL database. It currently holds a couple years worth of logging from several thousand users, so it's

Re: accounting to mysql database

2004-03-11 Thread Jeff Warnica
Not really a FreeRADIUS question, but anyway: For complex queries and/or queries with large result sets MySQL, using MyISAM tables, will produce a temporary table to fulfill the request. To ensure that it gets a consistent (temporary) table, MySQL locks the entire (real) table during this

Re: accounting to mysql database

2004-03-11 Thread Alan DeKok
Mike Sturdee [EMAIL PROTECTED] wrote: I have radius set up to log accounting to a MySQL database. It currently holds a couple years worth of logging from several thousand users, so it's quite large.. Problem I'm having is if I do a select that will return a couple hundred entries, or anything