TWB SiteMonitor

Fast, accurate and cheap website availability monitoring.

It's not easy to find a good, simple, cheap website availability monitoring system... So we gave up looking and wrote our own... Why pay every month for a commercial monitoring service, when your website can check itself?

Track Your Website's Uptime - To The Minute!

The system records your website's availability with a resolution of one minute, and can report outages with a latency of just 2 minutes (even most commercial services have a minimum latency of 15 minutes!).

SiteMonitor - AgentSiteMonitor - Stats
SiteMonitor - Agent: Website Availability Monitoring SiteMonitor - Stats: Statistics and Setup

  • Rated 10/10 in DevScripts.com
  • Accurate, Simple, Useful Site Availability Statistics.
  • User Specified: Test Page, Search Text, Latency Period (How long before it's considered an 'outage')
  • FREE Support
  • FREE Upgrades
  • One Single Cheap Payment. You own the script - No Monthly Fees
  • License is per user - use the script on all your websites
  • 60-Day No-Quibble Full Money-Back Guarantee
  • FULLY commented, easy to read PHP code
  • There are 2 scripts in the package:

    SiteMonitor: Agent

    SiteMonitor: Agent is the script which does the availability checking. It's scheduled to run every minute.

    How It Works
    You install the scripts on the machine you want to monitor. When it's running OK, it updates a timestamp, when it isn't - it doesn't...

    Every time SiteMonitor: Agent runs it requests a user-specified test page (via HTTP) from your site, and verifies that it arrives and contains some user-defined text. Every time a successful check is made, the current time is written to the database. If the time between successful runs is greater than a given latency period, then an outage is recorded

    SiteMonitor Agent can run in 2 different modes: quiet (default) and visible.

    Quiet mode is the one which gets run by the scheduler. It just reports 'Site Up' or 'Site Down' (so your cronlog doesn't get too big!).

    Visible mode allows you to see what's going on in detail.

    SiteMonitor: Stats

    SiteMonitor Stats displays the monitoring results, and allows you to update your settings.

    To see it running on this website click here: SiteMonitor Stats

    Requirements

  • You need to be able to install the two scripts: 'Agent' and 'Stats' in the root directory of your website. If you're unsure - please read the installation procedure below and decide if you can do it. If you need an FTP tool, see the page on Telnet and FTP.
  • You need to enter your database login details into the two scripts using a text editor. If you need an HTML / PHP Editor, see the page on HTML Editors.
  • You need to have access to your MySQL Database. You'll need to know your database username and password because these must be entered into the scripts.
  • Your website must have access to: PHP, MySQL database, Access to cron or any scheduler with a 1 minute resolution.
  • Installation

    Before buying the script, please ensure you can complete this installation procedure:

    1. Download and unzip the scripts onto your PC. There are 4 files in the package.
    2. Enter your database login info in the 2 main scripts where indicated.
    3. Upload the scripts, style sheet, and phpinfo.php to the root directory of your website. This is the 'www' or 'public_html' directory. If you need an FTP tool, see the page on Telnet and FTP.
    4. Cut and Paste the database definitions from this page into your database. You can enter SQL commands directly into PHPMyAdmin - which you're bound to have if you've got MySQL. See your webhosting control panel or ask your host!
    5. Database Table Definitions: (Cut and Paste!)

      /*------------*/
      /* Monitoring */
      /*------------*/
      CREATE TABLE sm_lastcheck (
      check_t INT UNSIGNED
      );

      /*--------*/
      /* Events */
      /*--------*/
      CREATE TABLE sm_events (
      event_id INT UNSIGNED AUTO_INCREMENT,
      ev_type VARCHAR(10) NOT NULL,
      ev_start INT UNSIGNED,
      ev_end INT UNSIGNED,
      PRIMARY KEY (event_id)
      );

      /*----------*/
      /* Settings */
      /*----------*/
      CREATE TABLE sm_settings (
      check_url VARCHAR(100) NOT NULL,
      search_text VARCHAR(20) NOT NULL,
      latency INT UNSIGNED NOT NULL
      );

      INSERT INTO sm_settings VALUES ('http://localhost/sitemon-test.txt', 'AllOK', 600);

    6. Run phpinfo.php - you just have to access it in your browser and it will tell you all about your PHP installation. for example: http://web-bureau.com/phpinfo.php. Look at the third line down: Server API. If it says 'CGI' then your PHP is installed as a CGI module, else it's an Apache module!
    7. Add (something like) the following line to your crontab file (or use your host's control panel if you don't have direct access to it):
    8. PHP As CGI Module:
      * * * * * php -q /yourlocalpath/sitemon.php >/dev/null 2>&1
    9. Where yourlocalpath is the real directory on your webhost. You can get this by looking in the 'Environment' section of your phpinfo page. It's the DOCUMENT_ROOT value.
    10. PHP As Apache Module:

    11. * * * * * lynx -dump http://YourDomain.com/sitemon.php
    12. That's It! It's now up and running and recording your website's availablity every minute. Check the stats page for a report !

    For more info on cron see the cron man page.

    TWB: SiteMonitor - Website Availability Monitoring Script costs less than a month's premium monitoring at a large number of monitoring websites!

    This page is currently being updated. Check back soon.


     Back To Top
    Main Menu
    Home
    Why Learn
    Course Info
    10 Lessons
    Free Scripts
    Ebooks
    Resources
    FAQ
    Feedback & Support
    Links
    Terms of Use
    Contribute
    Contact Info


    Search
    Enter Keywords:

    Search at:
    Advanced Search



    Welcome Guest
    Register Log in

    As a registered user you can post comments, questions and answers.

    The time now is Thu Aug 28, 2008 11:55 pm

    All times are GMT + 1 Hour

    Site Update
    NB: The following links are currently being updated:
    Products
    CD



    Copyright ©2002 - 2005 The Webmaster's Bureau
    All Rights Reserved


    Developed by GB WebsphpBB credits