Search squid archive

Re: squid caching report

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@worldnet ~]# yum install sarg
[root@worldnet ~]# cd /etc/httpd/conf.d/
[root@worldnet conf.d]# cp sarg.conf sarg.conf.orig
[root@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@worldnet conf.d]# /etc/init.d/httpd restart

Then,
[root@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><a href="web-reports/index.html">web-reports</a></td>
              <td>web-reports</td>


Then,
[root@worldnet sarg]# cd /etc/sarg/
[root@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@worldnet sarg]# /usr/bin/sarg
SARG: Records in file: 1514, reading: 100.00%

Then, touch
[root@worldnet ~]# touch /var/www/sarg/sarg.cron

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

[root@wolrdnet sarg]# chmod 755 /var/www/sarg/sarg.cron


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

Then, issue below commands.
[root@worldnet ~]# /etc/cron.daily/sarg
[root@worldnet ~]# /etc/cron.weekly/sarg
[root@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@xxxxxxxx> 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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux