An Apache web server Monitor allows you to monitor key Apache performance metrics such as processes, workers who are busy or idle, and traffic. By setting metrics thresholds, you will receive alerts if any Apache web server monitor metrics (parameters) reaches a warning or error level that you specified.

Adding an Apache web server monitor

Before proceeding, please ensure that you have created the component and your Anturis Private Agent for Windows/Linux is running.
  1. On the Component page, click Add/Remove Monitors > Add Custom Monitor.
  2. Select the Local Resources Monitors tab and Software sub tab view.
  3. Select Apache Web Server and click Next.
  4. Select a server from the list and click Next.
  5. Under Apache Statistics web page URL enter URL address to server with configured mod_status (see Apache module (mod_status)).
  6. Select Apache Server Metrics and set the threshold for selected metrics.
  7. Enter a Monitor Name and set consecutive measurements.
  8. Click Next.
  9. On the Monitor test result step, click Next when the test is passed.
  10. Click Finish.

To manage your monitor, click View/Edit parameters.

To add an Apache web server monitor via the second option, follow the steps below:
  1. From the Infrastructure view page, click "+" Components.
  2. Select the Apache component and click Next.
  3. Select the agent (server) from the list and click Next.
  4. [Optional] Select Apache statistics monitor.
  5. Click Next.
  6. [Optional] Enter a Monitor Name.
  7. Click Finish.

Apache module (mod_status)

There is an Apache module (mod_status) responsible for presenting the current view of Apache key parameters. To configure the mod_status parameter, follow the steps below.

For Apache version 2.3 or earlier:
Open the httpd.conf file.
Uncomment the following lines:
<Location /server-status>	SetHandler server-status	Order deny,allow	Deny from all	Allow from 127.0.0.1</Location>
Save httpd.conf.

For Apache version 2.4 version or later, follow the steps below.
Open the httpd.conf file.
Add the following lines of code:
<Location /server-status>    SetHandler server-status    Require ip 127.0.0.1</Location>
Save httpd.conf.


Is this article helpful for you?