Note regarding time zone settings * Handling of timezones works best when the wpt, monitor, and tester installations are set to UTC. The examples shown below assume the following * Hostname is www.mywptbox.com * WebPagetest currently installed in /var/www/html and accessible via http://www.mywptbox.com/ InstallationInstall Release VersionDownload the desired release from Here If installing "inside" an existing WebPagetest installation then extract the archive in the base location in which your WebPagetest is installed. Example of installation on a linux box running WebPagetest cd /tmp wget http://code.webpagetest.org/svn/wptmonitor/releases/wptmonitor-0.2.0.tar.gz tar zxvf wptmonitor-0.2.0.tar.gz mv wptmonitor /var/www/html/. Install From SubversionOptionally you can checkout the latest version from subversion. Example of installation from SVN on a linux box cd /tmp svn co http://webpagetest.googlecode.com/svn/trunk/www/wptmonitorwptmonitor svn export wptmonitor /var/www/html/wptmonitor Initial ConfigurationNavigate to http://www.mywptbox.com/wptmonitor/install.php This will bring up the initial installation page. Note: This will create the file ./db/wpt_monitor.sqlite containing the initial settings. If you wish to run install.php again you will have to delete the wpt_monitor.sqlite file. This is a safety feature to protect form accidentally overwriting the existing configuration. Site Configuration
The sum of job * locations * (43200/frequency) If the user sets up 2 jobs that each execute against 2 locations at a frequency of 15 minutes... Job 1: 1 * 2 * (43200/15) = 5760 Job 1: 1 * 2 * (43200/15) = 5760 Total: 11,520
Alert Information
WebPagetest Host Information
Admin Information
Scheduled ( cron ) JobsThe Job Processor
Setting up the cron job on LinuxCreate a simple shell script. We'll call it jobProcessor.sh Add the following to the script. curl localhost/wptmonitor/jobProcessor.php?key=<key> >> /var/www/html/wptmonitor/jobProcessor.log Replace <key> with the value you used during installation ( install.php ). >> /var/www/html/wptmonitor/jobProcessor.log is optional. The jobProcessor itself will log data to /var/www/html/wptmonitor/jobProcessor_log.html. Create the crontab entry. crontab -e Then add the following line */5 * * * * /root/jobProcessor.sh This particular entry will execute the job processor every 4 minutes. This allows for a maximum job frequency of 4 minutes. Adjust the frequency as desired. Setting up the cron job on WindowsThere are many utilities available to schedule job runs on Windows. The only one I've used is z-cron, which can be downloaded here... |
Home >