application Integration
web-scenario (en)


ServicePilot application-web-scenario


# Web Application Scenario

Overview

This package monitors a Web server Response Time via a scenario (a series of web requests).

Description

This package automatically configures the ServicePilot Agent to collect statistics from a Web Application Scenario using the ServicePilot Agent by checking Server Response Time for a series of web requests.

Requirements

  • Network Flows - It is is necessary to ensure network connectivity between ServicePilot and the monitored device. In case of a network infrastructure using a firewall, all the ports below must be opened:

    • TCP/80 (Default) (HTTP): Between ServicePilot Agent and Web Server
    • ServicePilot Manager Web server access (by default TCP/80 when using HTTP or TCP/443 when using HTTPS although this port is configurable): Between ServicePilot Agent and ServicePilot Manager
  • ServicePilot Requirements

    • ServicePilot Manager minimum version: 8.5
    • ServicePilot Agent minimum version: 8.5 installed and configured

Installation

Before adding a resource to monitor, make certain that all pre-requisites are in place and if a ServicePilot Agent is required, that it is communicating correctly with the ServicePilot Manager. Resources can be added to ServicePilot configuration in a number of ways:

Add resource using Views Configuration web interface

  1. As an administrative user of ServicePilot, open the ServicePilot web interface.
  2. Navigate to Administration. The Configuration > Views web page will open.
  3. Click on the view in which to place the new resource in the Views hierarchy on the left of the interface. The View editor section will show the existing view contents.
  4. From the Packages list on the right of the interface, click and drag the application-web-scenario package into the View editor and let go.
  5. The Package properties dialog box will open to allow resource configuration.
  6. Click OK to close the Package properties dialog box. Note that the dialog box will not close if required parameters are not set.
  7. Click Save to apply the new resource to ServicePilot configuration.

Add resource by changing servicepilot.conf configuration file

Resources can be added to ServicePilot configuration by directly editing the servicepilot.conf or other included YAML configuration files. The ServicePilot web interface can be used to make these changes and apply them to the running configuration.

  1. As an administrative user of ServicePilot, open the ServicePilot web interface.
  2. Navigate to Administration.
  3. Navigate to Configuration > Edit configuration.
  4. Expand the configuration to find the provisioning: and then packages: section of the view in which the new resource will be placed.
  5. Add the example package configuration line below.
  6. Click on the green - package: word to open then Package properties dialog box to allow resource configuration.
  7. Click OK to close the Package properties dialog box. Note that the dialog box will not close if required parameters are not set.
  8. Click Save to apply the new resource to ServicePilot configuration.

Example:

- package: "application-web-scenario;;;;;;;;application-web-scenario;;At least one page is OK (HTTP 200);www.first-url.com;GET;HTTPlogin;HTTPpassword;HTTPdomain;POST Parameters;www.second-url.com;GET;HTTPlogin;HTTPpassword;HTTPdomain;POST Parameters"

Key field notes

  1. In the Monitoring Policies tab, specify the policy or policies to apply to the package

  2. Basic Parameters tab:

    Scenario Condition: Select if one page or all pages are OK

  3. First URL Parameters: tab:

    1. First URL: Specify the first URL of the Web site
    2. HTTP Mode: Select between GET or POST from the drop down menu
    3. HTTP Login: Specify the username
    4. HTTP Password: Specify the password
    5. HTTP Domain: Specify the domain name
    6. POST Parameters: (only for POST mode) Specify the required post parameters
  4. Second URL Parameters tab is completed using the same guidelines as for First URL Parameters tab