|
Configuring Multiple URLs for Monitoring - HttpTest
By default, the HttpTest test will be configured with the URL of the home page of the web server being monitored. To configure additional URLs, do the following:
- Click on the encircled ‘+’ button alongside the URL text box. The CONFIGURATION OF URL PATTERNS pop up window will then appear.
- Specify the following in the pop up window:
- Name: Specify a unique name by which the URL you will be specifiying shortly will be referred to across the eG user interface. This is the name that will appear as the descriptor of this test.
- URL: Enter the URL of the web page that this test should access.
- Username and Password: These parameters are to be set only if a specific user name / password has to be specified to login to the web page (i.e., URL ) that you have configured for monitoring. In this case, provide valid login credentials using the Username and Password text boxes. If the web server on which HTTP test executes supports ‘Anonymous user access’, then these parameters will take either of the following values:
- A valid Username and Password for the configured URL
- none in both the Username and Password text boxes of the configured URL, if no user authorization is required
- Some web servers however, support NTLM (Integrated Windows) authentication, where valid login credentials are mandatory. In other words, a none specification will not be supported by such web servers. Therefore, in this case, against each configured URL, you will have to provide a valid Username in the format: domainname\username, followed by a valid Password.
- Please be sure to check if your web site requires HTTP authentication while configuring this parameter. HTTP authentication typically involves a separate pop-up window when you try to access the page. Many sites use HTTP POST for obtaining the user name and password and validating the user login. In such cases, the username and password have to be provided as part of the POST information and NOT as part of the CREDENTIALS specification for the HTTP test.
- Content: The Content parameter has to be configured with an instruction:value pair that will be used to validate the content being returned by the test. If the Content value is None, no validation is performed. On the other hand, if you pick the Include option from the Content list, it indicates to the test that for the content returned by the web server to be valid, the content must include the specified value (a simple string search is done in this case). This value should be specified in the adjacent text box. Similarly, if the Exclude option is chosen from the Content drop-down, it indicates to the test that the server's output is valid if it does not contain the value specified in the adjacent text box. The Include or Exclude value you specify in the text box can include wildcard characters. For example, an Include instruction can be *Home page*.
- Encoding: Sometimes the eG agent has to parse the URL content with specific encoding other than the default (ISO-8859-1) encoding. In such a case, specify the type of encoding using which the eG agent can parse the URL content in the Encoding text box. By default, this value is none.
- Private Key File Path and Password: SSL-enabled web sites are typically secured by a private key, public key, or a public-private key pair. If the web page configured for this test is SSL-enabled - i.e., if an HTTPS URL is specified against URL - and the contents of this web page can only be accessed using a private key, then the full path to the private key file will have to be provided against Private key file path and the password of the private key file should be specified against Password. If no such private key protects the contents of the configured URL, then set the Private key file path and its Password to none.
- Similarly, you can add multiple URL specifications by clicking the Add More button. To remove a URL specification, click on the encircled ‘-’ button corresponding to it. To clear all URL specifications, click the Clear button. To update all the changes you made, click the Update button.
- Once Update is clicked, you will return to the test configuration page. The URL text box in the test configuration page will display just the Names - i.e., the unique display names - that you may have configured for the multiple URLs, as a comma-separated list. To view the complete URL specification, click the encircled ‘+’ button alongside the URL text box, once again.
|