In an attempt to resolve why "Webalizer is forgetful", I have come up with some informational points and a possible resolution.
* Webalizer becomes forgetful by losing all data in the current month, prior to the day of forgetfulness. * The day it forgets matches the day-of-week the Apache logfiles are rotated. * The conf file [ /etc/cron.daily/webalizer.dpkg-dist ] seems to instruct cron to run Webalizer against archived logs, updating the statistics. However, this was modified in August, when the last good Webalizer graphs were created. * From reviewing [ webalizer.dpkg-dist ], perhaps the problem is the way it is called. It appears to require command line parameters, $1 and $2, which I would not think exist in the way cron starts the program. I am not familar with the [ run-parts ] command used to kick off this process. Also preventing troubleshooting, I cannot find the original version of this modified file to see what changed. Lastly, any errors being produced by this task are not visible. The cron process is probably emailing them to root user. * Alternative to fixing the above, a quick fix would be to add [ webalizer -Q access.log.1 ] to the "postrotate" section of the file [ /etc/logrotate.d/apache2 ]. Reference [ ftp://ftp.mrunix.net/pub/webalizer/README section "Log files and The Webalizer"]. * If I can be of further assistance or provide additional research - let me know. Thanks for your efforts and happy new year!!!!
_______________________________________________ HCoop-SysAdmin mailing list [email protected] http://hcoop.net/cgi-bin/mailman/listinfo/hcoop-sysadmin
