Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Load balancer: HAProxy

Load balancer: HAProxy

Discovery of HAProxy load balancers is performed by SSH.

HAProxy is an open-source load balancer that can manage any TCP service. It is particularly suited for HTTP load balancing because it supports session persistence and Layer 7 processing. Discovery supports HAProxy for HTTP load balancing. TCP load-balancing is not supported.

Important: Discovery treats load balancers as network devices and attempts to discover them primarily using SNMP. If a load balancer in your system running on a Linux host has SNMP and SSH ports open, Discovery might classify it based on the SSH port, which has classification priority over SNMP. To ensure that Discovery properly classifies your load balancers, create a Discovery behavior for load balancers that includes SNMP but not SSH.
Consider the following requirements for discovering the HAProxy:
  • The HAProxy software is installed and running on a Linux server.
  • The MID Server is deployed to explore the server and the MID Server has access to the server HAProxy configuration file.
  • The configuration probe checks for the haproxy.cfg file using one of the following methods:
    • Using the f parameter for the HAProxy process output.
    • Using the default /etc/haproxy/haproxy.cfg path.
  • The HAProxy probes require credentials and execute privileges to run commands.
Discovery uses the Unix - Active Processes probe to identify an HAProxy load balancer by matching the following criteria.
  • The name of the process is haproxy.

If there is a match on one of these criterion, a record is created in the Load Balancer Application [cmdb_ci_lb_appl] table if one does not already exist for that running process.

The following probes are triggered after classification:
Table 1. HAProxy probes
Probe Description Commands
HAProxy – Version The sensor of this probe populates the HAProxy version in the Load Balancer Application [cmdb_ci_lb_appl] table. haproxy
HAProxy – Get Configuration The sensor of this probe populates additional information in the Load Balancer Application [cmdb_ci_lb_appl] table. The probe also populates 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, cut, grep, egrep (within the Borne shell script)

In addition to populating the data, the following relationships records are created in CI Relationships [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 records.
  • The records in the cmdb_ci_pool table are members of the cmdb_ci_pool_member table records.
  • The records in the cmdb_ci_pool_member table are members of the cmdb_ci_pool table records.