Apache web server discovery
-
- UpdatedFeb 1, 2024
- 9 minutes to read
- Washington DC
- ITOM Visibility
Discovery identifies and classifies information about Apache web servers on both Windows and Linux computers.
Credentials
For a list of privileged commands that you need for Discovery and Service Mapping, see Service Mapping commands requiring a privileged user. This list includes commands that require elevated rights to discover and map Unix-based hosts in your organization.
Classifier, patterns, and probes
Classifier | Trigger probes | Patterns |
---|---|---|
Apache Server |
|
|
To use patterns, verify that the correct pattern is specified in the horizontal pattern probe on the classifier. See Add the Horizontal Pattern probe to a classifier for instructions.
Data collected using probes
Connections found by Service Mapping during top-down discovery
- Any application using java
- Any application using the LDAP port
- Oracle WebLogic Module Oracle, and WebLogic Server (version 10.3)
- (On Windows only) Jiva applications
- (On Windows only) Tomcat server
- (On UNIX only) Applications discovered using the mod_jk process
- (On UNIX only) Hosts to which the Apache web server is connecting in the load balancing mode
- (On UNIX only) Epic application
Apache mod_jk and mod_proxy discovery
Discovery uses SSH to find Apache connectors mod_jk and mod_proxy.
- httpd, or
- apache, or
- httpd2, or
- httpd2-prefork
- httpd.worker
If there is a match on one of these criteria, a record is created in the Web Server [cmdb_ci_web_server] table if one does not already exist for that running process.
Probe | Description | Commands |
---|---|---|
Apache – Version | The sensor of this probe populates the Apache version information in the Web Server record. | httpd |
Apache – Get Configuration | This probe contains a Bourne shell script and an argument that determines the path of the Apache configuration file. The sensor of this probe populates some additional information in the Web Server record. | echo, sed, httpd, cut, grep, egrep (within the Borne shell script) |
Probe | Description | Commands |
---|---|---|
Apache – Get JK Module | If the mod_jk module is running as a load balancer on the server, the sensor of this probe populates the information in the Load Balancer Service [cmdb_ci_lb_service], Load Balancer Pool [cmdb_ci_lb_pool] and Load Balancer Pool Member [cmdb_ci_lb_pool_member] tables. | echo, sed, httpd, cut, grep, egrep (within the Borne shell script) |
Apache – Get Proxy Module | If the mod_proxy module is running as a load balancer on the server, the sensor of this probe populates the information in the Load Balancer Service [cmdb_ci_lb_service], Load Balancer Pool [cmdb_ci_lb_pool] and Load Balancer Pool Member [cmdb_ci_lb_pool_member] tables. | grep, egrep (within the Borne shell script) |
- The records in the cmdb_ci_lb_appl table run on the cmdb_ci_web_server table records.
- The records in the cmdb_ci_lb_service table use the cmdb_ci_lb_pool table records.
- The records in the cmdb_ci_lb_pool table are used by the cmdb_ci_service table record.
- The records in the cmdb_ci_lb_pool table are members of the cmdb_ci_lb_pool_member table.
- The records in the cmdb_ci_lb_pool_member table are members of the cmdb_ci_lb_pool table.
Legacy: Add sudo access for the Unix - Active Processes probe
For an Apache web server the Unix - Active Processes probe requires sudo privileges.
Before you begin
About this task
Procedure
Data collected by Mod_jk module
The Apache mod_jk module forwards requests from the Apache web server to a Servlet container, such as Tomcat.
Additional mod_jk directives can also manage load balancing. Discovery populates the CMDB when it detects an Apache Server. When the Apache Web Server process is detected, if the mod_jk module is running on the web server as a load balancer, the related information populates to the CMDB.
- The MID Server user account to explore the target server must have access to the httpd.conf configuration file in the /etc/httpd/conf/ folder.
- Discovery uses secure shell (SSH) commands to identify the following associated elements:
- Apache Get Configuration
- Apache Version
- Apache Get JK Module
- The following probes require execute privileges to run commands:
Table 3. Probes that require execute privileges Probe Command Apache – Get Configuration echo, sed, httpd, cut, grep, egrep (within the Borne shell script) Apache – Version httpd Apache – Get JK Module echo, sed, httpd, cut, grep, egrep (within the Borne shell script)
Probes and sensors
Discovery uses the Unix - Active Processes probe to identify an Apache server that contains the mod_jk module:
- The Unix - Active Processes probe detects a running process that matches one of the following criteria:
- The name of the process is httpd.
- The name of the process is apache.
- If there is a match on one of these criteria, a record is created in the Web Server table [cmdb_ci_web_server] if one does not already exist for that running process. The following probes are also triggered:
- Apache – Version: the sensor of this probe populates the Apache version information in the Web Server record.
- Apache – Get Configuration: this probe contains a Bourne shell script and an argument that determines the path of the Apache configuration file. The sensor of this probe populates some additional information in the Web Server record.
- The sensor processing of Apache – Get configuration probe results triggers the following probes
if the mod_jk module is running on the web server:
Apache – JK Module: if the mod_jk module is running as a load balancer on the server, the sensor of this probe populates the information in the Load Balancer Service [cmdb_ci_lb_service], Load Balancer Pool [cmdb_ci_lb_pool] and Load Balancer Pool Member [cmdb_ci_lb_pool_member] tables.
Data Collected
Table Name | Field and Label Name | Probe |
---|---|---|
cmdb_ci_web_server | Name [name] | Apache – Get Configuration |
cmdb_ci_web_server | Version [version] | Apache – Version |
cmdb_ci_web_server | Description [short_description] | Apache – Version |
Relationships
- The records in the cmdb_ci_lb_appl table run on the cmdb_ci_web_server table records.
- The records in the cmdb_ci_lb_service table use the cmdb_ci_lb_pool table records.
- The records in the cmdb_ci_lb_pool table are used by the cmdb_ci_service table record.
- The records in the cmdb_ci_lb_pool table are members of the cmdb_ci_lb_pool_member table.
- The records in the cmdb_ci_lb_pool_member table are members of the cmdb_ci_lb_ pool table.
Data collected by Mod_proxy module
The Apache mod_proxy module implements a proxy, gateway, or cache for the Apache web server.
- The MID Server user account to explore the target server must have access to the [httpd.conf] configuration file in the /etc/httpd/conf/ folder.
- Discovery uses secure shell (SSH) commands to identify the following associated
elements:
- Apache Get Configuration
- Apache Version
- Apache Get Proxy Module
- The following probes require execute privileges to run commands:
Table 6. Data collected from the mod_jk module Probe Commands Apache – Get Configuration echo, sed, httpd, cut, grep, egrep (within the Borne shell script) Apache – Get Proxy Module grep, egrep (within the Borne shell script) Apache – Version httpd
Probes and sensors
- The Unix - Active Processes probe detects a running process that matches one of the following criteria:
- The name of the process is httpd.
- The name of the process is apache2.
- If there is a match on one of these criteria, a record is created in the Web Server table [cmdb_ci_web_server] if one does not already exist for that running process. The following probes are also triggered:
- Apache – Version: the sensor of this probe populates the Apache version information in the Web server [cmdb_ci_web_server] record.
- Apache – Get Configuration: this probe contains a Bourne shell script and an argument that determines the path of the Apache configuration file. The sensor of this probe populates some additional information in the Web server [cmdb_ci_web_server] record.
- The sensor processing of the Apache – Get configuration probe results triggers the following
probes if the mod_proxy module is running on the web server:
Apache - Get Proxy Module: if the mod_proxy module is running as a load balancer on the server, the sensor of this probe populates the information in the Load Balancer Service [cmdb_ci_lb_service], Load Balancer Pool [cmdb_ci_lb_pool] and Load Balancer Pool Member [cmdb_ci_lb_pool_member] tables.
Data Collected
Table Name | Field and Label Name | Probe |
---|---|---|
cmdb_ci_web_server | Name [name] | Apache – Get Configuration |
cmdb_ci_web_server | Version [version] | Apache – Version |
cmdb_ci_web_server | Description [short_description] | Apache – Version |
Relationships
- The records in the cmdb_ci_lb_appl table run on the cmdb_ci_web_server table records.
- The records in the cmdb_ci_lb_service table use the cmdb_ci_lb_pool table records.
- The records in the cmdb_ci_lb_pool table are used by the cmdb_ci_service table records.
- The records in the cmdb_ci_lb_pool are members of the cmdb_ci_lb_pool_member table records.
- The records in the cmdb_ci_lb_pool_member is a member of the cmdb_ci_lb_pool table records.