Koozali.org: home of the SME Server

cron message about awstats - how to fix...

Offline rishiv

  • 4
  • +0/-0
cron message about awstats - how to fix...
« on: January 28, 2009, 03:06:08 AM »
Hi There,

I'm running awstats (awstats-6.8-1.el4.rf) on a 7.x server. I often get this error message emailed to admin by cron:

Code: [Select]
From: Cron Daemon
Subject: Cron <root@hal> /bin/nice /sbin/e-smith/awstats-pp -s -n
Fatal error: Apache logfile /var/log/httpd/access_log not found
Is Apache running?

Yes Apache is running and the logfile is there as reported.
Code: [Select]
# ls -la /var/log/httpd/access_log
lrwxrwxrwx  1 root root 40 Jan 27 15:07 /var/log/httpd/access_log -> /var/log/httpd/access_log.20090127150704

I'm not sure if this is related to the problem, but the server-manager panel for awstats lists three domains:
mydomain.com.au
myolddomain.com.au
mydomain.com.au
when I only need one. (Yes, my current domain is listed twice).

Any help or ideas on where to look to solve this?

Thanks,

Rishi.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: cron message about awstats - how to fix...
« Reply #1 on: January 29, 2009, 08:52:44 PM »
Is there a certain time or event which might cause these? I know I have seen occurrences of them on reboot/post-upgrade times.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline rishiv

  • 4
  • +0/-0
Re: cron message about awstats - how to fix...
« Reply #2 on: January 29, 2009, 11:42:23 PM »
Hi Cactus,

Thanks for your idea. I don't think it is related to reboot, but it may be related to post-upgrade times or something else. It doesn't happen all the time, but when it does start happening it goes on for a couple of hours, and the emails come through with the 15min cron jobs.

For example, on 21-Jan-09 it happened at:
1:30 PM
1:45 PM
2:00 PM
2:15 PM
2:30 PM
2:45 PM

I've deleted most of the admin emails that have this warning, so I can't work out the timing pattern yet. I'll wait until it starts happening again and see if the timing gives some clues.

Cheers,

Rishi.