Hello Mariano -
Mike is travelling this week, but he will take a look at this when he returns.
thanks for reporting the problem
regards
Hugh
On Wednesday 18 April 2001 08:45, Mariano Absatz wrote:
> Hi all,
>
> I had this problem a couple of times but not sistematically... I'm
> starting a new installation and trying startup scripts (in fact before
> preparing the config files) and now it is sistematic.
>
> Every time I kill -1 Radiator, to re-read the configuration file, it
> fails...
>
> What I remember from my other installation was that if I made a minor
> change to the config file (e.g. the trace level), it worked OK, but if I
> edited something bigger, sometimes, it didn't liked it and it died... I
> thought it had to do with the way Radiator generates perl code on the fly
> while reading the config files.
>
> Now I made a couple of almost empty config files and every time I kill -1
>
> radiator it yields the following error:
> > Can't locate object method "new" via package "Radius::SNMPAgent"
> > (perhaps you forgot to load "Radius::SNMPAgent"?) at
> > /usr/local/lib/perl5/site_perl/5.6.1/Radius/ServerConfig.pm line 133,
> > <FILE> line 17.
>
> As I keep cheking it... it's not generating the correct filenames for the
> logfiles.
>
> There is only one logfile generated in /logs/radius and its name is
> "logfile"... that is, it kinda processed the LogDir statement, but it
> didn't process the LogFile nor the <Log File>...
>
> I'm including the contens of the /app/Radiator/etc/radius-acct.cfg (which
> is invoked from the command line) and the contents of
> /app/Radiator/etc/radius-common.cfg (which is included from the former).
>
> For completeness... I also include the startup/shutdown/reload script
> (/etc/init.d/radius-acct). It's running on a Netra T1 AC200, 1CPU 360MHz,
> 512Mb RAM, 2x18Gb HD, Solaris 8, Perl v5.6.1, Radiator 2.18 with all the
> patches up to 10-Apr-2001.
>
> What is wrong?
>
> ================= /app/Radiator/etc/radius-acct.cfg =====================
> ================= /app/Radiator/etc/radius-acct.cfg =====================
> ================= /app/Radiator/etc/radius-acct.cfg =====================
> ##################################################################
> # ACCOUNTING CONFIGURATION #
> ##################################################################
>
> #
> # include common configuration and global definitions
> include /app/Radiator/etc/radius-common.cfg
>
>
> PidFile %{GlobalVar:TempDir}/rad-acct.pid
> #
> # We only do accounting in this instance of Radiator
> #
> AuthPort
> AcctPort 1813
>
> <SNMPAgent>
> Port 16113
> Community CONFIGURAR-COMUNIDAD
> </SNMPAgent>
>
>
> ##################################################################
> # LOGGING SECTION #
> ##################################################################
>
> # For debugging, uncomment the 2 following lines
> Trace 4
> LogFile %L/%Y-%m/debugAcctLog_%d-%q
>
> #Trace:
> #0 ERR. Error conditions. Serious and unexpected failures
> #1 WARNING. Warning conditions. Unexpected failures
> #2 NOTICE. Normal but significant conditions.
> #3 INFO. Informational messages.
> #4 DEBUG. Debugging messages.
> #5 Incoming raw packet dumps in hexadecimal.
>
> <Log FILE>
> Identifier fileLoggerMetroAcct
> Filename %L/%Y-%m/stdAcctLog_%d-%q
> Trace 3
> </Log>
>
>
> #
> #Log authentication success and failure to a file
> #<AuthLog FILE>
> # Identifier acctLoggerMetroRED
> # Filename %L/%Y-%m/acct_%d-%q
> # LogSuccess 1
> # LogFailure 1
> # SuccessFormat %l:%n:<****>:OK:-
> # FailureFormat %l:%n:%P:FAIL:%1
> #</AuthLog>
>
>
>
>
>
>
> ================= /app/Radiator/etc/radius-common.cfg ====================
> ================= /app/Radiator/etc/radius-common.cfg ====================
> ================= /app/Radiator/etc/radius-common.cfg ====================
> ##################################################################
> # COMMON CONFIGURATION #
> ##################################################################
>
> ##################################################################
> # FILES AND DIRECTORIES SECTION #
> ##################################################################
>
> LogDir /logs/radius
> DbDir /app/Radiator/db
> DefineGlobalVar ScriptDir /app/Radiator/scripts
> DefineGlobalVar ConfigDir /app/Radiator/etc
> DefineGlobalVar TempDir /app/Radiator/tmp
>
>
> DictionaryFile %{GlobalVar:ConfigDir}/dictionary
>
> ##################################################################
> # REWRITE SECTION #
> ##################################################################
>
> # REWRITE USER NAME BEFORE ANYTHING ELSE
> # Rewrite any Name without realm to our realm
> # because defaultrealm does not match on HANDLER
> RewriteUsername s/^([^@]+)$/$1\@metrored/
>
> # change everything in the username to lowercase
> RewriteUsername tr/[A-Z]/[a-z]/
>
>
> ##################################################################
> # CLIENTS SECTION #
> ##################################################################
>
> #<ClientListSQL>
> # Client (NAS) info is in the database
>
> # DBSource dbi:Oracle:localhost
> # DBUsername <USER>
> # DBAuth <PASSWORD>
>
> # GetClientQuery SELECT \
> # NAS_IDENTIFIER, NAS_SECRET, \
> # NAS_IGNOREACCTSIGNATURE, NAS_DUPINTERVAL, \
> # NAS_DEFAULTREALM, NAS_TYPE, NAS_SNMPCOMMUNITY, \
> # NAS_LIVINGSTONOFFS, NAS_LIVINGSTONHOLE, \
> # NAS_FRAMEDGROUPBASEADDRESS,
> NAS_FRAMEDGROUPMAXPORTSPERCLASSC, \
> # NAS_REWRITEUSERNAME, NAS_NOIGNOREDUPLICATES, \
> # NAS_PREHANDLERHOOK \
> # FROM NAS_SERVICIO_CALIDAD
>
> #</ClientListSQL>
>
>
>
>
>
> ==================== /etc/init.d/radius-acct =======================
> ==================== /etc/init.d/radius-acct =======================
> ==================== /etc/init.d/radius-acct =======================
> #!/bin/sh
> #
> # Radiator This shell script takes care of starting and stopping
> # Radiator (Radius server).
> #
>
> RADTYPE=acct
> RADVAR="rad_instance=$RADTYPE"
> RADIATOR=/app/Radiator/bin/radiusd
> RADCONFIG=/app/Radiator/etc/radius-$RADTYPE.cfg
> MATCHSTRING=".*$RADIATOR.*$RADVAR.*"
> # RADPID=/app/Radiator/tmp/rad-$RADTYPE.pid
> RADCMDLINE="$RADIATOR $RADVAR -config_file $RADCONFIG"
>
> ORACLE_SID=radius; export ORACLE_SID
> ORACLE_BASE=/app/oracle; export ORACLE_BASE
> ORACLE_SID=radius; export ORACLE_SID
> ORACLE_HOME=/app/oracle/product/8.1.6; export ORACLE_HOME
> ORACLE_PATH=/app/oracle/product/8.1.6/bin; export ORACLE_PATH
> PATH=/usr/sbin:/usr/bin:$ORACLE_HOME/bin; export PATH
>
> [ -f $RADIATOR ] || exit 0
>
> [ -f $RADCONFIG ] || exit 0
>
> # See how we were called.
> case "$1" in
> start)
> # Start daemons.
> echo "Starting Radiator ($RADTYPE): "
> $RADCMDLINE
> echo " -done"
> ;;
> stop)
> # Stop daemons.
> echo "Shutting down Radiator ($RADTYPE): "
> # kill `cat $RADPID`
> /usr/bin/pkill -u0 -x -f $MATCHSTRING
> echo " -done"
> ;;
> restart)
> # Stop daemons.
> echo "Shutting down Radiator ($RADTYPE): "
> # kill `cat $RADPID`
> /usr/bin/pkill -u0 -x -f $MATCHSTRING
> echo " -done"
> # Give time for the port to be actually released
> echo "Waiting... :-/"
> sleep 1
> # Start daemons.
> echo "Starting Radiator ($RADTYPE): "
> $RADCMDLINE
> echo " -done"
> ;;
> reload)
> # reloading configuration
> echo "Reloading Radiator ($RADTYPE) configuration: "
> # kill -1 `cat $RADPID`
> /usr/bin/pkill -1 -u0 -x -f $MATCHSTRING
> echo " -done"
> ;;
> status)
> # checking status
> if /usr/bin/pgrep -u0 -x -f $MATCHSTRING ;
> then
> echo "Radiator ($RADTYPE) running" ;
> else
> echo "Radiator ($RADTYPE) NOT running" ;
> fi
> ;;
> *)
> echo "Usage: $0 {start|stop|status|restart|reload}"
> exit 1
> esac
>
> exit 0
>
>
> ===
> Archive at http://www.starport.net/~radiator/
> Announcements on [EMAIL PROTECTED]
> To unsubscribe, email '[EMAIL PROTECTED]' with
> 'unsubscribe radiator' in the body of the message.
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.