Advertisement
rapani

sarg + claramis

Nov 13th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1.  
  2. #------ SARG
  3.  
  4. apt-get install sarg
  5. nano /etc/sarg/sarg-reports.conf
  6. RUbah HTMLOUT=/var/lib/sarg menjadi HTMLOUT=/var/www/sarg
  7. nano /etc/sarg/sarg.conf
  8. graphs yes ( delete pagar )
  9. usertab /etc/sarg/usertab
  10. dan ganti menjadi
  11. usertab /etc/hosts
  12.  
  13. sarg
  14. sarg-reports today
  15. sarg-reports daily
  16. sarg-reports weekly
  17. sarg-reports monthly
  18.  
  19. /usr/sbin/sarg-reports daily
  20. crontab -e
  21. * */6 * * * /usr/sbin/sarg-reports today
  22. @daily /usr/sbin/sarg-reports daily
  23.  
  24.  
  25. #-----CALAMARIS
  26.  
  27. calamaris libgd-graph-perl
  28.  
  29. mkdir /var/www/calamaris/
  30.  
  31. touch /var/www/calamaris/index.html
  32.  
  33. chmod 755 /var/www/calamaris/*
  34.  
  35. calamaris -R 5 /var/log/squid/access.log
  36.  
  37. calamaris -a -F html /var/log/squid/access.log > /var/www/calamaris/index.html
  38.  
  39. crontab -e
  40.  
  41. * */6 * * * /usr/sbin/sarg-reports today
  42. * */12 * * * calamaris -a -F html /var/log/squid/access.log > /var/www/calamaris/index.html
  43.  
  44.  
  45. mkdir /var/www/calamaris
  46. calamaris -a -F html /var/log/squid/access.log > /var/www/calamaris/index.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement