linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* problem with cron job of Webalizer
@ 2003-06-10 12:05 Miguel González Castaños
  2003-06-13 11:22 ` Leonid Mamchenkov
  0 siblings, 1 reply; 3+ messages in thread
From: Miguel González Castaños @ 2003-06-10 12:05 UTC (permalink / raw)
  To: linux-admin

Dear all,

 I have a RH linux box with Apache 1.3.27 with 4 virtual hosts. I have
installed Webalizer and have different access log files in Apache.

 I have a script for executing webalizer for the different virtual
hosts. That script works in the command prompt.

 I have been testing if it was dued to the environment variables, that
werent loaded, but I put on the script a ". /root/.bash_profile "
instruction to avoid that.

 I got a mail when the job is supposed to be done by cron.

 In the access log files of apache, I use rotate logs. The rotate logs
of apache is done daily and before the webalizer cron job is donde.

 What I have seen so far, its that sometimes it works and sometimes it
doesnt. Sometimes the system doesnt log all the accesses in all virtual
hosts (some do work and others dont) and normally if the webalizer
scripts updates fine the stats html files then apache stops logging the
access files and the other way round...

 Anyone could give any ideas of how I could trace the behaviour of the
system?

 Many thanks

 Miguel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problem with cron job of Webalizer
  2003-06-10 12:05 problem with cron job of Webalizer Miguel González Castaños
@ 2003-06-13 11:22 ` Leonid Mamchenkov
  2003-06-18  8:13   ` Miguel González Castaños
  0 siblings, 1 reply; 3+ messages in thread
From: Leonid Mamchenkov @ 2003-06-13 11:22 UTC (permalink / raw)
  To: linux-admin

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problem with cron job of Webalizer
  2003-06-13 11:22 ` Leonid Mamchenkov
@ 2003-06-18  8:13   ` Miguel González Castaños
  0 siblings, 0 replies; 3+ messages in thread
From: Miguel González Castaños @ 2003-06-18  8:13 UTC (permalink / raw)
  To: Leonid Mamchenkov; +Cc: linux-admin

Hello,

 I am trying to figure out what is going on, and I deactivate webalizer and check
how log rotation was doing and seems that all my logs of my virtual domains are
rotated except "domain4"...Here goes my apache logrotate:

/usr/local/apache/logs/domain1/access.log
/usr/local/apache/logs/domain2/access.log
/usr/local/apache/logs/domain3/access.log
/usr/local/apache/logs/domain4/access.log {
    daily
    rotate 400
    mail mymail@myisp.com
    compress

 prerotate
  /etc/init.d/apache stop
 endscript
 postrotate
  /etc/init.d/apache start
 endscript
}

The domain4 log is the biggest one, dont know if it has something to do with the
problem...

I tried to force logrotate to execute the apache log rotation and dont see
anything wrong...

Many thanks

Miguel




>
> 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.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-18  8:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-10 12:05 problem with cron job of Webalizer Miguel González Castaños
2003-06-13 11:22 ` Leonid Mamchenkov
2003-06-18  8:13   ` Miguel González Castaños

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).