Fortinet white logo
Fortinet white logo

CLI Reference

config firewall ldb-monitor

config firewall ldb-monitor

Configure server load balancing health monitors.

config firewall ldb-monitor
    Description: Configure server load balancing health monitors.
    edit <name>
        set http-get {string}
        set http-match {string}
        set http-max-redirects {integer}
        set interval {integer}
        set port {integer}
        set retry {integer}
        set timeout {integer}
        set type [ping|tcp|...]
    next
end

config firewall ldb-monitor

Parameter

Description

Type

Size

http-get

URL used to send a GET request to check the health of an HTTP server.

string

Maximum length: 255

http-match

String to match the value expected in response to an HTTP-GET request.

string

Maximum length: 255

http-max-redirects

The maximum number of HTTP redirects to be allowed.

integer

Minimum value: 0 Maximum value: 5

interval

Time between health checks.

integer

Minimum value: 5 Maximum value: 65535

name

Monitor name.

string

Maximum length: 35

port

Service port used to perform the health check. If 0, health check monitor inherits port configured for the server.

integer

Minimum value: 0 Maximum value: 65535

retry

Number health check attempts before the server is considered down.

integer

Minimum value: 1 Maximum value: 255

timeout

Time to wait to receive response to a health check from a server. Reaching the timeout means the health check failed.

integer

Minimum value: 1 Maximum value: 255

type

Select the Monitor type used by the health check monitor to check the health of the server (PING | TCP | HTTP | HTTPS).

option

-

Option

Description

ping

PING health monitor.

tcp

TCP-connect health monitor.

http

HTTP-GET health monitor.

https

HTTP-GET health monitor with SSL.

config firewall ldb-monitor

config firewall ldb-monitor

Configure server load balancing health monitors.

config firewall ldb-monitor
    Description: Configure server load balancing health monitors.
    edit <name>
        set http-get {string}
        set http-match {string}
        set http-max-redirects {integer}
        set interval {integer}
        set port {integer}
        set retry {integer}
        set timeout {integer}
        set type [ping|tcp|...]
    next
end

config firewall ldb-monitor

Parameter

Description

Type

Size

http-get

URL used to send a GET request to check the health of an HTTP server.

string

Maximum length: 255

http-match

String to match the value expected in response to an HTTP-GET request.

string

Maximum length: 255

http-max-redirects

The maximum number of HTTP redirects to be allowed.

integer

Minimum value: 0 Maximum value: 5

interval

Time between health checks.

integer

Minimum value: 5 Maximum value: 65535

name

Monitor name.

string

Maximum length: 35

port

Service port used to perform the health check. If 0, health check monitor inherits port configured for the server.

integer

Minimum value: 0 Maximum value: 65535

retry

Number health check attempts before the server is considered down.

integer

Minimum value: 1 Maximum value: 255

timeout

Time to wait to receive response to a health check from a server. Reaching the timeout means the health check failed.

integer

Minimum value: 1 Maximum value: 255

type

Select the Monitor type used by the health check monitor to check the health of the server (PING | TCP | HTTP | HTTPS).

option

-

Option

Description

ping

PING health monitor.

tcp

TCP-connect health monitor.

http

HTTP-GET health monitor.

https

HTTP-GET health monitor with SSL.