SARG install & config

1. Download SARG from http://sarg.sourceforge.net/ to your server
(In this case download to /usr/local/src)

2. Install SARG
[root@techtoy root]# cd /usr/local/src
[root@techtoy src]# tar zxvf /root/sarg-1.4.1.tar.gz
[root@techtoy src]# cd sarg-1.4.1
(1.4.1 is version of your sarg)
[root@techtoy sarg-1.4.1]# ./configure
[root@techtoy sarg-1.4.1]# make
[root@techtoy sarg-1.4.1]# make install

3. Config sarg.conf
[root@techtoy sarg-1.4.1]# vi /usr/local/sarg/sarg.conf

# TAG: access_log file
access_log /var/log/squid/access.log

# TAG: output_dir
output_dir /var/www/html/squid-reports


4. Test sarg generate report
[root@techtoy sarg-1.4.1]# sarg

5. View report generated ?
[root@techtoy sarg-1.4.1]# ls /var/www/html/squid-reports/2008Jan12-2008Jan16

6. Veiew report by web browser
http://your sarg server ip/squid-reports/

Example
http://192.168.1.1/squid-reports/


To create Daily, Weekly and Monthly reports.
http://www.initzero.it/portal/en/products/opensource/sarg-reports

ความคิดเห็น

บทความที่ได้รับความนิยม