Koozali.org: home of the SME Server

Sarg stopped reporting

SMESA

Sarg stopped reporting
« on: October 31, 2006, 10:31:51 AM »
Hi all,

I'm running SME 7 with the smeserver-sarg-1.4.1-3.i386 contrib installed. The reports for daily and monthly has been running fine for 34 days now, but the daily reports stopped a few days ago. When trying to run /etc/cron.daily/sarg I get the following error:


Quote

/etc/cron.daily/sarg: line 7:  4280 Segmentation fault      /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


Any ideas on how to get my daily reports back?

Thanks alot!
-A

Offline kmccarn

  • ****
  • 112
  • +0/-0
Sarg stopped reporting
« Reply #1 on: October 31, 2006, 11:03:22 AM »
You could try updating.

I just checked the server I installed yesterday - and the smeserver-sarg version is:  smeserver-sarg-2.2.1-1

I use the yum install instructions from dungog.net

Just a thought.

 :D
Kevin in WV 8-)......

SMESA

Sarg stopped reporting
« Reply #2 on: November 02, 2006, 10:49:57 AM »
Ok, so I've upgrade successfuly but there's no sarg in my  /etc/cron.daily/

Would you mind posting the contents of your /etc/cron.daily/sarg?

Thanks

Offline kmccarn

  • ****
  • 112
  • +0/-0
Sarg stopped reporting
« Reply #3 on: November 02, 2006, 01:07:05 PM »
Contents of /etc/cron.daily/sarg

I use Dansguardian - but I think the only difference is /var/log/squid/...





#!/bin/bash

LOG_FILES=
if [ -s /var/log/dansguardian/access.log.1.gz ]; then
   LOG_FILES="$LOG_FILES -l /var/log/dansguardian/access.log.1.gz"
fi
if [ -s /var/log/dansguardian/access.log ]; then
   LOG_FILES="$LOG_FILES -l /var/log/dansguardian/access.log"
fi

YESTERDAY="$(date --date '1 days ago' +%d/%m/%Y)"

/usr/bin/sarg $LOG_FILES -o /var/www/sarg/daily -d $YESTERDAY > /dev/null 2>&1

exit 0

 :D
Kevin in WV 8-)......

SMESA

Sarg stopped reporting
« Reply #4 on: November 03, 2006, 07:32:11 AM »
Thanks alot, trying it now!