Skip to content

Apache HTTP & IBM IHS — Prerequisites

Prerequisites for monitoring Apache HTTP & IBM IHS with HEAL.

2 min read Updated SS

Prerequisites to complete before adding this component in the HEAL Control Center.

The prerequisites for Apache HTTP or IBM IHS server include:

  1. Enable the Server Status module by uncommenting the following line in the httpd.conf file:

    LoadModule status_module modules/mod_status.so
    
  2. Grant monitor access privileges to the system where the component agent is deployed by adding the component agent server’s IP address to the httpd.conf file:For Apache 2.2.x and IBM IHS 8.5.x:

    ExtendedStatus On
    <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from <Component Agent Server IP address>
    </Location>
    

    For Apache 2.4.x and IBM IHS 9.0.x:

    ExtendedStatus On
    <Location /server-status>
        SetHandler server-status
        Require ip <Component Agent Server IP address>
    </Location>
    
  3. Restart the Apache HTTP or IBM IHS Server for the changes to take effect.

  4. Ensure that the Apache HTTP or IBM IHS server’s monitor port (default HTTP port is 80) is opened to collect data.
  5. To monitor HTTPS instances of Web Servers, you need to:
    • Register the Web Server’s fully qualified name in the DNS server.
    • Or, enter the Web Server details in the /etc/hosts file of the component agent system.
  6. SSLVerifyClient must be set to a valid value:The SSLVerifyClient directive in the client configuration must be set to a valid value, such as require or optional, depending on the desired level of client authentication. This is particularly important if you are monitoring HTTPS servers.

CPU Load Metrics#

To collect CPU Load Metrics in Apache Httpd (Windows), follow the below steps:

  1. Copy the .lua file to the <httpd-home>/htdocs directory.
  2. Locate and open the httpd.conf configuration file in your Apache Httpd setup.
  3. Enable the Lua module by uncommenting the following line in the configuration file:

    LoadModule lua_module modules/mod_lua.so
    
  4. Append the following lines at the end of the httpd.conf file:

    LuaMapHandler ^/server-status$ <httpd-home>/htdocs/modified_server_status.lua
    AddHandler lua-script .lua
    
  5. Modify the mod_status location by updating the <Location> directive for mod_status to:

    <Location "/server-modified-status">
    
  6. Save the changes to the httpd.conf file and restart the Apache Httpd server.

Note:

  • After these changes, the CPU Load metric will be appended to the /server-status?auto URL.
  • Accessing /server-status will display the same output as /server-status?auto.
  • To view the original /server-status output, use /server-modified-status instead.
  • The above steps have been tested on Apache Httpd version 2.4.x only.

See also: Apache HTTP & IBM IHS (what HEAL monitors) · Setup & configuration guide