Share this page

# 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.

In this topic:

## 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. In LoadRunner Enterprise, click Open the navigation toolbar 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. In the Monitor Type Selection tab, select the Apache monitor type and click Next.

   2. In the Monitor Definition tab, enter the server details:

      UI Elements | 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).

   3. 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.

   4. 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 3: 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 polls the server for the statistics information. If this value is greater than 1000, LoadRunner Enterprise uses it as its sampling rate. Otherwise, it uses the sampling rate defined in the Monitors tab of the Options dialog box.

3. Save and close the file.

Back to top

See also:

- Monitors

https://admhelp.microfocus.com LoadRunner Enterprise 8942
Tips to improve your search results... LoadRunner Enterprise Help Center LoadRunner Enterprise Help LR Enterprise Help 2023-2023 R1 All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: