Sarg inconsistente

Iniciado por Paulinunes, 02 de Agosto de 2011, 16:39

tópico anterior - próximo tópico

Paulinunes

Boa tarde...

Bom, estou com um problema com o meu sarg...

O caso é o seguinte:

Instalei e configurei o sarg em um servidor Debian 6.0. Funcionou corretamente.

Até que, não sei como ainda, apaguei o index.html. Consegui recuperar com uma cópia de backup que eu tinha, o problema é que agora ao executar o comando #sarg -x -z o sarg me retorna isto:
# sarg -x -z
SARG: Init
SARG: Parameters:
SARG:
SARG: Hostname or IP address (-a) =
SARG: Useragent log (-b) =
SARG: Exclude file (-c) =
SARG: Date from-until (-d) =
SARG: Email address to send reports (-e) =
SARG: Config file (-f) = /etc/squid/sarg.conf
SARG: Date format (-g) = USA (mm/dd/yyyy)
SARG: IP report (-i) = No
SARG: Input log (-l) = /usr/local/squid/var/logs/access.log
SARG: Resolve IP Address (-n) = No
SARG: Output dir (-o) = /var/www/html/squid-reports/
SARG: Use Ip Address instead of userid (-p) = No
SARG: Accessed site (-s) =
SARG: Time (-t) =
SARG: User (-u) =
SARG: Temporary dir (-w) = /tmp
SARG: Debug messages (-x) = Yes
SARG: Process messages (-z) = Yes
SARG: SARG: sarg version: 2.2.5 Mar-03-2008
SARG: Maximum file descriptor: cur=1024 max=1024, changed to cur=20000 max=20000
SARG: Reading access log file: /usr/local/squid/var/logs/access.log
SARG: (util) tbuf=2011Aug024, reading: 0.00%
SARG: (util) period=2011Aug02-
SARG: Records in file: 34014, reading: 100.00%
SARG: Records read: 34014, written: 34014, excluded: 0
SARG: Squid log format
SARG: (util) data=08/02/2011
SARG: (util) tbuf=2011Aug02
SARG: (util) period=2011Aug02-2011Aug02
SARG: Period: 2011Aug02-2011Aug02
SARG: pre-sorting files
SARG: File: /var/www/html/squid-reports/2011Aug02-2011Aug02 already exists, moved to /var/www/html/squid-reports/2011Aug02-2011Aug02.14
SARG: (util) dirname=/var/www/html/squid-reports/2011Aug02-2011Aug02
SARG: (util) wdir=/var/www/html/squid-reports/2011Aug02-2011Aug02
SARG: Making period file
SARG: Making file: /tmp/sarg/10.1.1.231
SARG: Making file: /tmp/sarg/10.1.1.16
SARG: Making file: /tmp/sarg/10.1.1.91
SARG: Making file: /tmp/sarg/10.1.1.28
SARG: Making file: /tmp/sarg/10.1.1.234
SARG: Making file: /tmp/sarg/10.1.1.36
SARG: Making file: /tmp/sarg/10.1.1.26
SARG: Making file: /tmp/sarg/10.1.1.6
SARG: Sorting file: /tmp/sarg/10.1.1.91
SARG: Sorting file: /tmp/sarg/10.1.1.16
SARG: Sorting file: /tmp/sarg/10.1.1.28
SARG: Sorting file: /tmp/sarg/10.1.1.26
SARG: Sorting file: /tmp/sarg/10.1.1.36
SARG: Sorting file: /tmp/sarg/10.1.1.234
SARG: Sorting file: /tmp/sarg/10.1.1.231
SARG: Sorting file: /tmp/sarg/10.1.1.6
SARG: Making report: 10.1.1.91
SARG: Making report: 10.1.1.234
SARG: Making report: 10.1.1.28
SARG: Making report: 10.1.1.231
SARG: Making report: 10.1.1.6
SARG: Making report: 10.1.1.16
SARG: Making report: 10.1.1.26
SARG: Making report: 10.1.1.36
SARG: Making index.html
SARG: getword loop detected.
SARG: searching for 'x20'
SARG: Maybe you have a broken record or garbage in your access.log file.

