FreeRadius MYSQL Usage Import

Discussion in 'Optigold ISP' started by disgruntled, Mar 7, 2005.

  1. #1
    I am having some difficulty setting up MYSQL usage import.

    I have installed the 20 day evaluation of NetTools Pro, Running from MYSQL Administrator on the same host I can execute this query.

    SELECT UserName,count(UserName),sum(AcctSessionTime),sum(AcctOutputOctets) FROM radius.radacct WHERE AcctStartTime >= '05-02-01 00:00:00' AND AcctStartTime <= '05-03-01 00:00:00' GROUP BY UserName

    I get results formatted like this.

    USER | 35 | 288381 | 606186035 |

    I put the same query into Optigold under Maint/Prefs - General Prefs - Usage -SQL Hooks, The USE box is selected for "SQL Statement to Get monthly Usage" and on the General Prefs - Usage screen Usage Type is set to MYSQL. Username/Password and Hostname are correct.

    WHen I try to do a usage import from optigold it immediately pops up blank screen and asks if the usage data looks good.

    Any idea where I can look to get this working right?
     
    disgruntled, Mar 7, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Turn on the debugger (under My Stuff -> System Info), then run it and check the "Java Companion Log" file.
     
    digitalpoint, Mar 7, 2005 IP
  3. disgruntled

    disgruntled Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    2005-03-07 14:10:35 Using cacerts file: D:\Program Files\FileMaker\FileMaker Pro 5.5\FileMaker Java Extensions\jssecacerts
    2005-03-07 14:10:35 [SSLTransport] Initialization finished. https URLs are enabled.
    java.sql.SQLException: No suitable driver
    2005-03-07 14:11:09 at java.sql.DriverManager.getConnection(Unknown Source)
    2005-03-07 14:11:09 at java.sql.DriverManager.getConnection(Unknown Source)
    2005-03-07 14:11:09 at com.acmetech.fm.jdbc.FMJDBCPlugin.do(Unknown Source)
    2005-03-07 14:11:09 at com.acmetech.fm.jdbc.FMJDBCPlugin.jcDriverConnect(Unknown Source)
    2005-03-07 14:11:09 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2005-03-07 14:11:09 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    2005-03-07 14:11:09 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    2005-03-07 14:11:09 at java.lang.reflect.Method.invoke(Unknown Source)
    2005-03-07 14:11:09 at com.acmetech.fm.l.a(Unknown Source)
    2005-03-07 14:11:09 at com.acmetech.fm.a.a(Unknown Source)
    2005-03-07 14:11:09 at com.acmetech.fm.FMPluginBroker.dispatchBytesToExternal(Unknown Source)
     
    disgruntled, Mar 7, 2005 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Are you sure you specified the server IP address *and* database on the setup?
     
    digitalpoint, Mar 7, 2005 IP
  5. disgruntled

    disgruntled Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yes this is what I have xxx.xx.xxx.xx/radius The IP is correct and radius is the DB Name that's in the space labeled ip address[:port]/database. The username and password are also correct.
     
    disgruntled, Mar 8, 2005 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    Hmmm... anyway you could send a screenshot of the setup screen?
     
    digitalpoint, Mar 8, 2005 IP
  7. disgruntled

    disgruntled Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    where should I send it, I am hesitant to post it publically unless I wipe out the pertinent info which would be useless.
     
    disgruntled, Mar 8, 2005 IP
  8. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #8
    is fine.
     
    digitalpoint, Mar 8, 2005 IP
  9. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #9
    Hmmm... truthfully everything *looks* okay... anyway you could open it to the outside world so I could test a connection to your DB from the outside world?
     
    digitalpoint, Mar 23, 2005 IP
  10. disgruntled

    disgruntled Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    if you use the username/password/ip address in the screen cap you should be able to get in. If you can't read them let me know and I'll email them directly to you.

    Thanks
    Eric
     
    disgruntled, Mar 23, 2005 IP
  11. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #11
    Can you PM me the info?
     
    digitalpoint, Mar 23, 2005 IP
  12. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #12
    digitalpoint, Mar 25, 2005 IP
  13. disgruntled

    disgruntled Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    You rock that cleared it up.

    Thanks
    Eric
     
    disgruntled, Mar 28, 2005 IP
  14. disgruntled

    disgruntled Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    On a side note, can't wait to see what happens with the MYSQL/PHP rewrite, I understand your reasons for playing it close to the cuff as far as release dates and such but I have to admit the suspense is killing me, are things going well with the rewrite at least?

    Thanks
    Eric
     
    disgruntled, Mar 28, 2005 IP