LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-20-2009, 09:25 AM   #1
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Rep: Reputation: 15
How to install and configure Squid Analysis Report Generator


Hie I have a proxy server running with fedora 10. Now I need to install Squid Analysis Report Generator (sarg) but i have failed. I have tried this code: yum install sarg
output
Loaded plugins: refresh-packagekit
updates | 2.3 kB 00:00
updates/primary_db | 2.5 MB 00:56
fedora | 2.8 kB 00:04
Setting up Install Process
Parsing package install arguments
No package sarg available.
Nothing to do

and googled for different site come with different rpm and tar.g which also failed to install it. Is there anyone to help me install sarg on fedora 10.
 
Old 02-20-2009, 10:49 AM   #2
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
download the rpm from here: (depending on your server architecture)

ftp.freshrpms.net/pub/freshrpms/pub/dag/fedora/10/en/x86_64/RPMS.dries/sarg-2.2.5-1.fc10.rf.x86_64.rpm
ftp.freshrpms.net/pub/freshrpms/pub/dag/fedora/10/en/x86_64/RPMS.dries/sarg-2.2.5-1.fc10.rf.x86_64.rpm[/URL]
ftp.freshrpms.net/pub/freshrpms/pub/dag/fedora/10/en/x86_64/dries/RPMS/sarg-2.2.5-1.fc10.rf.x86_64.rpm
ftp.freshrpms.net/pub/freshrpms/pub/dag/fedora/10/en/i386/dries/RPMS/sarg-2.2.5-1.fc10.rf.i386.rpm
ftp.freshrpms.net/pub/freshrpms/pub/dag/fedora/10/en/i386/RPMS.dries/sarg-2.2.5-1.fc10.rf.i386.rpm

Last edited by chitambira; 02-20-2009 at 10:51 AM.
 
Old 02-23-2009, 02:00 AM   #3
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Original Poster
Rep: Reputation: 15
The package sarg-2.2.5-1.fc10.rf.i386 installed. Now how would i invoke it into use.what commands should i use. I typed this code to[root@goodheaven ~]# /usr/local/sarg/sarg.conf
-bash: /usr/local/sarg/sarg.conf: No such file or directory

so where is sarg.conf reside. On webmin when i open Squid Analysis Report generator l get this:-"Module Config
Squid Report Generator

The Sarg configuration file /usr/local/sarg/sarg.conf was not found on your system. Maybe Sarg is not installed, or the module configuration is incorrect"

and on module config:Configuration
For module Squid Report Generator
Configurable options for Squid Report Generator
Full path to sarg executable-- (on this there is nothing and where did the sarg executabe sit, because when i tried again to install it said it already installed)
Full path to SARG configuration file {/usr/local/sarg/sarg.conf}
Add Webmin header and footer to SARG report? Yes No

what is my next step to make this run or need to restart the computer.
 
Old 02-23-2009, 04:32 AM   #4
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
you now have to find the install locations for sarg, which are particular to your distro.
try # updatedb && locate sarg and you will be presented with all to where you can find sarg.
 
Old 02-23-2009, 04:43 AM   #5
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Original Poster
Rep: Reputation: 15
this is the output of code locate sarg
[root@goodheavens ~]# locate sarg
/etc/webmin/sarg
/etc/webmin/sarg/config
/home/perfectpol7/Documents/sarg-2.2.5
/usr/libexec/webmin/sarg
/usr/libexec/webmin/blue-theme/sarg
/usr/libexec/webmin/blue-theme/sargreports
/usr/libexec/webmin/blue-theme/sarg/images
/usr/libexec/webmin/blue-theme/sarg/images/icon.gif
/usr/libexec/webmin/blue-theme/sarg/images/log.gif
/usr/libexec/webmin/blue-theme/sarg/images/report.gif
/usr/libexec/webmin/blue-theme/sarg/images/sched.gif
/usr/libexec/webmin/blue-theme/sarg/images/style.gif
/usr/libexec/webmin/blue-theme/sargreports/images
/usr/libexec/webmin/blue-theme/sargreports/images/icon.gif
/usr/libexec/webmin/sarg/CHANGELOG
/usr/libexec/webmin/sarg/backup_config.pl
/usr/libexec/webmin/sarg/charsets
/usr/libexec/webmin/sarg/config
/usr/libexec/webmin/sarg/config-debian-linux-3.1-*
/usr/libexec/webmin/sarg/config-openmamba-linux
/usr/libexec/webmin/sarg/config.info
/usr/libexec/webmin/sarg/config.info.ca
/usr/libexec/webmin/sarg/config.info.es
/usr/libexec/webmin/sarg/config.info.fa
/usr/libexec/webmin/sarg/config.info.nl
/usr/libexec/webmin/sarg/edit_log.cgi
/usr/libexec/webmin/sarg/edit_report.cgi
/usr/libexec/webmin/sarg/edit_sched.cgi
/usr/libexec/webmin/sarg/edit_style.cgi
/usr/libexec/webmin/sarg/generate.cgi
/usr/libexec/webmin/sarg/generate.pl
/usr/libexec/webmin/sarg/images
/usr/libexec/webmin/sarg/index.cgi
/usr/libexec/webmin/sarg/install_check.pl
/usr/libexec/webmin/sarg/lang
/usr/libexec/webmin/sarg/languages
/usr/libexec/webmin/sarg/log_parser.pl
/usr/libexec/webmin/sarg/module.info
/usr/libexec/webmin/sarg/sarg-lib.pl
/usr/libexec/webmin/sarg/save_log.cgi
/usr/libexec/webmin/sarg/save_report.cgi
/usr/libexec/webmin/sarg/save_sched.cgi
/usr/libexec/webmin/sarg/save_style.cgi
/usr/libexec/webmin/sarg/view.cgi
/usr/libexec/webmin/sarg/images/Sergent.JPG
/usr/libexec/webmin/sarg/images/icon.gif
/usr/libexec/webmin/sarg/images/log.gif
/usr/libexec/webmin/sarg/images/package_graphics.png
/usr/libexec/webmin/sarg/images/report.gif
/usr/libexec/webmin/sarg/images/sched.gif
/usr/libexec/webmin/sarg/images/smallicon.gif
/usr/libexec/webmin/sarg/images/style.gif
/usr/libexec/webmin/sarg/lang/ca
/usr/libexec/webmin/sarg/lang/en
/usr/libexec/webmin/sarg/lang/es
/usr/libexec/webmin/sarg/lang/fa
/usr/libexec/webmin/sarg/lang/nl

