Forums

Marek
Marek
Offline
Resolved
0 votes
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.
Friday, March 21 2014, 08:45 AM
Share this post:
Responses (5)
  • Accepted Answer

    Tuesday, May 31 2016, 08:20 AM - #Permalink
    Resolved
    0 votes
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, March 19 2016, 02:45 AM - #Permalink
    Resolved
    0 votes
    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

    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 14 2014, 12:13 PM - #Permalink
    Resolved
    0 votes
    Huge thanks Tony Ellis for your explanation how-to do it step by step.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, June 01 2014, 05:34 AM - #Permalink
    Resolved
    0 votes
    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 :-(
    The reply is currently minimized Show
  • Accepted Answer

    Friday, March 21 2014, 09:09 AM - #Permalink
    Resolved
    0 votes
    You could try searching "sarg el6 rpm" and try a suitable rhel or, possibly, CentOS rpm.
    The reply is currently minimized Show
Your Reply