Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: SMESA 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:
/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
-
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
-
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
-
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
-
Thanks alot, trying it now!