Sarg (sarg.conf)
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"
Aparece assim:
[root@server 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.