Setting Up @Watch To Check Backend Databases (Availability)
@watch has the ability to monitor backend database output with a little effort by the customer. In order to do this, a custom dynamic web page that exercises the database needs to be written.
Construct a custom web page script or CGI that queries the backend database. When the URL for this web page is called, it should produce HTML output similar to the following:
In the above example, the custom dynamic script or CGI produces the text "Database is OK" when it successfully runs.
Specify the URL for this custom dynamic web page for @watch to monitor.
The second and very important part of this process is to specify the text string "Database is OK" in @watch's Text String Check. This check will make sure that the text string "Database is OK" does exist on the downloaded page when the backend database is functioning properly.
The Text String Check is limited to the first 1024 characters of HTML that is returned by the web server. Therefore, the complete text string being checked must exist completely within the first 1024 characters of the web page. The exact text string is also case sensitive.