Primeira coisa, o sarg.conf não está no diretório /etc/squid e sim no /etc/sarg.
Segundo, se eu dou o comando #sarg -x -z -f /etc/sarg/sarg.conf ele me retorna isso:
# sarg -x -z -f /etc/sarg/sarg.conf
SARG: Init
SARG: Loading configuration from: /etc/sarg/sarg.conf
SARG: TAG: language Portuguese
SARG: TAG: access_log /var/log/squid/access.log
SARG: TAG: graphs yes
SARG: TAG: title "Relatorio de uso da Internet pelos usuarios"
SARG: TAG: font_face Tahoma,Verdana,Arial
SARG: TAG: header_color darkblue
SARG: TAG: header_bgcolor blanchedalmond
SARG: TAG: font_size 9px
SARG: TAG: background_color white
SARG: TAG: text_color #000000
SARG: TAG: text_bgcolor lavender
SARG: TAG: title_color green
SARG: TAG: password /etc/squid/squid_passwd
SARG: TAG: temporary_dir /tmp
SARG: TAG: output_dir /var/www/html/squid-reports
SARG: TAG: resolve_ip yes
SARG: TAG: user_ip no
SARG: TAG: topuser_sort_field BYTES reverse
SARG: TAG: user_sort_field BYTES reverse
SARG: TAG: exclude_users /etc/squid/sarg.users
SARG: TAG: exclude_hosts /etc/squid/sarg.hosts
SARG: TAG: date_format e
SARG: TAG: lastlog 0
SARG: TAG: remove_temp_files yes
SARG: TAG: index yes
SARG: TAG: index_tree date
SARG: TAG: overwrite_report yes
SARG: TAG: records_without_userid ip
SARG: TAG: use_comma yes
SARG: TAG: mail_utility mailx
SARG: TAG: topsites_num 100
SARG: TAG: topsites_sort_order CONNECT A
SARG: TAG: index_sort_order D
SARG: TAG: max_elapsed 28800000
SARG: TAG: report_type topusers topsites sites_users users_sites date_time denied auth_failures site_user_time_date downloads
SARG: TAG: usertab /etc/squid/sarg.usertab
SARG: TAG: long_url no
SARG: TAG: date_time_by bytes
SARG: TAG: charset Latin1
SARG: TAG: show_successful_message yes
SARG: TAG: show_read_statistics no
SARG: TAG: topuser_fields NUM DATE_TIME USERID CONNECT BYTES %BYTES IN-CACHE-OUT USED_TIME MILISEC %TIME TOTAL AVERAGE
SARG: TAG: user_report_fields CONNECT BYTES %BYTES IN-CACHE-OUT USED_TIME MILISEC %TIME TOTAL AVERAGE
SARG: TAG: topuser_num 0
SARG: TAG: site_user_time_date_type table
SARG: TAG: show_sarg_logo yes
SARG: TAG: download_suffix "zip,arj,bzip,gz,ace,doc,iso,adt,bin,cab,com,dot,drv$,lha,lzh,mdb,mso,ppt,rtf,src,shs,sys,exe,dll,mp3,avi,mpg,mpeg"
SARG: TAG:  realtime_access_log_lines 10000
SARG: Carregando arquivo de senhas: /etc/squid/squid_passwd
SARG: Carregando arquivo de exclusao: /etc/squid/sarg.hosts
SARG: Carregando arquivo de exclusao: /etc/squid/sarg.users
SARG: Parametros:
SARG:
SARG: Hostname ou endereco IP (-a) =
SARG: Arquivo useragent log (-b) =
SARG: Arquivo de exclusao (-c) = /etc/squid/sarg.hosts
SARG: Data de-ate (-d) =
SARG: ndere�o email para envio do relatorio (-e) =
SARG: Arquivo de configuracao (-f) = /etc/sarg/sarg.conf
SARG: Formato da data (-g) = Europa (dd/mm/yyyy)
SARG: Relatorio por IP (-i) = Nao
SARG: Log de entrada (-l) = /var/log/squid/access.log
SARG: Resolve endereco IP (-n) = Sim
SARG: Diretorio de saida (-o) = /var/www/html/squid-reports/
SARG: Utiliza endereco IP como usuario (-p) = Nao
SARG: Site acessado (-s) =
SARG: Hora (-t) =
SARG: Usuario (-u) =
SARG: Diretorio para temporario (-w) = /tmp
SARG: Mensagens de debug (-x) = Sim
SARG: Mensagens do processo (-z) = Sim
SARG:
SARG: sarg versao: 2.2.5 Mar-03-2008
SARG: Maximum file descriptor: cur=1024 max=1024, changed to cur=20000 max=20000
SARG: Carregandpo a tabela de usu�rios: /etc/squid/sarg.usertab
SARG: Lendo arquivo acccess.log: /var/log/squid/access.log
*** glibc detected *** sarg: free(): invalid next size (normal): 0x09d65c20 ***
======= Backtrace: =========
/lib/i686/cmov/libc.so.6(+0x6b281)[0xb76ac281]
/lib/i686/cmov/libc.so.6(+0x6cad8)[0xb76adad8]
/lib/i686/cmov/libc.so.6(cfree+0x6d)[0xb76b0bbd]
sarg[0x8063ec0]
sarg[0x8052602]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb7657c76]
sarg[0x80497a1]
======= Memory map: ========
08048000-08079000 r-xp 00000000 08:01 10054242   /usr/bin/sarg
08079000-08085000 rw-p 00030000 08:01 10054242   /usr/bin/sarg
08085000-08230000 rw-p 00000000 00:00 0
09d5b000-09d7c000 rw-p 00000000 00:00 0          [heap]
b7200000-b7221000 rw-p 00000000 00:00 0
b7221000-b7300000 ---p 00000000 00:00 0
b7373000-b7390000 r-xp 00000000 08:01 5201923    /lib/libgcc_s.so.1
b7390000-b7391000 rw-p 0001c000 08:01 5201923    /lib/libgcc_s.so.1
b73a1000-b73a2000 rw-p 00000000 00:00 0
b73a2000-b73a6000 r-xp 00000000 08:01 10056205   /usr/lib/libXdmcp.so.6.0.0
b73a6000-b73a7000 rw-p 00003000 08:01 10056205   /usr/lib/libXdmcp.so.6.0.0
b73a7000-b73a9000 r-xp 00000000 08:01 10056203   /usr/lib/libXau.so.6.0.0
b73a9000-b73aa000 rw-p 00001000 08:01 10056203   /usr/lib/libXau.so.6.0.0
b73aa000-b73ab000 rw-p 00000000 00:00 0
b73ab000-b73cf000 r-xp 00000000 08:01 10055746   /usr/lib/libexpat.so.1.5.2
b73cf000-b73d1000 rw-p 00023000 08:01 10055746   /usr/lib/libexpat.so.1.5.2
b73d1000-b73d3000 r-xp 00000000 08:01 5218827    /lib/i686/cmov/libdl-2.11.2.so
b73d3000-b73d4000 r--p 00001000 08:01 5218827    /lib/i686/cmov/libdl-2.11.2.so
b73d4000-b73d5000 rw-p 00002000 08:01 5218827    /lib/i686/cmov/libdl-2.11.2.so
b73d5000-b73ed000 r-xp 00000000 08:01 10056207   /usr/lib/libxcb.so.1.1.0
b73ed000-b73ee000 rw-p 00017000 08:01 10056207   /usr/lib/libxcb.so.1.1.0
b73ee000-b7412000 r-xp 00000000 08:01 5218819    /lib/i686/cmov/libm-2.11.2.so
b7412000-b7413000 r--p 00023000 08:01 5218819    /lib/i686/cmov/libm-2.11.2.so
b7413000-b7414000 rw-p 00024000 08:01 5218819    /lib/i686/cmov/libm-2.11.2.so
b7414000-b7427000 r-xp 00000000 08:01 10053900   /usr/lib/libz.so.1.2.3.4
b7427000-b7428000 rw-p 00013000 08:01 10053900   /usr/lib/libz.so.1.2.3.4
b7428000-b744b000 r-xp 00000000 08:01 5201988    /lib/libpng12.so.0.44.0
b744b000-b744c000 rw-p 00022000 08:01 5201988    /lib/libpng12.so.0.44.0
b744c000-b744d000 rw-p 00000000 00:00 0
b744d000-b74c0000 r-xp 00000000 08:01 10056186   /usr/lib/libfreetype.so.6.6.0
b74c0000-b74c4000 rw-p 00073000 08:01 10056186   /usr/lib/libfreetype.so.6.6.0
b74c4000-b74f1000 r-xp 00000000 08:01 10056199   /usr/lib/libfontconfig.so.1.4.4
b74f1000-b74f3000 rw-p 0002c000 08:01 10056199   /usr/lib/libfontconfig.so.1.4.4
b74f3000-b7512000 r-xp 00000000 08:01 10056519   /usr/lib/libjpeg.so.62.0.0
b7512000-b7513000 rw-p 0001e000 08:01 10056519   /usr/lib/libjpeg.so.62.0.0
b7513000-b762c000 r-xp 00000000 08:01 10056211   /usr/lib/libX11.so.6.3.0
b762c000-b7630000 rw-p 00118000 08:01 10056211   /usr/lib/libX11.so.6.3.0
b7630000-b763f000 r-xp 00000000 08:01 10057839   /usr/lib/libXpm.so.4.11.0
b763f000-b7640000 rw-p 0000e000 08:01 10057839   /usr/lib/libXpm.so.4.11.0
b7640000-b7641000 rw-p 00000000 00:00 0
b7641000-b7781000 r-xp 00000000 08:01 5218835    /lib/i686/cmov/libc-2.11.2.so
b7781000-b7783000 r--p 0013f000 08:01 5218835    /lib/i686/cmov/libc-2.11.2.so
b7783000-b7784000 rw-p 00141000 08:01 5218835    /lib/i686/cmov/libc-2.11.2.so
b7784000-b7787000 rw-p 00000000 00:00 0
b7787000-b77a5000 r-xp 00000000 08:01 10059004   /usr/lib/libgd.so.2.0.0
b77a5000-b77c5000 rw-p 0001d000 08:01 10059004   /usr/lib/libgd.so.2.0.0
b77c5000-b77c9000 rw-p 00000000 00:00 0
b77d7000-b77db000 rw-p 00000000 00:00 0
b77db000-b77dc000 r-xp 00000000 00:00 0          [vdso]
b77dc000-b77f7000 r-xp 00000000 08:01 5201945    /lib/ld-2.11.2.so
b77f7000-b77f8000 r--p 0001a000 08:01 5201945    /lib/ld-2.11.2.so
b77f8000-b77f9000 rw-p 0001b000 08:01 5201945    /lib/ld-2.11.2.so
bfeed000-bff48000 rw-p 00000000 00:00 0          [stack]
Abortado (imagem do núcleo gravada)

E pra piorar em nenhuma das duas formas o sarg gera o index.html do diretório principal, somente os dos diretórios dos dias...
Se quiserem posso postar o meu sarg.conf

Alguem tem uma luz pra mim?

Tota

Citação de: Paulinunes online 02 de Agosto de 2011, 16:39
Instalei e configurei o sarg em um servidor Debian 6.0. Funcionou corretamente.

Ola,

Este forum é apenas do Ubuntu.

Não seria mais interessante prestigiar sua distribuição fazendo esta pergunta no forum Debian?

http://www.forumdebian.com.br/

Paulinunes

Citação de: Tota online 02 de Agosto de 2011, 22:00
Citação de: Paulinunes online 02 de Agosto de 2011, 16:39
Instalei e configurei o sarg em um servidor Debian 6.0. Funcionou corretamente.

Ola,

Este forum é apenas do Ubuntu.

Não seria mais interessante prestigiar sua distribuição fazendo esta pergunta no forum Debian?

http://www.forumdebian.com.br/

Tentei em varios lugares, e como o problema é no sarg, e o debian e o ubuntu são basicamente irmãos, nao vi problema em postar aki...

Tota

Após deliberação da administração do forum, foi votado o trancamento do mesmo.

Grato pela compreensão

[]'s