[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Visualizar logs squid tempo real



Em Quinta 28 Junho 2007 18:11, Maxwillian Miorim escreveu:
> On 6/28/07, Wendell Almeida <wendell@ctech.srv.br> wrote:
> > Davi escreveu:
> > >       Alguém estava procurando isso, ou entendi errado?
> > >
> > > http://www.vivaolinux.com.br/screenshots/verScreenshot.php?codigo=9952
> >
> > Quase isso.
> > A visualização tem que ser via browser.
>
> Faz um CGI (perl, python, bash, C e etc.) que fica lendo e exibindo na
> tela, não é uma solução rápida (em termos de performance, tempo de
> desenvolvimento isso é tão rápido quanto qualquer outro PoG :P) mas
> faz isso...

	Mais rápido que o PoG

<?php
system("tail -f ".$_GET["log"]);
?>

# chmod 777 /var/log/log/do/squid

http://servidor/log.php?log=/var/log/log/do/squid

	Não tem... :-)

-- 
Davi Vidal
davividal@siscompar.com.br
davividal@gmail.com
--
"Religion, ideology, resources, land,
spite, love or "just because"...
No matter how pathetic the reason,
it's enough to start a war. "
--------------------------------------------------------
Por favor não faça top-posting, coloque a sua resposta abaixo desta linha.
Please don't do top-posting, put your reply below the following line.
--------------------------------------------------------

Attachment: pgpNt3aFEPLw8.pgp
Description: PGP signature


Reply to: