Koozali.org: home of the SME Server

manual run of sarg

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
manual run of sarg
« on: September 28, 2007, 03:10:08 PM »
Hi,


last night the electricity failed and the sarg data collection did not run.
do i have to run this manualy to get the data or will it do that automaticly the next night for both the nights??


if not how can i run it manually??

Kind regards,
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: manual run of sarg
« Reply #1 on: September 28, 2007, 03:29:01 PM »
Quote from: /etc/cron.daily/sarg
Code: [Select]
/usr/bin/sarg -l /var/log/squid/access.log.daily -o /var/www/sarg/daily -d "$(date --date "1 day ago" +%d/%m/%Y)" > /dev/null 2>&1
Each sarg run specifically looks at the day prior to the day that sarg is running (--date "1 day ago").

So, if you want graphs for yesterday, you should run the sarg daily cron job manually before midnight tonight using: /etc/cron.daily/sarg

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Re: manual run of sarg
« Reply #2 on: September 28, 2007, 03:48:40 PM »
Great that worked...

thanks mmccarn
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline swissis

  • ***
  • 61
  • +0/-0
Re: manual run of sarg
« Reply #3 on: January 10, 2008, 09:40:20 AM »
Hi, and how would i run the one-shot report by hand?
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: manual run of sarg
« Reply #4 on: January 10, 2008, 09:45:22 AM »
Hi, and how would i run the one-shot report by hand?
It is stated two messages up.
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 swissis

  • ***
  • 61
  • +0/-0
Re: manual run of sarg
« Reply #5 on: January 10, 2008, 09:47:20 AM »
Hi Cactus,

It's about the daily report  not about the one-shot or am i wrong here?
...

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Re: manual run of sarg
« Reply #6 on: January 10, 2008, 03:52:03 PM »
This is to do the data collection for the past day.
it add's the data from your log file of the proxy into the database of sarc

Out of that database sarc is able to generate reports on daily, weekly, monthly, yearly bases.

For some reason also for me the one-shot does not work.
I was thinking that he needs more info of more time.
but now a year change passed i do not know how mutch more data it needs.

does anybody know what one-shot report does? and what data it needs???

The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: manual run of sarg
« Reply #7 on: January 10, 2008, 08:38:05 PM »
Just type sarg at the command line and look at the one-shot link