Hi,
is it possible to install SARG reporting on Clear OS 6.5?
I've read about installing it on 6,2 but i'm not sure which solution should I try.
is it possible to install SARG reporting on Clear OS 6.5?
I've read about installing it on 6,2 but i'm not sure which solution should I try.
Share this post:
Responses (5)
-
Accepted Answer
Have made a newer version than that available on rpmforge :-
see https://sfj48-fkj200.heiksthsd.cf/clearfoundation/social/community/install-sarg-on-clearos-version-6-x-or-version-7-x-for-great-proxy-reports -
Accepted Answer
Have written a better script for the daily reports than the default one supplied, especially if you rotate your squid logs daily, which I do :-
Replace /etc/cron.daily/sarg with the following :-
#!/bin/bash
LOG_FILES=
for FILE in /var/log/squid/access.log*; do
LOG_FILES="$LOG_FILES -l $FILE"
done
# Get yesterday's date
YESTERDAY=$(date --date "1 day ago" +%d/%m/%Y)
# Get today's date
TODAY=$(date --date "0 day ago" +%d/%m/%Y)
exec /usr/bin/sarg \
$LOG_FILES \
-o /var/www/sarg/daily \
-d $YESTERDAY-$TODAY &>/dev/null
exit 0
-
Accepted Answer
-
Accepted Answer
SARG is now available from the rpmforge testing respository for version 6.x systems. This provides a relatively easy means to install SARG on a ClearOS 6.x system. Had it running here for a few days now on a 32-bit ClearOS version 6.6 server without any problems detected.
The instructions can be found here :- http://danda.poweredbyclear.com/master-frame-sargv6.html
Security is controlled by adding specific quad-decimal ips or ip names to a .conf file for those workstations that you wish to have access. This is fine for static addresses, but may or may not work for dynamic addresses depending on how you setup your dhcpd (dnsmasq) configuration.
Be sure to follow the step that ensures the rpmforge repositories are disabled by default, otherwise there might be a heavy price to pay later :-( -
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »