(RADIATOR) View radius log tail in browser

MJ php at cyberia.net.sa
Wed Sep 22 03:48:19 CDT 2004


Great!
Mohammad Junaid
----- Original Message ----- 
From: "Hugh Irvine" <hugh at open.com.au>
To: "MJ" <php at cyberia.net.sa>
Cc: <radiator at open.com.au>
Sent: Wednesday, September 22, 2004 11:35 AM
Subject: Re: (RADIATOR) View radius log tail in browser



Hello MJ -

Many thanks for your contribution - we have added it to the "goodies".

regards

Hugh


On 21 Sep 2004, at 20:37, MJ wrote:

> Hi,
> 
> I want to share following cgi with all list members. I found this on 
> internet and customized as per my requirements. Use this to view your 
> radiator logs in the browser, it will help in troubleshooting, 
> specially for helpdesk staff. You need to have a webserver on the 
> local machine. Try, it is very useful.
> 
> Thanks,
> Mohammad Junaid
> Cyberia, Saudi Arabia
> 
> ========== radlog.cgi=======================
> #!/usr/local/bin/perl
> # radlog.cgi: Uses html's meta tag to view changes to
> # /radius/log/logfile
> ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime();
> $mon++;
> $yy = `date '+20%y'`;
> $latestrun = "$hour:$min:$sec $mon/$mday/$yy";
> 
> $logfile =`date '+/radius/log/logfile-20%y-%m-%d'`;
> 
> $errors= `tail -25 $logfile`;
> 
> print <<EOT;
> Content-type: text/html
> 
> <html><head>
> <meta http-equiv="refresh" Content="10,url=radlog.cgi">
> <title> Radius Log Tail</title></head>
> <body >
> <center><h2>Radius Log Tail</h2>
> <h3>Updated at: <font color="#880000">$latestrun</font></h3>
> </center>
> 
> <xmp>
> 
> $errors
> </xmp>
> </body></html>
> EOT
> ========================
>

NB: have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.



--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list