Skip to Content

How to create L7 HTTP health check policy monitor with receive string match

This article describes how to create an L7 HTTP health check policy monitor with a receive string match.

Scope

FortiADC.

Solution

Prerequisite:

Real Server pool member which can add a simple HTML script.

Step 1: In FortiADC, navigate to Shared Resources > Health Check.

In FortiADC, navigate to Shared Resources > Health Check.

Step 2: Create a new Health Check policy rule with Type HTTP or HTTPS.

Create a new Health Check policy rule with Type HTTP or HTTPS.

Step 3: In the Health Check rule Method Type, select HTTP GET method. Insert the URL of the health check string check, in the example we use /healthcheck.html. The health check HTML script is expected to be returning the string ‘Working’. The Status Code remains 200 and the Match Type is selected with Match String. Insert the Hostname if the real server webserver works only with host match content routing.

In the Health Check rule Method Type, select HTTP GET method. Insert the URL of the health check string check, in the example we use /healthcheck.html. The health check HTML script is expected to be returning the string 'Working'. The Status Code remains 200 and the Match Type is selected with Match String. Insert the Hostname if the real server webserver works only with host match content routing.

Step 4: In the real server member, the health check HTML script is added with the content ‘Working’. The health check string match monitor is case-sensitive, so it is necessary to make sure the character case is according to the health check string.

In the real server member, the health check HTML script is added with the content 'Working'. The health check string match monitor is case-sensitive, so it is necessary to make sure the character case is according to the health check string.

Step 5: Run a telnet test from the FortiADC to verify the received string.

Run a telnet test from the FortiADC to verify the received string.

Or use the Health Check Monitor test to verify the health check status.

Or use the Health Check Monitor test to verify the health check status.

Step 6: Add the Health Check policy to the HTTP real server pool config.

Add the Health Check policy to the HTTP real server pool config.

Step 7: The real server pool status of the server load balance virtual server can be viewed on the FortiView page.

The real server pool status of the server load balance virtual server can be viewed on the FortiView page.

Step 8: If the real server returns a mismatch string, the event can be viewed in the Event -> Health Check logs.

If the real server returns a mismatch string, the event can be viewed in the Event -> Health Check logs.