Editar La Configraciòn Del SARG: Install Reportes para El Proxy

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

INSTALL REPORTES PARA EL PROXY

INSTALAR SARG # rpm -Uvh sarg-2.2.5-1.el5.rfi386.rpm Adicionalmente se requiere instalar: # yum install gd php-gd php httpd

Editar la configracin del SARG


# vim /etc/sarg/sarg.conf access_log /var/log/squid/access.log graphs yes graph_days_bytes_bar_color orange title "Squid User Access Reports" output_dir /var/www/sarg/ONE-SHOT resolve_ip no topuser_sort_field BYTES reverse user_sort_field BYTES reverse lastlog 3 remove_temp_files yes index yes overwrite_report yes topsites_num 100 topsites_sort_order CONNECT D index_sort_order D max_elapsed 28800000 report_type topsites sites_users users_sites date_time denied auth_failures site_user_time_date show_successful_message yes 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 show_sarg_logo yes

Generar el Log de Reportes:


#sarg - l /var/log/squid/access.log

Generar el log del reporte en el CRON:


00 23 * * * root /usr/bin/sarg

INICIAR EL APACHE:
/etc/init.d/httpd start

VISUALIZAR EL REPORTEADOR SARG


http://IP/sarg

You might also like