PDA

Просмотр полной версии : sarg вместо отчета по дням сталл суммировать


Sir Arthur
22.03.2007, 09:46
На старой проксе все было нормально, выводил отчеты по дням. Перенес проксю на новое железо стал гнать отчеты нарастающим итогом

proxy ~ # ls -al /usr/www/localhost/htdocs/squid-reports/
total 69
drwxrwxrwx 20 squid squid 800 Mar 22 00:20 .
drwxr-xr-x 122 root root 4144 Mar 22 00:20 28Feb2007-21Mar2007
proxy ~ #

по sarg -d date-date отрабатывает нормально
proxy ~ # sarg -d 21/03/2007-21/03/2007
SARG: Records in file: 5543164, reading: 100.00%
SARG: нРВЕР СЯОЕЬМН ЯЦЕМЕПХПНБЮМ Б: /usr/www/localhost/htdocs/squid-reports/21Mar2007-21Mar2007
proxy ~ #

конфиг сарга

proxy ~ # cat /etc/sarg/sarg.conf
#sarg conf
language Russian_windows1251
access_log /var/log/squid/access.log
graphs yes
graph_days_bytes_bar_color orange
title "Usage Internet resources Reports"
font_face Tahoma,Verdana,Arial
header_color darkblue
header_bgcolor blanchedalmond
font_size 12px
header_font_size 12px
title_font_size 14px
background_color white
text_color #000000
text_bgcolor lavender
title_color green
temporary_dir /tmp
output_dir /usr/www/localhost/htdocs/squid-reports
output_email none
resolve_ip yes
date_format e
#per_user_limit none
lastlog 30
remove_temp_files yes
index yes
index_tree file
overwrite_report yes
records_without_userid ip
topsites_num 300
index_sort_order D
report_type topusers topsites sites_users users_sites date_time denied auth_failures site_user_time_date downloads
#long_url yes
charset Windows-1251
#Latin1
user_invalid_char "&/"
show_successful_message yes
show_read_statistics yes
site_user_time_date_type table
weekdays 1,2,3,4,5
hours 8,9,10,11,12,13,14,15,16,17,18,19,20,21
show_sarg_info no
show_sarg_logo no
proxy ~ #

c0re
22.03.2007, 10:29
lightsquid наше фсе :)

Sir Arthur
22.03.2007, 11:33
а через вебморду его конфигурить мона?
Я про шефа своего - он шелом не любит пользоваться

c0re
22.03.2007, 11:35
нет.. а зачем? с шелла настраивается в конфигах всё, а дальше лайтсквид просто работает, графики строит..
а что там настраивать через веб?

Sir Arthur
22.03.2007, 12:04
Чтож мне теперь всех юзеров переписывать из дхцп. По айпишникам не кошерно

c0re
22.03.2007, 12:23
как это переписывать?? а в ДНС у тебя не заведены они?

c0re
22.03.2007, 12:29
вообще там есть несколько опций резолва:
ip2name.abils ip2name.dhcp ip2name.ip ip2name.simple ip2name.squidauth ip2name.squidlist2
ip2name.demo ip2name.dns ip2name.list ip2name.smb ip2name.squidlist

в /usr/local/libexec/lightsquid лежат они. Не изучал, мне подошёл dns.

lirien
22.03.2007, 12:47
юзаю свои скрипты на php & awk
и вебморда своя

lirien
22.03.2007, 12:48
sarg мне с самого начала почемуто не понравился :)