Re: [squid-users] squid caching report

From: Indunil Jayasooriya <indunil75_at_gmail.com>
Date: Fri, 16 Jan 2009 15:59:03 +0530

Hi ALL

Here is HOW to - Step by Step. I use this on Redhat/CentOS

SARG - Step by Step -

Fisst install rpmforge-release RPM .

Then, perform below steps

[root_at_worldnet ~]# yum install sarg
[root_at_worldnet ~]# cd /etc/httpd/conf.d/
[root_at_worldnet conf.d]# cp sarg.conf sarg.conf.orig
[root_at_worldnet conf.d]# cat sarg.conf
Alias /sarg /var/www/sarg

<Directory /var/www/sarg>
      DirectoryIndex index.html
      Order deny,allow
      Deny from all
      Allow from all
</Directory>

[root_at_worldnet conf.d]# /etc/init.d/httpd restart

Then,
[root_at_worldnet ~]# cd /var/www/sarg/

Now, Edit words ONE-SHOT and One shot reports of index.html to reports
and reports (Every 30 minutes) as follows.

<td>web-reports</td>
              <td>web-reports</td>

Then,
[root_at_worldnet sarg]# cd /etc/sarg/
[root_at_worldnet sarg]# cp sarg.conf sarg.conf.orig
And edit, sarg.conf

Pls coment out below line as follows,
#output_dir /var/www/sarg/ONE-SHOT

and, Add below line.
output_dir /var/www/sarg/web-reports

Then, issue below command,
[root_at_worldnet sarg]# /usr/bin/sarg
SARG: Records in file: 1514, reading: 100.00%

Then, touch
[root_at_worldnet ~]# touch /var/www/sarg/sarg.cron

[root_at_worldnet sarg]# cat /var/www/sarg/sarg.cron
#!/bin/bash
cd /var/www/sarg/web-reports
rm -rf *
/usr/bin/sarg

[root_at_wolrdnet sarg]# chmod 755 /var/www/sarg/sarg.cron

Then,
[root_at_worldnet ~]# cd /etc/cron.d
[root_at_worldnet cron.d]# touch sarg
[root_at_worldnet ~]# cat /etc/cron.d/sarg
0 15 * * * root /var/www/sarg/sarg.cron > /dev/null 2>&1

Then, issue below commands.
[root_at_worldnet ~]# /etc/cron.daily/sarg
[root_at_worldnet ~]# /etc/cron.weekly/sarg
[root_at_worldnet ~]# /etc/cron.monthly/sarg

Now, Browse as follows.
http://192.168.101.25/sarg

That's it.

On Fri, Jan 16, 2009 at 2:58 PM, Andreev Nikita <nik_at_kemsu.ru> wrote:
> Hi.
>
> You can use cacti but it's MRTG-like. The best tools I know for squid
> reports are sarg (which is rather popular) and lightsquid (it makes
> reports a lot faster but I don't know if it's popular outside Russia).
>
> Regards,
> LPIC-1, EMCPA
> Nikita Andreev
>
>

-- 
Thank you
Indunil Jayasooriya
Received on Fri Jan 16 2009 - 10:29:08 MST

This archive was generated by hypermail 2.2.0 : Fri Jan 16 2009 - 12:00:03 MST