Apache web server monitor

The Apache monitor shows the measurements and server properties that can be monitored on the Apache web server during the test run.

Set up the Apache monitor

This task describes how to set up the Apache monitor.

  1. Prerequisite

    If your monitor accesses a server outside of your internal network, you may need to set up a web proxy to collect data from it. For details, see Use a proxy server.

  2. Select a resources folder

    Select a resources folder for the monitor profile in the resources tree, or create a new folder as follows:

    1. From the LoadRunner Enterprise navigation toolbar, click and select Monitors (under Assets).

    2. Click New Folder and enter a name for the monitor resources folder.

  3. Create a monitor profile

    1. Click New Monitor Profile, and make sure Monitor Profile is selected.

    2. Enter a name and optional description for the monitor profile, and click Save. An empty monitor profile is added to the selected resources folder.

    3. Select the monitor profile you just added and click Add Monitor.

    1. Select the Apache monitor type.

      Click Next and enter the server details:

       

      Description

      Server

      The name or IP address of the Apache server whose resources you want to monitor.

      URL

      The Server statistics information URL. To verify the statistics information URL, try to view it through the browser using the following format: http://<server_name/IP address>:<port_number>/server-status?auto For example: http://stimpy:80/server-status?auto.

      Format: Enter the server statistics information URL, without the server name.

      Default value:/server-status?auto

      Note: The default port number and URL can vary from one server to another. Consult your web server administrator.

      Port

      The port number of the Apache server.

      Note: To monitor an Apache server through a firewall, use the web server port (by default, port 80).

    2. Click Get Counters to display a list of available metrics and counters.

      Select the measurements that you want to monitor, and then click to add the counters to the Selected Counters table.

      Measurement

      Description

      # Busy Servers

      The number of servers in the Busy state.

      # Idle Servers

      The number of servers in the Idle state.

      Apache CPU Usage

      The percentage of time the CPU is utilized by the Apache server.

      Hits/sec

      The HTTP request rate.

      KBytes Sent/sec

      The rate at which data bytes are sent from the web server.

    3. Click Save. The monitor details are displayed in the Monitors tab for the selected monitor profile.

  4. Associate the monitor with your test

    For details, see Step 4: Associate monitors with your test.

Back to top

Change the Apache default server properties

This task describes how to modify the Apache default server properties that are defined in the monitor configuration file.

  1. Open the apache.cfg file in the <LoadRunner Enterprise server root folder>\dat\monitors directory.

  2. Edit the following parameters after the Delimiter=: statement:

    InfoURL

    Server statistics information URL.

    ServerPort

    Server port number.

    SamplingRate

    Rate (milliseconds) at which the monitor will poll the server for the statistics information. If this value is greater than 1000, LoadRunner Enterprise will use it as its sampling rate. Otherwise, it will use the sampling rate defined in the Monitors tab of the Options dialog box.

  3. Save and close the file.

Back to top

See also: