Just wanted to say many thanks to the analog developers.

    I just setup automated analog reports on 4 RedHat servers running virtual hosts. 
One server has about 30 virtual hosts, while
another has 189 (is that a record for analog?), the other 2 each run 2 virtual hosts. 
Analog works great regardless of the count. I
actually set this up using a couple pretty simple PHP scripts and a single CRON job. 
If anyone is interested in the PHP used to
generate the configuration files for analog or the PHP that CRON executes to run an 
undefined number of reports, let me know and I
will make some time to make it a usable package.

Basically, it works as follows:

mkanalog.php
        This script creates analog configuration files for each domain in a list. This 
domain list is a text file, one domain per
line. On my servers, I setup a /var/analog directory and I stored all the config files 
there - similar to named's zone files in
/var/named. The mkanalog script has all the configuration parameters, but it assumes 
that every virtual host's configuration file is
the same. Basically, customize later by hand as needed.

runanalog.php
        This script is executed by a CRON job - or manually. It reads the directory 
listing of /var/analog and runs an analog report
for each configuration file found. This means that no matter how many configuration 
files there are, they will get run without
changing the CRON job or runanalog.php at all.

    Once I wrote the PHP's and figured out my default analog configuration, it took me 
less than 5 minutes to have configuration
files generated for over 200 virtual hosts - that included having to move them to the 
appropriate server from my workstation. That
certainly beats the time it was taking to setup WebTrend's automated analyzation - 
which took about 5 minutes PER HOST. The PHP
scripts are written to run in console mode, but they could easily be adapted to work 
for web.

Regards,
    James Linden


+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/analog-help@lists.isite.net/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to