SARG
ติดตั้ง sarg-2.2.5 Squid Analysis Report Generator (Compile)
Download :
# wget http://prdownloads.sourceforge.net/sarg/sarg-2.2.5.tar.gz?download
# tar zxvf sarg-2.2.5.tar.gz
# cd sarg-2.2.5
# ./configure --enable-bindir=/usr/bin --enable-sysconfdir=/usr/local/sarg --enable-htmldir=/srv/www/htdocs/ --enable-mandir=/usr/local/man/man1
# make
# make install
# vim /usr/local/sarg/sarg.conf
(uncomment)
English
access_log /var/log/squid/access.log
font_size 11px
header_font_size 12px
title_font_size 12px
output_dir /srv/www/htdocs/squid-reports
resolve_ip no
user_ip no
overwrite_report yes
สร้างรายงาน
# sarg -x -g u
Output
http://IP Address/squid-reports
ตั้งเวลาสร้างรายงาน
# crontab -e
10 4 * * * /usr/bin/sarg -x -g u 2>&1 > /dev/null
20 4 * * * /usr/sbin/logrotate -f /etc/logrotate.conf

SUSE Linux Enterprise Cool Solutions
|







