From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leonid Mamchenkov Subject: Re: problem with cron job of Webalizer Date: Fri, 13 Jun 2003 11:22:22 +0000 (UTC) Sender: linux-admin-owner@vger.kernel.org Message-ID: <20030613112222.GA1257@francoudi.com> References: <3EE5C981.A04C083F@tid.es> Reply-To: Leonid Mamchenkov Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <3EE5C981.A04C083F@tid.es> List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-admin@vger.kernel.org Dear Miguel Gonz?lez Casta?os, Once you wrote about "problem with cron job of Webalizer": MGlCo> I have a script for executing webalizer for the different virtual MGlCo> hosts. That script works in the command prompt. MGlCo> MGlCo> I have been testing if it was dued to the environment variables, that MGlCo> werent loaded, but I put on the script a ". /root/.bash_profile " MGlCo> instruction to avoid that. MGlCo> MGlCo> I got a mail when the job is supposed to be done by cron. MGlCo> MGlCo> In the access log files of apache, I use rotate logs. The rotate logs MGlCo> of apache is done daily and before the webalizer cron job is donde. MGlCo> MGlCo> What I have seen so far, its that sometimes it works and sometimes it MGlCo> doesnt. Sometimes the system doesnt log all the accesses in all virtual MGlCo> hosts (some do work and others dont) and normally if the webalizer MGlCo> scripts updates fine the stats html files then apache stops logging the MGlCo> access files and the other way round... MGlCo> MGlCo> Anyone could give any ideas of how I could trace the behaviour of the MGlCo> system? Did you try to run webalizer _before_ you rotate the logs? It's also a good idea to measure how much time does it take for your webalizer jobs to finish. This will help you to make sure webalizer has enough time before the logs are taken from it. :) -- Best regards, Leonid Mamtchenkov, RHCE System Administrator Francoudi & Stephanou Ltd.