[ -f /etc/sysconfig/calamaris ] && . /etc/sysconfig/calamaris
# Parameter passed to Calamaris.
-ARG_HTML="$CALAMARIS_ARGS -F html -l $HTML_LOGO"
+# XXX: passing -l HTML_LOGO breaks here due
+ARG_HTML="$CALAMARIS_ARGS -F html"
ARG_MAIL="$CALAMARIS_ARGS -a -m Calamaris report"
MAIL_SUBJ="Calamaris Report"
# Logs to parse in order to create daily stats. Because of assumption that
# this script is run *after* logrotate, log file is already gzipped. There
# is no default. You have to put something here.
-DAILY_FILES="/var/log/archive/squid/access.log.1.gz"
+# DAILY_FILES="/var/log/archive/squid/access.log.1.gz"
+DAILY_FILES=$(ls -1t /var/log/archive/squid/access.log-*.gz | head -n 1)
# Where to save daily stats. Ignored if DAILY_ACTION doesn't contain "save".
# There is no default. You have to put something here.
# Logs to parse in order to create weekly stats. Because of assumption that
# this script is run *after* logrotate, all log files are already gzipped.
# There is no default. You have to put something here.
-WEEKLY_FILES=/var/log/archive/squid/access.log.{7,6,5,4,3,2,1}*
+# WEEKLY_FILES=/var/log/archive/squid/access.log.{7,6,5,4,3,2,1}*
+WEEKLY_FILES=/var/log/archive/squid/access.log-*.gz
# Where to save weekly stats. Ignored if WEEKLY_ACTION doesn't contain "save".
# There is no default. You have to put something here.