Sarg (sarg.conf)

Conf para o Sarg funcionando 100% no SUSE 10

Categoria: Networking

Software: Sarg

[ Hits: 12.291 ]

Por: Rodrigo FLeury Bastos


Conf do sarg, funcionando 100% no Suse 10.


language Portuguese
access_log /var/log/squid/access.log
graphs yes
graph_days_bytes_bar_color orange
title "[ RELATORIO DE ACESSO ]"
font_face Tahoma,Verdana,Arial
header_color darkblue
header_bgcolor blanchedalmond
font_size 9px
background_color white
text_color #000000
text_bgcolor lavender
title_color green
temporary_dir /tmp
output_dir /srv/www/htdocs/squid
resolve_ip no
user_ip no
topuser_sort_field BYTES reverse
user_sort_field BYTES reverse
#exclude_users /etc/squid/sarg.users
#exclude_hosts /etc/squid/sarg.hosts
date_format e
lastlog 3
remove_temp_files yes
index yes
overwrite_report yes
records_without_userid ip
use_comma yes
mail_utility mailx
topsites_num 100
topsites_sort_order CONNECT D
index_sort_order D
#exclude_codes /etc/squid/sarg.exclude_codes
max_elapsed 28800000
report_type topsites sites_users users_sites date_time denied auth_failures site_user_time_date
#usertab /etc/squid/sarg.usertab
long_url no
date_time_by bytes
charset Latin1
show_successful_message no
show_read_statistics no
topuser_fields NUM DATE_TIME USERID CONNECT BYTES %BYTES IN-CACHE-OUT USED_TIME MILISEC %TIME TOTAL AVERAGE
user_report_fields CONNECT BYTES %BYTES IN-CACHE-OUT USED_TIME MILISEC %TIME TOTAL AVERAGE
topuser_num 0
site_user_time_date_type table
www_document_root /var/www
download_suffix "zip,arj,bzip,gz,ace,doc,iso,adt,bin,cab,com,dot,drv$,lha,lzh,mdb,mso,pps,z7,ppt,rtf,src,shs,sys,exe,dll,mp3,avi,mpg,mpeg"
  


Comentários
[1] Comentário enviado por jefferson.gava em 12/09/2007 - 16:49h

excelente.. mas não estou conseguindo compilar...
Aparece assim:

[[email protected] sarg-2.2.3.1]# ./configure --enable-sysconfdir=/etc/sarg
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for dirent.h that defines DIR... no
checking for sys/ndir.h that defines DIR... no
checking for sys/dir.h that defines DIR... no
checking for ndir.h that defines DIR... no
checking for library containing opendir... none required
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

[2] Comentário enviado por rfbastos em 12/09/2007 - 18:13h

cola aki o erro o config.log

ja tentou outro pacote sarg?

Verifica tb se todas as bibliotecas estao ok.

[3] Comentário enviado por jefferson.gava em 14/09/2007 - 08:47h

ah... acho q está tudo certinho sim.... como posso verificar isso...

[4] Comentário enviado por rfbastos em 14/09/2007 - 10:31h

Vamos por partes.

Ja tentou outro arquivo sarg?


Me envie por email o "config.log"
pra q eu de uma olhada.


[5] Comentário enviado por balani em 27/09/2007 - 17:45h

estou tendo problema ao compilar o sarg 2.2.3.1, quando executo o comando make aparece o seguinte erro:
/sistema/sarg-2.2.3.1/grepday.c:65: undefined reference to `gdImageStringFTEx'
grepday.o(.text+0x173): In function `bar':
/sistema/sarg-2.2.3.1/grepday.c:181: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x192):/sistema/sarg-2.2.3.1/grepday.c:182: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x1ab):/sistema/sarg-2.2.3.1/grepday.c:183: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x1ca):/sistema/sarg-2.2.3.1/grepday.c:184: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x1e9):/sistema/sarg-2.2.3.1/grepday.c:185: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x25e):/sistema/sarg-2.2.3.1/grepday.c:197: undefined reference to `gdImageFilledRectangle'
grepday.o(.text+0x2a8):/sistema/sarg-2.2.3.1/grepday.c:207: undefined reference to `gdImageFilledPolygon'
grepday.o(.text+0x2d4):/sistema/sarg-2.2.3.1/grepday.c:209: undefined reference to `gdImageLine'
grepday.o(.text+0x2fe):/sistema/sarg-2.2.3.1/grepday.c:210: undefined reference to `gdImageFilledRectangle'
grepday.o(.text+0x321):/sistema/sarg-2.2.3.1/grepday.c:211: undefined reference to `gdImageRectangle'
grepday.o(.text+0x3c5):/sistema/sarg-2.2.3.1/grepday.c:225: undefined reference to `gdImageFilledPolygon'
grepday.o(.text+0x3fc):/sistema/sarg-2.2.3.1/grepday.c:176: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x412):/sistema/sarg-2.2.3.1/grepday.c:177: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x42e):/sistema/sarg-2.2.3.1/grepday.c:178: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x44c):/sistema/sarg-2.2.3.1/grepday.c:171: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x462):/sistema/sarg-2.2.3.1/grepday.c:172: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x47b):/sistema/sarg-2.2.3.1/grepday.c:173: more undefined references to `gdImageColorAllocate' follow
grepday.o(.text+0x691): In function `greport_day':
/sistema/sarg-2.2.3.1/grepday.c:255: undefined reference to `gdImageCreate'
grepday.o(.text+0x6ab):/sistema/sarg-2.2.3.1/grepday.c:257: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x6cd):/sistema/sarg-2.2.3.1/grepday.c:258: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x6ec):/sistema/sarg-2.2.3.1/grepday.c:259: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x70e):/sistema/sarg-2.2.3.1/grepday.c:260: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x724):/sistema/sarg-2.2.3.1/grepday.c:261: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x740):/sistema/sarg-2.2.3.1/grepday.c:262: more undefined references to `gdImageColorAllocate' follow
grepday.o(.text+0x798): In function `greport_day':
/sistema/sarg-2.2.3.1/grepday.c:266: undefined reference to `gdImageRectangle'
grepday.o(.text+0x7ba):/sistema/sarg-2.2.3.1/grepday.c:267: undefined reference to `gdImageFilledRectangle'
grepday.o(.text+0x825):/sistema/sarg-2.2.3.1/grepday.c:277: undefined reference to `gdImageFilledPolygon'
grepday.o(.text+0x88d):/sistema/sarg-2.2.3.1/grepday.c:287: undefined reference to `gdImageFilledPolygon'
grepday.o(.text+0x8ac):/sistema/sarg-2.2.3.1/grepday.c:289: undefined reference to `gdImageLine'
grepday.o(.text+0x8d1):/sistema/sarg-2.2.3.1/grepday.c:290: undefined reference to `gdImageLine'
grepday.o(.text+0x8f3):/sistema/sarg-2.2.3.1/grepday.c:291: undefined reference to `gdImageLine'
grepday.o(.text+0x912):/sistema/sarg-2.2.3.1/grepday.c:292: undefined reference to `gdImageLine'
grepday.o(.text+0x937):/sistema/sarg-2.2.3.1/grepday.c:293: undefined reference to `gdImageLine'
grepday.o(.text+0x95f):/sistema/sarg-2.2.3.1/grepday.c:294: more undefined references to `gdImageLine' follow
grepday.o(.text+0x1771): In function `greport_day':
/sistema/sarg-2.2.3.1/grepday.c:449: undefined reference to `gdImagePng'
grepday.o(.text+0x1789):/sistema/sarg-2.2.3.1/grepday.c:451: undefined reference to `gdImageDestroy'
collect2: ld returned 1 exit status
make: ** [sarg] Erro 1

[6] Comentário enviado por todeschini em 02/10/2007 - 10:40h

ae baixa o sarg mas em rpm, e + pratico do que ficar compilando.

[7] Comentário enviado por xandexaxa em 29/11/2007 - 13:17h

Oque faz está última linha do seu conf do sarg, não entendi pra que serve???

download_suffix "zip,arj,bzip,gz,ace,doc,iso,adt,bin,cab,com,dot,drv$,lha,lzh,mdb,mso,pps,z7,ppt,rtf,src,shs,sys,exe,dll,mp3,avi,mpg,mpeg"

Me explique por favor???

[8] Comentário enviado por rfbastos em 29/11/2007 - 14:58h

download_sufix vai te dar a statistica de download destes arquivos

[9] Comentário enviado por rfbastos em 29/11/2007 - 14:59h

balani

pelo q me parece esta faltando a biblioteca GD no seu sistema procure instala-la ou procure um pacote RPM


Contribuir com comentário

  



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner
Linux banner
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts