Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Michael Roed on January 22, 2003, 06:23:32 PM

Title: AWstat failure after power break
Post by: Michael Roed on January 22, 2003, 06:23:32 PM
After the power was disconnected by mistake I get this email every 5 min.:

Subject: Cron /bin/nice /sbin/e-smith/awstats-pp -s -n
Body: Could not open /var/log/httpd/awstatspbar.html"

Any ideas how I can get rid of it?? I have tried reboot the whole server!!

/michael
Title: Re: AWstat failure after power break
Post by: michael on January 22, 2003, 10:39:45 PM
Try this:
stop awstats from the server-manager panel

delete the file /var/log/httpd/awstats_pos (which contains a pointer to the last scanned line of the apache log file)

Then restart awstats. Awstats then will re-scan the apache log, and generate
a new awstats_pos.
To avoid double recorded hits in the statistics, you may delete the apache
log file and restart apache before restarting awstats. But then you will
miss a few hits.

Michael
Title: Re: AWstat failure after power break
Post by: Michael Roed on January 23, 2003, 05:21:04 PM
Nope!

The mail is still comming everytime AWstats updates.

Any other ideas???