SARG Monitoring Tool
#yum install gcc make wget httpd
#yum install squid
#mv sarg-2.3.1.tar.gz /software/
#cd /software/
#ll
#tar zxvf sarg-2.3.1.tar.gz
#ll
#cd sarg-2.3.1
#./configure --prefix=/opt/sarg
#make
#make install
#cd /software/
#rm -rf sarg-2.3.1
#ll
#cd /opt/
#cd sarg/
#cd etc/
#cd /opt/sarg/
#cd bin/
#vi /opt/sarg/etc/sarg.conf
#/opt/sarg/bin/sarg -x
#vi /opt/sarg/etc/sarg.conf
#touch /var/log/sarg_access.log
#/opt/sarg/bin/sarg -x
#vi /opt/sarg/etc/sarg.conf
Uncomment following
access_log /var/log/squid/access.log
graphs yes
output_dir /opt/sarg/squid-reports
date_format e
remove_temp_files yes
overwrite_report yes
mail_utility mailx
output_email user@domain.com
#/opt/sarg/bin/sarg -x
#mv /root/access.log /var/log/squid/
#/opt/sarg/bin/sarg -x
#less /opt/sarg/squid-reports/2012Dec02-2012Dec04
#locate squid-reports
#updatedb
#locate squid-reports
#vi /etc/httpd/conf/httpd.conf
Alias /sarg "/opt/sarg/squid-reports/"
<Directory "/opt/sarg/squid-reports/">
AllowOverride None
Options IncludesNoExec
Order allow,deny
Allow from all
</Directory>
# /etc/init.d/httpd restart
#vi /opt/sarg/etc/sarg.conf
#/opt/sarg/bin/sarg -x
Access from Browser
http://SERVER-IP/sarg
#yum install gcc make wget httpd
#yum install squid
#mv sarg-2.3.1.tar.gz /software/
#cd /software/
#ll
#tar zxvf sarg-2.3.1.tar.gz
#ll
#cd sarg-2.3.1
#./configure --prefix=/opt/sarg
#make
#make install
#cd /software/
#rm -rf sarg-2.3.1
#ll
#cd /opt/
#cd sarg/
#cd etc/
#cd /opt/sarg/
#cd bin/
#vi /opt/sarg/etc/sarg.conf
#/opt/sarg/bin/sarg -x
#vi /opt/sarg/etc/sarg.conf
#touch /var/log/sarg_access.log
#/opt/sarg/bin/sarg -x
#vi /opt/sarg/etc/sarg.conf
Uncomment following
access_log /var/log/squid/access.log
graphs yes
output_dir /opt/sarg/squid-reports
date_format e
remove_temp_files yes
overwrite_report yes
mail_utility mailx
output_email user@domain.com
#/opt/sarg/bin/sarg -x
#mv /root/access.log /var/log/squid/
#/opt/sarg/bin/sarg -x
#less /opt/sarg/squid-reports/2012Dec02-2012Dec04
#locate squid-reports
#updatedb
#locate squid-reports
#vi /etc/httpd/conf/httpd.conf
Alias /sarg "/opt/sarg/squid-reports/"
<Directory "/opt/sarg/squid-reports/">
AllowOverride None
Options IncludesNoExec
Order allow,deny
Allow from all
</Directory>
# /etc/init.d/httpd restart
#vi /opt/sarg/etc/sarg.conf
#/opt/sarg/bin/sarg -x
Access from Browser
http://SERVER-IP/sarg
No comments:
Post a Comment