then what next stanza.
 
Old 02-23-2009, 05:01 AM   #6
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
did you run updatedb? DON'T run locate before running updatedb(cut and paste the command that I gave above). As it is now it seems like sarg is not installed.
 
Old 02-24-2009, 07:00 AM   #7
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Original Poster
Rep: Reputation: 15
the code updateb returning nothing
[root@goodheavens ~]# updatedb
[root@goodheavens~]# sudo locate sarg.conf
/etc/httpd/conf.d/sarg.conf
/etc/sarg/sarg.conf
/home/perfectpol7/sarg-2.2.5/sarg.conf
[root@goodheavens ~]# sudo updatedb
[root@goodheavenst ~]#

but sudo locate
 
Old 02-24-2009, 07:19 AM   #8
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
Quote:
the code updateb returning nothing
[root@goodheavens ~]# updatedb
[root@goodheavens~]# sudo locate sarg.conf
/etc/httpd/conf.d/sarg.conf
/etc/sarg/sarg.conf
/home/perfectpol7/sarg-2.2.5/sarg.conf
[root@goodheavens ~]# sudo updatedb
[root@goodheavenst ~]#

but sudo locate
yep, updatedb doesnt return anything, it only updates the locate database, so that when you query it, the paths return are the latest (with all the latest installs)

Now you can see that sarg is installed and its config file is /etc/sarg/sarg.conf
go ahead and edit that file (giving it the paths to your squid i.e. squid logs etc)
 
Old 02-24-2009, 07:39 AM   #9
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Original Poster
Rep: Reputation: 15
Squid log path is /var/log/squid/access.log and the return error is:The Sarg program /var/log/squid/access.log was not found on your system. Maybe it is not installed, or the module configuration is incorrect.What really should i edit or the configuration module?
 
Old 02-25-2009, 05:33 AM   #10
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
Im saying you should edit the file /etc/sarg/sarg.conf

here is a snippet:

Quote:
language English
access_log /var/log/squid/access.log
graphs yes
title "Internet User Access Reports"
output_dir /var/www/htdocs/squid-reports (or any other dir you can access with your webserver)
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
after that, you go to your webmin and when you choose "Squid Report Generator" in the servers, on the right panel, you see the error you are mentioning, something like:
(The Sarg configuration file /usr/local/sarg/sarg.conf was not found on your system. Maybe Sarg is not installed, or the module configuration is incorrect.)

In that case CLICK on "module configuration" (its a hyperlink on that error line in the right pane)
Edit the variables as below:

Full path to sarg executable /usr/bin/sarg
(1st check where your sarg executable is, try locate bin/sarg and what is returned will be your full path to sarge executable)
Full path to SARG configuration file /etc/sarg/sarg.conf
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SARG Report generator script for fedora tsaravan Linux - Newbie 1 02-27-2008 03:22 AM
how to install and configure SQUID server jurial Linux - Newbie 1 04-03-2007 07:09 AM
out of inodes in a 'Squid analysis report generator' mariogarcia Debian 3 02-23-2007 03:50 AM
Lire (log analysis, log report) no report in Mandriva 2005 LE (desktop usage) Emmanuel_uk Mandriva 0 01-16-2006 02:11 AM
how to use squid analysis report generator heero82 Linux - Software 1 06-22-2003 10:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration