LinuxQuestions.org
Visit Jeremy's Blog.
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 06-04-2010, 08:19 AM   #1
isaaclw
Member
 
Registered: Dec 2009
Posts: 36

Rep: Reputation: 15
squid-log analyzer OR a good bandwidth analyzer


I'm looking for a program that I can use to keep track of how much bandwidth goes to the various computers in my small network.
All of the bandwidth goes through my squid server, so the easiest would be to just have a program that can accurately analyze the squid logs and tell me how much bandwidth is going to the different computers.

I've tried both "bandwidthd" and "calamaris" I can't figure out how to get either one to actually do anything in Ubuntu.

Any hints? any new programs I can try that might work?
 
Old 06-04-2010, 10:33 AM   #2
sys
LQ Newbie
 
Registered: Jan 2010
Distribution: Ubuntu 9.10
Posts: 13

Rep: Reputation: 1
I would try SARG.
http://sarg.sourceforge.net/sarg.php
Installation is pretty easy: apt-get install sarg
Config file: /etc/squid/sarg.conf (as far as I remember in Ubuntu).
It generates html reports so you need apache for that.
 
1 members found this post helpful.
Old 06-05-2010, 02:41 AM   #3
isaaclw
Member
 
Registered: Dec 2009
Posts: 36

Original Poster
Rep: Reputation: 15
sys, do you know if names like "computer1.local" can be used in the "/etc/squid/sarg.hosts" file?
Or do I have to install some kind of dns software?
I'm currently just using the default Ubuntu software (ie: Network Manager).
 
Old 06-08-2010, 08:25 AM   #4
isaaclw
Member
 
Registered: Dec 2009
Posts: 36

Original Poster
Rep: Reputation: 15
Sarg isn't running automatically.

If I run it manually (/etc/cron.daily/sarg), it sits (without doing anything obvious) for at least an hour.

So, going into the folder without waiting for it to complete: http://localhost/squid-reports/Daily/, it gives me a list of folders.
From here I have no idea how I can tell what bandwidth is used up for each IP address...

Any clues?

Last edited by isaaclw; 06-08-2010 at 08:42 AM.
 
Old 06-09-2010, 01:34 PM   #5
pppawar
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by isaaclw View Post
I'm looking for a program that I can use to keep track of how much bandwidth goes to the various computers in my small network.
All of the bandwidth goes through my squid server, so the easiest would be to just have a program that can accurately analyze the squid logs and tell me how much bandwidth is going to the different computers.

I've tried both "bandwidthd" and "calamaris" I can't figure out how to get either one to actually do anything in Ubuntu.

Any hints? any new programs I can try that might work?
Hi!
I used "lightsquid" rpm. Download and unpack the package in /var/www/html directory using:
#tar -xvzf lightsquid-<ver>.tgz and follow the procedure as mentioned in "lightsquid-<ver>/doc/install.txt" file.
Hope this helps...
 
Old 06-16-2010, 04:17 AM   #6
isaaclw
Member
 
Registered: Dec 2009
Posts: 36

Original Poster
Rep: Reputation: 15
lightsquid will definitly work (if I can figure out permissions):
Code:
Forbidden
You don't have permission to access /lightsquid/index.cgi on this server.
Apache/2.2.11 (Ubuntu) Server at localhost Port 80
index.cgi is set to executable

lightsquid/group.cfg:
Code:
admin 01 SysAdmin
lightsquid/realname.cfg
Code:
127.0.0.1 admin
/etc/apache2/httpd.conf
Code:
root@kimende-s:/etc/apache2# cat httpd.conf 
<Directory />
    Order Deny,Allow
    Deny from all
</Directory>
<Directory /var/www>
    Order Allow,Deny
    Allow from all
</Directory>

<Directory "/var/www/lightsquid">
    AddHandler cgi-script .cgi
    AllowOverride All
    Allow from all
</Directory>
The "lightsquid/check-setup.pl" returned all good, so I'm not sure what else to try...
 
  


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
Squid Log Analyzer tools Arpita Linux - Software 1 04-19-2008 03:43 AM
Squid Log Analyzer for FC4 tsaravan Linux - Networking 2 03-04-2006 08:44 AM
log analyzer MrSandman Linux - Software 2 09-26-2004 01:38 AM
squid access.log analyzer (not calamaris!) saavik Linux - Networking 2 09-09-2002 05:56 AM
Log analyzer? subnet_rx Linux - Security 2 11-06-2001 06:02 AM

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

All times are GMT -5. The time now is 05:31 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