/etc/logrotate.d/squid3 fails to execute sarg-reports
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
logrotate (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
squid3 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In Edubuntu 14.04 LTS, by default, the /etc/logrotate.
/var/log/
daily
compress
rotate 2
missingok
nocreate
prerotate
endscript
postrotate
endscript
}
As consequence, sarg-reports fails to do its job and anacron reports the following message:
/etc/cron.
SARG - Daily / Weekly / Monthly - Squid proxy usage reports creation tool
Written by Ugo Viti <email address hidden>
Version: 20050202
Usage: /usr/sbin/
Allowed options:
manual, Create Manual report
today, Create Today report
daily, Create Daily report
weekly, Create Weekly report
monthly, Create Monthly report
A possible solution would be to add the rotation frequency required by sarg-reports command as argument to it.
/var/log/
daily
compress
rotate 2
missingok
nocreate
prerotate
endscript
postrotate
endscript
}
In a Squid3+Sarg configuration, it may be convenient to change the log rotation frequency from daily to monthly, so sarg has more information to work with in a single /var/log/
Status changed to 'Confirmed' because the bug affects multiple users.