Sunday, March 6, 2011

Squid Analysis Report Generator (SARG) and Webmin

The Squid Analysis Report Generator (SARG) enables you to see your Squid users internet usage. SARG provides many informations about Squid users activities like times, bytes, sites, etc. This article will show you how to use SARG through Webmin, a web-based interface for administering Linux.


Installing Webmin and SARG

RPM Forge 
1. Add the RPMforge repository into Yum. We will be getting the SARG RPM package for Red Hat/CentOS from RPMforge.
Yum install SARG 
2. From a terminal window, type in the command below to install SARG.
yum install sarg
Webmin 
3. Install Webmin. After installing, login to Webmin. Webmin will enable us to control who gets access to the Squid reports. We will also have an easy to use web-based interface for configuring the report format.
SARG configure 
4. Click Un-used modules in the side bar. Next click Squid Report Generator. We need to configure SARG so click module configuration.
SARG configure 
5. Change the value of Full path to SARG configuration file to /etc/sarg/sarg.conf then click the Save.
NoteNext time you need to use the Squid Report Generator, look for it under Servers instead of Un-used modules.

Generating a report

SARG 
1. To generate a report, click the Generate Report Now button.
SARG 
2. Next, click View completed report.
SARG 
3. Click the latest generated report.
SARG 
4. Review the generated report.

No comments: