Home > Documentation > Squid Proxy Server > Reporting Internet Usage with Sarg

Reporting Internet Usage with Sarg

Posted by peter on October 13, 2011

Set up reporting with “sarg” as follows:

Browse to the “/” directory and unzip the sarg-2.3.tar.gz file with the follwing command

tar -vzxf sarg-2.3.tar.gz

Change to the folder created and install and configure sarg the following series of commands:

cd sarg-2.3

./configure

make

make install

Create a cron that will run the command “sarg” to generate reports on a regular basis

copy sarg from “/usr/local/bin/” to “/usr/bin/”

 cp /usr/local/bin/sarg /usr/bin/

Run the “sarg” command to generate a report.

 

You will need to access the Internet first before you run "sarg", otherwise it will come back with an error.

Set sarg to update regularly using cron.

To view the reports go to

http://<yourservername>/squid-reports/

 

Comments:

Leave a Reply



(Your email will not be publicly displayed.)

Please type the letters and numbers shown in the image.Captcha CodeClick the image to see another captcha.