>  I downloaded and installed sarg on RHEL 5 but but not able to set it up.
>
>  Have anybody successfully setup SARG on RHEL 5.
>
>  Kindly let me know.

I have done it on Centos 4x

Pls see below. step by step guide.

SARG - Step by Step - CentOS

[EMAIL PROTECTED] ~]# yum install sarg
[EMAIL PROTECTED] ~]# cd /etc/httpd/conf.d/
[EMAIL PROTECTED] conf.d]# cp sarg.conf sarg.conf.orig
[EMAIL PROTECTED] 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>

[EMAIL PROTECTED] conf.d]# /etc/init.d/httpd restart

Then,
[EMAIL PROTECTED] ~]# cd /var/www/sarg/
[EMAIL PROTECTED] sarg]# mkdir reports

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

<td><a href="reports/index.html">reports</a></td>
                <td>reports (Every 30 minutes)</td>


Then,
[EMAIL PROTECTED] sarg]# cd /etc/sarg/
[EMAIL PROTECTED] 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/reports

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

Then, touch
[EMAIL PROTECTED] ~]# touch /var/www/sarg/sarg.cron
[EMAIL PROTECTED] ~]# cat /var/www/sarg/sarg.cron
#!/bin/sh
/usr/bin/sarg
cd /var/www/sarg/reports
rm -rf *.1

Then,
[EMAIL PROTECTED] ~]# cd /etc/cron.d
[EMAIL PROTECTED] cron.d]# touch sarg
[EMAIL PROTECTED] cron.d]# cat sarg
*/5 * * * * root /var/www/sarg/sarg.cron > /dev/null 2>&1
#*/30 * * * * root /var/www/sarg/sarg.cron > /dev/null 2>&1

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


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

That's it.

GOOD LUCK

>
>
>
>  On Thu, 08 May 2008 Indunil Jayasooriya wrote :
>
>
>  >Pls use sarg. It is good.
>  >
>  >
>  >Anyway, Redhat 9 is quite old. Pls use Cenos 5x instead
>  >
>  >RPM can be got from below URL
>  >
>  >http://dag.wieers.com/rpm/packages/sarg/
>  >
>  >GOOD LUCK
>  >
>  >
>  >On Thu, May 8, 2008 at 12:07 PM, Alexey Shakin <[EMAIL PROTECTED]> wrote:
>  > > Dear All!
>  > >
>  > >  I am new in squid administrating and
>  > >  I have one rather simple question.
>  > >  It is - how can I analyse squid log files?
>  > >  I have installed Red Hat 9 with
>  > >  Squid 2.5 Stable from the distribution kit.
>  > >  The standart tool (webalizer) is not
>  > >  appropriate at all. What I need is
>  > >  a possibility to create a detailed, flexible
>  > >  report about all users' usage of the server.
>  > >  I'm sure it's a very common task for Squid
>  > >  admins. Why there is no tool in the
>  > >  distribution kit, I don't understand.
>  > >  So, what will you advise me?
>  > >
>  > >
>  >
>  >
>  >
>  >--
>  >Thank you
>  >Indunil Jayasooriya
>
>
>
>



-- 
Thank you
Indunil Jayasooriya

Reply via email to