ZiggyStardust
(usa Debian)
Enviado em 26/07/2010 - 20:55h
a versão do sarg que uso é a 2.2.7.1
segue meu sarg.conf funciona tranquilo
+---------------------------------------------
language Portuguese
access_log /etc/dansguardian/access.log #no meu caso eu uso ele para o dansguardian
title "Relatórios da Rede"
font_face Tahoma,Verdana,Arial
header_color black
header_bgcolor blanchedalmond
font_size 12px
header_font_size 10px
title_font_size 15px
background_color white
text_color #000000
text_bgcolor lavender
title_color black
temporary_dir /etc/sarg/tmp
output_dir /etc/sarg/html
resolve_ip no
user_ip yes
usertab /etc/sarg/sarg.usertab
topuser_sort_field BYTES reverse
user_sort_field BYTES reverse
exclude_users /etc/sarg/sarg.users
exclude_hosts /etc/sarg/sarg.hosts
date_format u
lastlog 0
remove_temp_files yes
index yes
index_tree file
overwrite_report yes
records_without_userid ip
use_comma yes
mail_utility mail
topsites_num 100
topsites_sort_order CONNECT D
index_sort_order D
exclude_codes none
max_elapsed 28800000
report_type topusers topsites sites_users users_sites date_time denied auth_failures site_user_time_date downloads
long_url no
date_time_by bytes
charset Latin1
show_sarg_logo no
show_successful_message no
show_read_statistics yes
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
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"
+------------------------------------------------------------------------
lembrando que você precisa criar os respectivos caminhos no meu caso coloquei tudo dentro de /etc/
mkdir /etc/sarg
mkdir /etc/sarg/tmp
chmod 777 /etc/sarg/tmp
touch /etc/sarg/sarg.usertab
chmod 777 /etc/sarg/sarg.usertab
touch /etc/sarg/sarg.users
chmod 777 /etc/sarg/sarg.users
touch /etc/sarg/sarg.hosts
chmod 777 /etc/sarg/sarg.hosts
mkdir /etc/sarg/html
chmod 777 /etc/sarg/html
+---------------------------------
crie com seu editor de texto preferido o sarg.conf com a configuração acima
Espero ter ajudado!!!