HP Intelligent Management Center v5.1 SP1 Application Manager Administrator Guide

222
12 Web server monitor
Application typeWeb server monitor can monitor the following types of server:
Apache server
IIS server
PHP
This chapter describes how to add these types of application monitor and the details of application
monitor reports.
Apache server
As a stable, powerful, open-source Web server, Apache is widely used in the Internet.
APM can monitor Apache 2.X. This section describes how to add an Apache server application monitor
and the details of Apache server application monitor reports.
Configuring the Apache server
APM monitors an Apache server through the Web service port (TCP 80 by default) of the Apache server.
To use APM to monitor the Apache server, make sure the Apache server is loaded with the status
module (mod_status.so). This section describes how to configure the Apache server and make the server
correctly load the status module.
1. Use a file editor to open the Apache configuration file, http.conf.
2. Remove the number sign (#) in the front of the line displaying LoadModule status_module
modules/mod_status.so.
3. Add the following segment to the configuration file:
<location /server-status>
SetHandler server-status
Order Deny,Allow
Allow from all
</location>
ExtendedStatus On
If the configuration segment already exists in the configuration file, remove the number sign (#) in
the front of the configuration segment, and modify the configuration segment into the segment
above.
4. Save the configuration file, and restart the Apache server.
Adding an Apache server application monitor
When you add an Apache server application monitor, follow these guidelines:
Make sure the host installed with the Apache server is already added to the IMC platform. For how
to add a host to the IMC platform, IMC Base Platform Administrator Guide for the chapter on
resource management.