Web

Name

Web -- Check Web server connectivity

Synopsis

{ 'type'      : 'Web' , 
  'subents'   : [ 
       { 'status'  :'on', 'name':'yahoo', 
         'webHost':'www.yahoo.com', 'webUrl':'/',
         'triggers': [{'level': 'warn', 'trigger': '8'}]
       },
  ]
}

Description

The Web Entity monitors the availability of Web servers by pinging the server, connecting to their port, sending a request, and reading the respose. The entity can check for a particular phrase in the returned page. The Entity reports the number of pings dropped, the ping time in seconds, the connect time in seconds, the time to send a message (if specified), and the time to receive a response from the server.

Fields

name

A descriptive name for this subentity.

webHost

The hostname or IP address of the host to monitor.

webPort

(Optional)The port to connect to on webHost.

webUrl

The selector to request on webHost. Usually this is just '/' for the top-level page.

errorPhrase

(Optional) Trigger a notification if this phrase is read in the returned page. If not specified, a phrase is not checked for. This can be used to check for site problems (database failure, etc.).

cookie

(Optional) A string representing the cookies to send to the remote host, if requested.

auth

(Optional) The string sent as the encrypted hash for Basic authentication.

Trigger

The Trigger fires if the server is not reachable (connection times out or is refused), if the errorPhrase is read, or if the timeout specified as the trigger (in seconds) expires.