Archive for the 'Freeradius' Category

 

 

Oct 04 2009

Compiling Freeradius with Oracle Support

Published by under Freeradius,Oracle

Compilation Error? The Oracle client being installed (11g R2 in my setup), Freeradius doesn’t seem to find Oracle headers. I get the following error message: Error compiling Oracle/Freeradius configure: WARNING: oracle headers not found. Use –with-oracle-home-dir=<path>. configure: WARNING: silently not building rlm_sql_oracle. configure: WARNING: FAILURE: rlm_sql_oracle requires: oci.h.   Specifying the path to –with-oracle-home-dir doesn’t [...]

No responses yet

May 30 2009

Daily Accounting in Freeradius

Published by under Cisco,Freeradius

We have seen a few posts on Freeradius user list and other forums asking how to collect accounting periodically. The Radius protocol provides accounting but not in the way that many would like. Here’s a short list of things we would like to modify or improve: Traffic is not collected at regular intervals As a [...]

17 responses so far

May 16 2009

Graph Number of Freeradius Sessions in MRTG

Published by under Freeradius,Monitoring

You can easily graph your Freeradius number of active sessions with a simple shell script if you store accounting data in a SQL database. Use the script below for Mysql:   #!/bin/bash SQL_USERNAME=radius_username SQL_DATABASE=radius SQL_PASSWORD=your_password SQL_SERVER=127.0.0.1 SQL_ACCOUNTING_TABLE=radacct BACK_DAYS=5 SESSIONS=`mysql -BN -u$SQL_USERNAME -p$SQL_PASSWORD -h $SQL_SERVER $SQL_DATABASE -e \ “SELECT COUNT(*) FROM $SQL_ACCOUNTING_TABLE \ WHERE acctstoptime IS [...]

No responses yet

Next »