Koozali.org: home of the SME Server

AWstat failure after power break

Michael Roed

AWstat failure after power break
« 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

michael

Re: AWstat failure after power break
« Reply #1 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

Michael Roed

Re: AWstat failure after power break
« Reply #2 on: January 23, 2003, 05:21:04 PM »
Nope!

The mail is still comming everytime AWstats updates.

Any other ideas???