Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: tropicalview on September 28, 2007, 03:10:08 PM

Title: manual run of sarg
Post by: tropicalview 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,
Title: Re: manual run of sarg
Post by: mmccarn 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
Title: Re: manual run of sarg
Post by: tropicalview on September 28, 2007, 03:48:40 PM
Great that worked...

thanks mmccarn
Title: Re: manual run of sarg
Post by: swissis on January 10, 2008, 09:40:20 AM
Hi, and how would i run the one-shot report by hand?
Title: Re: manual run of sarg
Post by: cactus 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 (http://forums.contribs.org/index.php?topic=38689.msg175553#msg175553).
Title: Re: manual run of sarg
Post by: swissis 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?
Title: Re: manual run of sarg
Post by: tropicalview 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???

Title: Re: manual run of sarg
Post by: Franco on January 10, 2008, 08:38:05 PM
Just type sarg at the command line and look at the one-shot link