[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] site stats



Ahoy Clayton

You ask:

> Any idea how I can let a "siteadmin" use Analog's output for his site as
> one of his pages, without requiring any kind of login on the part of the
> web surfers going to the page?
>

Oddly enough, the reports which you access via your GUI whiz-bang are in a
hidden place. I say odd, because common sense would tell you that it's not
you, but your clients who will want to look at them. They can't.

But you can get Analog to write reports to an accessible place where they
can. That's easy enough.

Make a file in  /etc/cron.weekly
Let's say you call it "makelogreports"
Put this line in it:

/usr/local/sbin/analog +g/home/sites/siteX/web/reportdir/analog.cfg

Now chmod 755 makelogreports

(BTW - if you are using an editor like joe, be sure you remove any backup
files deposited in that directory, because cron will try to run the backups,
too)

Now, at siteX, create a directory named reportdir
Put a copy of analog.cfg in there, thus:

cp /etc/analog.cfg /home/sites/siteX/web/reportdir

Open up this new analog.cfg, and edit to suit. Config options can be conned
at the Analog site. In particular, you want to specify:

HEADERFILE    /home/sites/siteX/web/reportdir/yourheader
HOSTNAME    "yoursite.com"
LOGFILE    /home/sites/siteX/logs/access
OUTFILE    /home/sites/siteX/web/reportdir/report.html
IMAGEDIR    /home/sites/siteX/web/reportdir/images

Be sure to make a nice header, advertising what an ace site hoster your are.
And install some images in your images subdirectory. (I forget right now
where analog keeps them, but you can get them from the reports your GUI
whiz-bang shows you.)

chmod and chown everything.

You are ready to go.

Aloha
Davis