The Apache Web server has the following notes:
Before you use this agent, perform the following tasks:
See About bringing an Apache Web server online outside of VCS control
Inetd
does not invoke the Apache server.
The agent provides two methods to evaluate the state of an Apache HTTP server instance. The first state check is mandatory and the second is optional.
The first check determines the state of the Apache HTTP server. The check determines the state by searching for the existence of the parent httpd daemon. It also searches for at least one child httpd daemon. If the parent process and at least one child do not exist, VCS reports the resource as offline. If they do exist, and if the agent attribute SecondLevelMonitor is set to true, then a socket connection is established with the Apache HTTP server using the values specified by the Host and Port agent attributes. When connected, the agent issues an HTTP request to the server to test its ability to respond. If the HTTP Server responds with a return code between 0 and 408, the agent considers the server online. If the server fails to respond or returns any other code, the agent considers the server offline.
When you bring an Apache Web server online outside of VCS control, first source its environment file. Start the server with the -f
option so the server knows which instance to start. You can then specify additional options (such as EnableSSL or SharedObjDir) that you want the server to use at start.
To start an Apache Web server outside of VCS control
-f
option so that the agent can distinguish different instances of the server.
httpdDir/httpd -f ConfigFile -k start
Where httpdDir is /apache/v2.2/bin ConfigFile is /apache/v2.2/conf/httpd.conf. When fully formed, the start example looks like:
/apache/v2.2/bin/httpd -f /apache/v2.2/conf/httpd.conf -k start
The agent functions for the Apache HTTP server depend on a set of Perl modules that are known as the ACC Library. The ACC Library contains the common, reusable functions that perform tasks such as process identification, logging, and system calls.
The ACC library is automatically installed on each system in a cluster that runs the Apache Web server agent.
When you install the ACC library in a VCS environment, you must install the ACC library package before you install the agent.
To install or update the ACC library package, locate the library and related documentation on the agent disc and in the compressed agent tar file.
The high availability fire drill detects discrepancies between the VCS configuration and the underlying infrastructure on a node. These discrepancies might prevent a service group from going online on a specific node. For Apache resources, when the Apache Web server is installed locally, the high availability fire drill checks for the validity of these attributes:
For more information about using the high availability fire drill see the Veritas Cluster Server User's Guide.