Problem configuring SARG + SQUID

Hi guys,
i just set up (im just beginner though) a proxy linux box, fedora 5.
then with webmin i installed squid (that is working , i have some test clients browsing the net through it) and i want ti install SARG.
Well..i download sarg, install it and then, when i try to generate the first time report it says like " open file error +6.5nr such file doesnt exist (referring to the /var/log/squid/access.log that indeed exist and i set with everyone full control (just to be sure it can touch it..)

whats the problem?????
I checked all parameters are correct..but still...cant create the first "report" from webmin menu...
Any idea?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

how you install squid? from source? you need to specify sarge where is the file squid/access.log that is the error. if you install in /usr/local/squid you need to specify in sarge.conf or whatever conf file that the access.log is in /usr/local/squid/log/access.log
Gabriel OrozcoSolution ArchitectCommented:
Right. you need to tell SARG where is the squid log file.
for Fedora squid install I guess it is at /var/log/squid/access.log

and sarg.conf can be at /etc/sarg/sarg.conf

mine has (I do not include most "standard" configs):
language English
access_log /usr/local/squid/var/logs/access.log
graphs yes
title "Internet User Access Reports"
output_dir /var/www/htdocs/squid-reports
resolve_ip yes
user_ip no
topuser_sort_field BYTES reverse
overwrite_report yes
use_comma yes
report_type topsites sites_users users_sites date_time denied auth_failures site_user_time_date

you can edit it to show what you want.  note the "output_dir" where all the sarg html reports will be saved. I put them at my apache html directory =)
Try to install your SARG from :-

Choose the FC3, it should be compatible.

Then a minimum modification of the sarg.conf file. follow the instruction as above. Your SARG should be working very easily.
BTW, this rpm file will automatically creates CRON jobs. check out the /etc/cron.daily directory.

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

djmc26Author Commented:
Actually, answering to redimido e pablo:
i already checked that, ....the conf file ACTUALLY point to the right location, access log, as i said, exist and it is in the position i told sarg to look for start thinking its something "buggy"
Access.log file has even permission to read and write for everyone (to avoid maybe some user perm trouble..) but still it gives that incredibly strange error:

"sarg -l /var/log/squid/access.log
SARG: records in file 1950, reading 0.00%
sort: open failed: +6.5nr no such file or directory (i repeat it EXISTS !!!)
SARG: (index) cant open the file /var/www/sarg/index.sort
SARG: Records in file 1950, reading 100.00%"

SARG FAILED ! see above output for detail


i will try now kiitii solution installing this version of sarg above...
Gabriel OrozcoSolution ArchitectCommented:
mmhh... and can SARG write to /var/www/sarg/index.sort?
do user and the permissions are setup correctly for the temporary index file? SARG needs to write some files itself to know what records are already processed...
djmc26Author Commented:
actually there is NO index.sort file, i expected the program to create it on the fly, i put the /www/sarg directory in write to everyone (saying in win mode :) ) just to let i create its temp file...
djmc26Author Commented:

i have to create an "empty document" called index.sort and put into /var/www/sarg/ directory..

quite strange nobody wrote it into the howto or readme files :) anyway i hope that this will help someone else in this task !!!

djmc26Author Commented:
But...the problem is that when i try to generate it again...if i dont put manually an index.sort file, it still doesnt work..CRAP :(
Gabriel OrozcoSolution ArchitectCommented:
create a bash script with the orders you need, e.g.:
touch /var/www/sarg/index.sort
sarg -options_here
and then you can use this script whenever you need.

whoever, it seems like sarg has a patch for the problem you have, and it was fixed on newer (2.x) versions of sarg.

maybe you need to upgrade =)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gabriel OrozcoSolution ArchitectCommented:
sorry:  "whoever"  should be "however"
Hi all

Does anyone know what the latest sarg version is and where to find it. I am having the same problem when generating reports, it fails. I am using sarg 2.1

Gabriel OrozcoSolution ArchitectCommented:

2.1 is last version.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.