[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#728362: awffull: /etc/cron.daily/awffull needs update



Package: awffull
Version: 3.10.2-4
Severity: important
Tags: patch

I get the following error message:

/etc/cron.daily/awffull:
Use of "Really Quiet (-Q)" has been deprecated.
Initially processed default config file: /etc/awffull/awffull.conf
awffull 3.10.2 (Linux 3.11-1-amd64) English
Error: Can't open log file 0
ERROR: Running awffull, exit status: 1

obviously /etc/cron.daily/awffull is not updated to the current command line
parameters



-- System Information:
Debian Release: jessie/sid
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'oldstable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-1-amd64 (SMP w/6 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages awffull depends on:
ii  debconf [debconf-2.0]  1.5.51
ii  libc6                  2.17-93
ii  libgd3                 2.1.0-3
ii  libgeoip1              1.5.1-2
ii  libpcre3               1:8.31-2
ii  zlib1g                 1:1.2.8.dfsg-1

awffull recommends no packages.

Versions of packages awffull suggests:
ii  apache2-bin [httpd]  2.4.6-3
pn  dnshistory           <none>
ii  ttf-dejavu           2.33+svn2514-3

-- Configuration Files:
/etc/cron.daily/awffull changed:
AWFFULL=/usr/bin/awffull
AWFFULL_CONFDIR=/etc/awffull
[ -x ${AWFFULL} ] || exit 0;
[ -d ${AWFFULL_CONFDIR} ] || exit 0;
for i in ${AWFFULL_CONFDIR}/*.conf; do
  # run agains a rotated or normal logfile
  LOGFILE=`awk '$1 ~ /^LogFile$/ {print $2}' $i`;
  # empty ?
  [ -s "${LOGFILE}" ] || { echo "ERROR: LogFile not found: ${LOGFILE}"; continue; };
  # readable ?
  [ -r "${LOGFILE}" ] || { echo "ERROR: LogFile is not readable: ${LOGFILE}"; continue; };
  
  # there was a output ?
  OUTDIR=`awk '$1 ~ /^OutputDir$/ {print $2}' $i`;
  #  exists something ?
  [ "${OUTDIR}" != "" ] || { echo "ERROR: OutputDir not defined: ${OUTDIR}"; continue; };
  # its a directory ?
  [ -d ${OUTDIR} ] || { echo "ERROR: OutputDir is not a directory: ${OUTDIR}"; continue; };
  # its writable ?
  [ -w ${OUTDIR} ] || { echo "ERROR: OutputDir not writable: ${OUTDIR}"; continue; };
  # Run Really quietly, exit with status code if !0
  ${AWFFULL} ${i} || { echo "ERROR: Running awffull, exit status: $?"; continue; };
  RET=$?;
  # Non rotated log file
  NLOGFILE=`awk '$1 ~ /^LogFile$/ {gsub(/\.[0-9]+(\.gz)?/,""); print $2}' $i`;
  # check current log, if last log is a rotated logfile
  if [ "${LOGFILE}" != "${NLOGFILE}" ]; then
    # empty ?
    [ -s "${NLOGFILE}" ] || { echo "INFO: Non-rotated LogFile empty or missing: ${NLOGFILE}"; continue; };
    # readable ?
    [ -r "${NLOGFILE}" ] || { echo "WARNING: Non-rotated LogFile is not readable: ${NLOGFILE}"; continue; };
    ${AWFFULL} -v 0 ${i} -Q ${NLOGFILE};
    RET=$?;
  fi;
done;
exit $RET;


-- debconf information:
  awffull/logfile: /var/log/apache2/access.log.1
  awffull/directory: /var/www/awffull


Reply to: