I wrote a perl script to email myself the current webstats HTML webpage.
We use awstats to trend the webserver logs on www
It’s an excellent package with one glaring fault: No Email Notification!
To remedy this, I’ve written a perl script to do this. It simply loads the page source using curl, and creates an HTML email.
The script is named ‘webstats_emailer.pl’ and is installed on sysadmin server.
‘webstats_emailer.pl’ crontab entries on sysadmin server: