Domain Monitor

[Home]   [Puzzles & Projects]    [Delphi Techniques]   [Math topics]   [Library]   [Utilities]




Search WWW


As of October, 2016, Embarcadero is offering a free release of Delphi (Delphi 10.1 Berlin Starter Edition ).     There are a few restrictions, but it is a welcome step toward making more programmers aware of the joys of Delphi.  They do say "Offer may be withdrawn at any time", so don't delay if you want to check it out.  Please use the feedback link to let me know if the link stops working.


Support DFF - Shop

 If you shop at Amazon anyway,  consider using this link. 


We receive a few cents from each purchase.  Thanks


Support DFF - Donate

 If you benefit from the website,  in terms of knowledge, entertainment value, or something otherwise useful, consider making a donation via PayPal  to help defray the costs.  (No PayPal account necessary to donate via credit card.)  Transaction is secure.

Mensa Daily Puzzlers

For over 15 years Mensa Page-A-Day calendars have provided several puzzles a year for my programming pleasure.  Coding "solvers" is most fun, but many programs also allow user solving, convenient for "fill in the blanks" type.  Below are Amazon  links to the two most recent years.

Mensa 365 Puzzlers  Calendar 2017

Mensa 365 Puzzlers Calendar 2018

(Hint: If you can wait, current year calendars are usually on sale in January.)


Feedback:  Send an e-mail with your comments about this program (or anything else).

Search only




I wrote this Domain Monitor program shortly after moving this website to a new host and suffering reliability problems.  The problems turned out to be transient, but the monitor program exists, so I though I'd post and document it here.  After all, I may need it again sometime in the future.    

The idea is simple, it runs continuously submitting requests for a specified web page at specified intervals and records the results of each request, success or failure.  Multiple domains can be monitored, each with it's own set of statostics.   Two files are built for each URL monitored: a stats file with summary data, one record for each session that the monitor runs, and an error detail file with the time of each error. 

The program is controlled by a init file Urls.ini that specifies the required information.  There's a General section with email information and a URL section for  each web page to be monitored. Here's a sample:

    ; Insert your mail host here e.g. '
    ; some hosts require a valid userid before accepting email

    ; senders email address



Timers are used to trigger each transaction.  The tag field of the timer contains the index of the monitorrecs array containing the appropriate statistics information.  The completion of the transaction is captured by one of 3 events: Success, failure, Command failure.    

When the transaction completes a call is made to the UpdateStats procedure.  If the stats file exists, the last record is read. If the start-time of the record  matches the start-time of the program, the record is deleted and replaced by the current stats record.  Otherwise the record is added to the stats file.    




  [Feedback]   [Newsletters (subscribe/view)] [About me]
Copyright 2000-2018, Gary Darby    All rights reserved.