Apache HTTP & IBM IHS — Prerequisites
Prerequisites for monitoring Apache HTTP & IBM IHS with HEAL.
Prerequisites to complete before adding this component in the HEAL Control Center.
The prerequisites for Apache HTTP or IBM IHS server include:
-
Enable the Server Status module by uncommenting the following line in the
httpd.conffile:LoadModule status_module modules/mod_status.so -
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.conffile: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> -
Restart the Apache HTTP or IBM IHS Server for the changes to take effect.
- Ensure that the Apache HTTP or IBM IHS server’s monitor port (default HTTP port is
80) is opened to collect data. - 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/hostsfile of the component agent system.
- SSLVerifyClient must be set to a valid value:The
SSLVerifyClientdirective in the client configuration must be set to a valid value, such asrequireoroptional, 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:
- Copy the
.luafile to the<httpd-home>/htdocsdirectory. - Locate and open the
httpd.confconfiguration file in your Apache Httpd setup. -
Enable the Lua module by uncommenting the following line in the configuration file:
LoadModule lua_module modules/mod_lua.so -
Append the following lines at the end of the
httpd.conffile:LuaMapHandler ^/server-status$ <httpd-home>/htdocs/modified_server_status.lua AddHandler lua-script .lua -
Modify the
mod_statuslocation by updating the<Location>directive formod_statusto:<Location "/server-modified-status"> -
Save the changes to the
httpd.conffile and restart the Apache Httpd server.
Note:
- After these changes, the CPU Load metric will be appended to the
/server-status?autoURL. - Accessing
/server-statuswill display the same output as/server-status?auto. - To view the original
/server-statusoutput, use/server-modified-statusinstead. - 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