Revisión 444
Añadido por Francisco Rodrigo hace más de 12 años
tareas_puppet/servidores_aula/squeeze/ltsp_squid/files/sarg-reports.conf | ||
---|---|---|
SARG=/usr/bin/sarg
|
||
CONFIG=/etc/squid/sarg.conf
|
||
CONFIG=/etc/sarg/sarg.conf
|
||
HTMLOUT=/var/www/squid-reports
|
||
PAGETITLE="Informe de Accesos de $(hostname)"
|
||
LOGOIMG=/squid-reports/Daily/images/sarg.png
|
tareas_puppet/servidores_aula/squeeze/ltsp_squid/files/sarg.conf | ||
---|---|---|
# Spanish
|
||
# Turkish
|
||
#
|
||
language Spanish
|
||
#language Spanish
|
||
|
||
# TAG: access_log file
|
||
# Where is the access.log file
|
||
... | ... | |
# users within the file will be excluded from reports.
|
||
# you can use indexonly to have only index.html file.
|
||
#
|
||
exclude_users /etc/squid/sarg.users
|
||
exclude_users /etc/sarg/exclude_users
|
||
|
||
# TAG: exclude_hosts file
|
||
# Hosts, domains or subnets will be excluded from reports.
|
||
... | ... | |
# s1.acme.foo - exclude hostname only
|
||
# acme.foo - exclude full domain name
|
||
#
|
||
exclude_hosts /etc/squid/sarg.hosts
|
||
exclude_hosts /etc/sarg/exclude_hosts
|
||
|
||
# TAG: useragent_log file
|
||
# useragent.log file patch to generate useragent report.
|
||
... | ... | |
# TAG: exclude_codes file
|
||
# Ignore records with these codes. Eg.: NONE/400
|
||
#
|
||
exclude_codes /etc/squid/sarg.exclude_codes
|
||
exclude_codes /etc/sarg/exclude_codes
|
||
|
||
# TAG: replace_index string
|
||
# Replace "index.html" in the main index file with this string
|
||
... | ... | |
#
|
||
# Each line must be terminated with '\n'
|
||
#
|
||
usertab /etc/squid/sarg.usertab
|
||
usertab /etc/sarg/usertab
|
||
|
||
# TAG: long_url yes|no
|
||
# If yes, the full url is showed in report.
|
||
... | ... | |
# TAG: site_user_time_date_type list|table
|
||
# generate reports for site_user_time_date in list or table format
|
||
#
|
||
site_user_time_date_type table
|
||
#site_user_time_date_type table
|
||
|
||
# TAG: datafile file
|
||
# Save the report results in a file to populate some database
|
tareas_puppet/servidores_aula/squeeze/ltsp_squid/manifests/init.pp | ||
---|---|---|
source=>"puppet:///ltsp_squid/squid-cache-refresh.conf",
|
||
require => Exec["instalar-sarg-squid-apache2"],
|
||
notify => Exec["reiniciar-squid"];
|
||
"/etc/squid/sarg.conf":
|
||
"/etc/sarg/sarg.conf":
|
||
owner=>root, group=>root, mode=>644,
|
||
source=>"puppet:///ltsp_squid/sarg.conf",
|
||
require => Exec["instalar-sarg-squid-apache2"],
|
||
notify => Exec["reiniciar-squid"];
|
||
"/etc/squid/sarg-reports.conf":
|
||
"/etc/sarg/sarg-reports.conf":
|
||
owner=>root, group=>root, mode=>644,
|
||
source=>"puppet:///ltsp_squid/sarg-reports.conf",
|
||
require => Exec["instalar-sarg-squid-apache2"],
|
Exportar a: Unified diff
Actualizada la tarea ltsp_squid para que funcionen los informes de sarg