Koozali.org: home of the SME Server

Internet Usage Report

Offline Bud

  • *
  • 487
  • +0/-0
Internet Usage Report
« on: October 18, 2010, 09:39:11 AM »
SME Team

Could you indicate what contrib will be the best to use that will give me a usage report of what computers have downloaded, where from and the amount of downloads from those computers.

I have looked at "NTOP" and "CACTI" but I'm not sure which one to use. All I need to show is a Report of what is happening or has happend on the Network ie: What PC's are Downloading what and the Total Size of Downloads.

Any help greatly appreciated.

Offline Frank VB

  • ****
  • 127
  • +0/-0
Re: Internet Usage Report
« Reply #1 on: October 18, 2010, 10:08:10 AM »
I'd suggest you give SARG a try: http://wiki.contribs.org/Sarg. With SARG you can generate all kind of reports on the web traffic that passes through the Squid proxyserver.

Offline Bud

  • *
  • 487
  • +0/-0
Re: Internet Usage Report
« Reply #2 on: October 18, 2010, 02:29:10 PM »
Frank VB

Thanks for the Tip

I have installed the " sarg " contrib and have issued the commands as mentioned

I also have the " dungog dansguardian " contrib installed in order for me to control user web browsing via sme proxy.

My problem is that I can see no data when i choose " Administration > SARG reports > ONE-SHOT " or Daily Reports from the " Squid Analysis Report Generator "

All I get is:

Your seeing this because either no data was found
or you have just updated the sarg rpm.

You can force an update with /etc/cron.daily/sarg

Note: this page may be cached, try refreshing this frame
right click, this frame, refresh

Any Ideas what I'm doing wrong?

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Internet Usage Report
« Reply #3 on: October 18, 2010, 03:04:40 PM »
Bud

Did you follow this to set sarg to use dansguardian logs
http://wiki.contribs.org/Sarg#Dansguardian

If you did, have you checked the settings you made for correctness.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Bud

  • *
  • 487
  • +0/-0
Re: Internet Usage Report
« Reply #4 on: October 18, 2010, 05:52:57 PM »
mary

yes i followed the exact instructions as per http://wiki.contribs.org/Sarg#Dansguardian

still no info

any ideas?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Internet Usage Report
« Reply #5 on: October 18, 2010, 06:53:56 PM »
You can force an update with /etc/cron.daily/sarg
Did you already run above command on your server?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Bud

  • *
  • 487
  • +0/-0
Re: Internet Usage Report
« Reply #6 on: October 20, 2010, 06:13:18 AM »
cactus

thanks for the reply

Quote
You can force an update with /etc/cron.daily/sarg

i have run this command and then after waiting for a day when i look at smeserver > sarg reports > one-shot or " daily " this is what i get

Squid Analysis Report Generator
 
Data not found
Your seeing this because either no data was found
or you have just updated the sarg rpm.
You can force an update with /usr/bin/sarg

Note: this page may be cached, try refreshing this frame
right click, this frame, refresh


i'm lost

please HELP as i need to give my manager the outout of what the users on the lan have been doing  :smile:
 

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Internet Usage Report
« Reply #7 on: October 20, 2010, 11:41:49 AM »
Bud

Do what the message says !
At the SME command prompt
/usr/bin/sarg

Then check server manager again.
The same concept will apply for the daily, weekly & monthly reports, but the command will be different for each one, as advised in the error message.
« Last Edit: October 20, 2010, 02:21:08 PM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Internet Usage Report
« Reply #8 on: October 20, 2010, 04:24:33 PM »
...

Offline Bud

  • *
  • 487
  • +0/-0
Re: Internet Usage Report
« Reply #9 on: October 22, 2010, 06:33:31 AM »
mary and RayMitchell

thanks for your help

i have done as recommended and after two days all i can get info from is by using the " daily " - daily reports option
so the " daily " reports option is working  :smile:

any reason why " ONE-SHOT " does not give me any data?  :shock:

all i get from the " ONE-SHOT " option is

Squid Analysis Report Generator
 
Data not found

Your seeing this because either no data was found
or you have just updated the sarg rpm.
You can force an update with /usr/bin/sarg

Note: this page may be cached, try refreshing this frame
right click, this frame, refresh


any ideas?  :smile:

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Internet Usage Report
« Reply #10 on: October 22, 2010, 07:31:29 AM »
Bud

Issue all these commands
/usr/bin/sarg
/etc/cron.daily/sarg
/etc/cron.weekly/sarg
/etc/cron.monthly/sarg
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Internet Usage Report
« Reply #11 on: October 22, 2010, 08:34:47 AM »
If it still does not work after all of this, check:
Code: [Select]
[root@gateway0 ~]# config show sarg logfile
It should return:
Code: [Select]
sarg=service
    language=English
    logfile=dansguardian <-----Here
    values=abbreviation

If logfile=squid, you need to change to Dansguardian log files with this command:
Code: [Select]
/usr/bin/sarglog dansguardian
Also ensure that Dans is enabled and creating logs.  You can check this in the Dungog Dansguardian panel.
Go into the Global settings  / Options and click on the link "dansguardian" in the text just under Options.
It will bring you into the view logs files, if it is empty, danguardian is not creating log files.

It looks like this:
Quote
Review dansguardian or squid access in the View log files panel. Or install and use smeserver-sarg
Log Level    = [all text based}
Format of Logfile =  [Dansguardian format]   <<<----Check this also
Sorry to butt in.



- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline Bud

  • *
  • 487
  • +0/-0
Re: Internet Usage Report - SOLVED
« Reply #12 on: October 23, 2010, 11:02:30 AM »
chris burnat, mary and sme team

thanks for your help

problem solved