From b1118ab23d2d4c2066ec4a56b725365c45e4ea08 Mon Sep 17 00:00:00 2001 From: Peter Thoeny Date: Fri, 14 Sep 2001 10:15:39 +0000 Subject: none --- Trash/MonitoringSiteActivity.mdwn | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Trash/MonitoringSiteActivity.mdwn b/Trash/MonitoringSiteActivity.mdwn index a3366597..b9b97ffb 100644 --- a/Trash/MonitoringSiteActivity.mdwn +++ b/Trash/MonitoringSiteActivity.mdwn @@ -33,14 +33,14 @@ The above line will call mailnotify at 15 minutes and 45 minutes past every hour **For ISP installations:** Many ISPs don't allow hosted accounts direct cron access, as it's often used for things that can heavily load the server. Workaround scripts are available. -**On Windows NT/2000:** You can use a scheduled task.
_(COMMENT: AT on an NT machine is pretty limited. Microsoft have a page about [replacements](http://www.microsoft.com/ntserver/nts/exec/vendors/freeshare/Maintnce.asp#cron). I am trying out [cron120.zip](ftp://ftp.omnitrend.com/pub/windowsNT/cron120.zip) [[Main/MartinCleaver]] - 22 Feb 2001)_ +**On Windows NT/2000:** You can use a scheduled task. **_Note:_** AT on an NT machine is pretty limited. Microsoft has a [replacement](http://www.microsoft.com/ntserver/partners/findoffering/serversolutions/Maintnce.asp#cron). ## Site Usage Statistics ### Configuring for Automatic Operation * You can automatically generate usage statistics for all webs. To enable this: - * Make sure variable `$doLogTopicView, $doLogTopicSave and $doLogTopicUpload` in `wikicfg.pm` are set. This will generate log entries in file `twiki/data/log.txt` . + * Make sure variable `$doLogTopicView, $doLogTopicSave and $doLogTopicUpload` in `TWiki.cfg` are set. This will generate log entries in file `twiki/data/log.txt` . * Topic [[WebStatistics]] must be present in all webs where you want to have statistics. You can use the topic in the Main web as a template. * Call the `twiki/bin/statistics` script from a cron job, once a day is recommended. This will update the [[WebStatistics]] topics in all webs. * **_Attention:_** The script must run as the same user as the CGI scripts are running, which is user `nobody` on most systems. Example crontab entry:
`0 0 * * * (cd /path/to/TWiki/bin; ./statistics >/dev/null 2>&1)` @@ -48,9 +48,9 @@ The above line will call mailnotify at 15 minutes and 45 minutes past every hour ### Generating Statistics Manually by URL -* * The `twiki/bin/statistics` script can also be executed as a CGI script, just enter the URL in your browser. Examples: - * Update current month for all webs:
`http://mydomain.com/twiki/bin/statistics` - * Update current month for Main web only:
`http://mydomain.com/twiki/bin/statistics/Main` - * Update January 2000 for Main web:
`http://mydomain.com/twiki/bin/statistics/Main?logdate=200001` +* The `twiki/bin/statistics` script can also be executed as a CGI script, just enter the URL in your browser. Examples: + * Update current month for all webs:
`http://mydomain.com/twiki/bin/statistics` + * Update current month for Main web only:
`http://mydomain.com/twiki/bin/statistics/Main` + * Update January 2000 for Main web:
`http://mydomain.com/twiki/bin/statistics/Main?logdate=200001` -- [[PeterThoeny]] - 16 Mar 2001
-- [[MikeMannix]] - 01 Sep 2001 -- cgit v1.2.3