pat
11th June 2009, 12:06
I have an ISPConfig 3.0.1.3 on Debian Lenny (perfect setup) and just realized that webalizer stats only showed 24 hours worth of data at any given time.
By looking in /usr/local/ispconfig/server/cron_daily.php I came to the conclusion that only the last archived log file is being parsed and the default setting in /etc/wealizer/webalizer.conf for Lenny is to not run in incremental mode (not saving state between runs).
I began by turning on incremental mode in /etc/webalizer/webalizer.conf
I then cleared the stats dir (apart from .htaccess), merged all logfiles into one and ran webalizer manually with the same flags as found in /usr/local/ispconfig/server/cron_daily.php with the exception of the path of the logfile, for which I used my manually merged log file.
I suppose adding the -p flag to the webalizer invocation in cron_daily.php would have been the better solution, but I would rather have my ISPConfig as vanilla as possible.
Cheers,
Pat
By looking in /usr/local/ispconfig/server/cron_daily.php I came to the conclusion that only the last archived log file is being parsed and the default setting in /etc/wealizer/webalizer.conf for Lenny is to not run in incremental mode (not saving state between runs).
I began by turning on incremental mode in /etc/webalizer/webalizer.conf
I then cleared the stats dir (apart from .htaccess), merged all logfiles into one and ran webalizer manually with the same flags as found in /usr/local/ispconfig/server/cron_daily.php with the exception of the path of the logfile, for which I used my manually merged log file.
I suppose adding the -p flag to the webalizer invocation in cron_daily.php would have been the better solution, but I would rather have my ISPConfig as vanilla as possible.
Cheers,
Pat