Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #------ SARG
- apt-get install sarg
- nano /etc/sarg/sarg-reports.conf
- RUbah HTMLOUT=/var/lib/sarg menjadi HTMLOUT=/var/www/sarg
- nano /etc/sarg/sarg.conf
- graphs yes ( delete pagar )
- usertab /etc/sarg/usertab
- dan ganti menjadi
- usertab /etc/hosts
- sarg
- sarg-reports today
- sarg-reports daily
- sarg-reports weekly
- sarg-reports monthly
- /usr/sbin/sarg-reports daily
- crontab -e
- * */6 * * * /usr/sbin/sarg-reports today
- @daily /usr/sbin/sarg-reports daily
- #-----CALAMARIS
- calamaris libgd-graph-perl
- mkdir /var/www/calamaris/
- touch /var/www/calamaris/index.html
- chmod 755 /var/www/calamaris/*
- calamaris -R 5 /var/log/squid/access.log
- calamaris -a -F html /var/log/squid/access.log > /var/www/calamaris/index.html
- crontab -e
- * */6 * * * /usr/sbin/sarg-reports today
- * */12 * * * calamaris -a -F html /var/log/squid/access.log > /var/www/calamaris/index.html
- mkdir /var/www/calamaris
- calamaris -a -F html /var/log/squid/access.log > /var/www/calamaris/index.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement