Re: [squid-users] where can I find help for sarg?

From: Siew Wing Loon <wlsiew@dont-contact.us>
Date: Wed, 2 Feb 2005 09:14:43 -0800 (PST)

You can try this...

#!/bin/bash

#Get yesterday date
YESTERDAY=$(date --date "1 day ago" +%d/%m/%Y)

#Get 1 month ago date
MONTHAGO=$(date --date "1 month ago" +%d/%m/%Y)

/usr/sbin/sarg -o /var/www/html/squid/monthly -d
$MONTHAGO-$YESTERDAY
# > /dev/null 2>&1

/usr/sbin/squid -k rotate

exit 0

I get it from http://sarg.mcl.ru/sarg.monthly

--- Yong Bong Fong <bfyong@shinyang.com.my> wrote:

> Dear all,
>
> I am currently using sarg to check on usage.
> Wondering where can I
> find help for sarg specific configuration?
>
> I just need to configure the sarg report to provide
> monthly report for
> all user's usage details etc.
> Currently my report provides report in daily format,
> but my boss wants
> it in monthly format. My colleague however has his
> as one report for 4
> days.
>
> But we just couldn't find the configuration to
> change that report from
> to display in other formats.
>
> Hope anyone can direct me to the appropriate help
> site.
> Thanks a lot,
>
> Regards
> Yong
>

                
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
 
Received on Wed Feb 02 2005 - 10:15:03 MST

This archive was generated by hypermail pre-2.1.9 : Tue Mar 01 2005 - 12:00:01 MST