Advanced Search  :  Site Statistics  :  Directory  :  Web Resources  :  Forum  
    Plugins for Geeklog Geeklog Plugins    
 Welcome to Plugins for Geeklog
 Saturday, May 17 2008 @ 07:11 AM EDT

Daily Stats for Geeklog Websites

   
GeekLog

I recently upgraded my main server and installed Fedora Core 2.  The logwatch on fedora emails root everyday with a summary of the activity on the server.

I liked this so much that I hacked together a cli php script that collects stats for a Geeklog site and emails it to the admin everyday.

What it does:

  • If my stats plugin is installed calculates # of visitors and # of pages.
  • Shows entries from geeklog access and error for the day.
  • If my ban plugin is installed it shows ip's banned for the day.
  • If my spamx plugin is installed it shows spamx comments rejected.

The script checks for the stats, ban and spamx plugins before collecting that information, so if you do not have them installed no problem.  I have not tested this on anything other than my system so use at your own risk.

To install it simply copy the script to someplace on your server.  Edit the path to your lib-common.php and perhaps the path to your php executable.  And add it to your crontab.  On my server the script is located at /var/www/emailstats and I wanted it to email me the info everynight at 12:30 so my crontab entry is

30 0 * * * /var/www/emailstats

Anyway here is where you can download the script.

Note:  you can have multiple copies of the script for multiple sites.

Enjoy

 

What's Related

Story Options

Daily Stats for Geeklog Websites | 3 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Error Message
Authored by: arthur on Saturday, October 23 2004 @ 12:50 AM EDT
I like this! The stats summary email came through fine, but I got a cron error:

Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in [arthur's libcommon web path]/plugins/
stats/functions.inc on line 341
  • Fixed - Authored by: arthur on Saturday, October 23 2004 @ 07:58 PM EDT
 Copyright © 2008 Plugins for Geeklog
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.16 seconds