André,

Esse erro acontece com todos os arquivos de logs do PostgreSQL?

Abraço

2010/3/9 "André Ormenese ( Yahoo )" <ormen...@yahoo.com.br>

> Boa tarde a todos !!!
>
> Pessoal instalei o pgfouine mas não consigo ler os logs. Os arquivos
> html são criados mas sem informações.
>
> Meu ambiente :
> SO = Freebsd 7.1
> Banco 8.4.2
> Pgfouine 1.0.1
>
> No postgresql.conf habilitei o log com :
>
> log_destination = 'stderr'
> logging_collector = on
> log_directory = 'pg_log'
> log_filename = 'postgresql-%Y-%m-%d.log'
> #log_truncate_on_rotation = off
> log_rotation_age = 1d
> log_line_prefix = '%t [%p]: [%l-1] user=%u,db=%d '
>
> Quando tento executar o pgfouine com as seguintes opções :
>
> /usr/local/bin/pgfouine -file postgresql-2010-03-09.log -top 40 -report
>
> queries.html=overall,bytype,slowest,n-mosttime,n-mostfrequent,n-slowestaverage
> -report hourly.html=overall,hourly -report
> errors.html=overall,n-mostfrequenterrors -format html-with-graphs
> -logtype stderr
>
> recebo as seguintes mensagens :
>
> Unrecognized LOG or DEBUG line: user=,db= LOG:  database system was shut
> down at 2010-03-09 14:41:05 BRT - log line 1
> Unrecognized LOG or DEBUG line: user=,db= LOG:  database system is ready
> to accept connections - log line 2
> Unrecognized LOG or DEBUG line: user=,db= LOG:  autovacuum launcher
> started - log line 3
> Your log file contains multiline queries. We cannot guarantee the
> consistency of the queries.
> PHP Warning:  min(): Array must contain at least one element in
>
> /usr/local/share/pgfouine/include/reporting/reports/HourlyStatsReport.class.php
> on line 148
> PHP Warning:  max(): Array must contain at least one element in
>
> /usr/local/share/pgfouine/include/reporting/reports/HourlyStatsReport.class.php
> on line 149
>
>
> Agora não sei se tem algum erro na instalação, ou se preciso mudar o
> formato do log !!!
> Pela mensagem de erro do php, algum array não foi gerado. Estou
> imaginando que o arquivo de log foi lido pelo pgfouine, mas não foi
> gerado o array com as informações.
>
> Alguém tem alguma sugestão ???
>
> Obrigado
> André
>
>
>
> _______________________________________________
> pgbr-geral mailing list
> pgbr-geral@listas.postgresql.org.br
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>



-- 
Matheus Ricardo Espanhol
---------------------------------------
Dextra Sistemas
http://www.dextra.com.br/postgres/
_______________________________________________
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a