IT Consultant

Service dan Maintenance pc :
1. Warnet
2. Kantor
3. Personal

Jasa setting :
Proxy Cache (non https), Mikrotik, Warnet, RTRWNet
Info lebih lanjut hubungi :

Fatah : 0815-8651-0068

Jumat, 14 Februari 2014

Installasi and Setting SARG and CALAMARIS

# Install The Packages
apt-get install sarg calamaris libgd-graph-perl libnetaddr-ip-perl ttf-dustin -y

# Setting CALAMARIS
squid -k rotate
mkdir /var/www/calamaris
calamaris -a -F html /var/log/squid/access.log > /var/www/calamaris/index.html

# Edit Config Report
pico /etc/sarg/sarg-reports.conf

# Fill The File Like This One
SARG=/usr/bin/sarg
CONFIG=/etc/sarg/sarg.conf
HTMLOUT=/var/www/squid-reports
PAGETITLE="Access Reports on $(hostname)"
LOGOIMG=/sarg/images/sarg.png
LOGOLINK="http://$(hostname)/"
DAILY=Daily
WEEKLY=Weekly
MONTHLY=Monthly
EXCLUDELOG1="SARG: No records found"
EXCLUDELOG2="SARG: End"

# Edit Config Sarg
pico /etc/sarg/sarg.conf

# Change Rules
output_dir /var/lib/sarg
# With
output_dir /var/www/squid-reports

# Directory of SARG
mkdir /var/www/squid-reports

# Setting SARG
sarg-reports today
sarg-reports daily
sarg-reports weekly
sarg-reports monthly

# Make Scheduler
crontab -e
# Input This Rules Line To The Bottom Of The Line
* 6 * * * /usr/sbin/sarg-reports today
* 12 * * * calamaris -a -F html /var/log/squid/access.log > /var/www/calamaris/index.html

# And Finally
Access Report From CALAMARIS To Your Browser with URL http://[ip-server]/calamaris
Access Report From SARG To Your Browser with URL http://[ip-server]/squid-reports

INFO SERVICE PROXY SETTING AND MIKROTIK
 089693433305 / fathayu@gmail.com / fathayu@yahoo.co.id

Tidak ada komentar: