вот запись в crontab:
Код: Выделить всё
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root nice -n 19 run-parts --report /etc/cron.hourly
02 4 * * * root nice -n 19 run-parts --report /etc/cron.daily
22 4 * * 0 root nice -n 19 run-parts --report /etc/cron.weekly
42 4 1 * * root nice -n 19 run-parts --report /etc/cron.monthly
10 1 1 * * root /etc/rc.d/init.d/squid -k rotate
0 21 * * 1-5 root /usr/sbin/sarg
Код: Выделить всё
language Russian_UTF-8
access_log /var/log/squid/access.log
#graphs yes
#graph_days_bytes_bar_color orange
title "Squid User Access Reports for proxy"
font_face Arial
header_color darkblue
header_bgcolor blanchedalmond
font_size 9px
header_font_size 9px
title_font_size 11px
background_color white
text_color #000000
text_bgcolor lavender
title_color green
logo_text_color #000000
image_size 80 45
output_dir /var/www/html/squid/squid_report/index.html
exclude_hosts 192.168.0.0
date_format e
#per_user_limit none
#lastlog 0
remove_temp_files yes
index yes
overwrite_report yes
topsites_num 100
topsites_sort_order CONNECT D
index_sort_order D
exclude_codes /etc/sarg/exclude_codes
max_elapsed 28800000
date_time_by bytes
charset Russian_UTF-8
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
#show_sarg_info yes
#show_sarg_logo yes
displayed_values abbreviation