Apache mod_jk and mod_proxy discovery

Discovery uses SSH to find Apache connectors mod_jk and mod_proxy.

Discovery uses the Unix - Active Processes probe to identify an Apache web server process by matching one of the following criteria: the name of the process is:
  • httpd, or
  • apache, or
  • httpd2, or
  • httpd2-prefork

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.

The following probes are triggered after classification:
Table 1. Apache web server probes
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)
The sensor processing of the Apache – Get Configuration probe identifies whether either the mod_jk or mod_proxy modules are present and triggers the appropriate probe.
Table 2. Apache module probes
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)
In addition to data population, the following relationships are created in the CI Relationship [cmdb_rel_ci] table:
  • 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_pool table are used by the cmdb_ci_service table record.
  • The records in the cmdb_ci_pool table are members of the cmdb_ci_pool_member table.
  • The records in the cmdb_ci_pool_member table are members of the cmdb_ci_pool table.