Endurance

Health checks

The Health checks page holds the library of health check scripts available to the appliance. These scripts are used by the External Script health check when configuring services:

The appliance ships with a comprehensive set of built-in scripts covering many common applications and protocols. Custom scripts can also be added to support bespoke health checks.

To view the configured health checks:

  1. Using the WebUI, navigate to Cluster Configuration > Health checks.

    health checks

    The list shows the following information for each health check:

    Column Description

    Name

    The name of the health check script.

    Description

    A short description of the script’s purpose.

    Services

    The service type(s) the script applies to - Layer-7, Layer-4 and/or GSLB.

    Created by

    The origin of the script - Default for the built-in scripts supplied with the appliance, or User for scripts that have been added on this appliance.

    Usage

    Whether the script is currently referenced by a service. A script that is not assigned to any service shows Not in use.

Use the Search box above the list to filter the health checks by name or description.

Adding a health check

To add a custom health check script:

  1. Using the WebUI, navigate to Cluster Configuration > Health checks and click Add health check.

    health checks add
  2. Configure the health check:

    Field Description

    Name

    A name for the health check script. Only the characters 0-9, A-Z and a-z are permitted (no spaces or special characters).

    Description

    An optional, meaningful description of the script’s purpose.

    Services

    The service type(s) the script is intended for. Enable Layer-7 to make the script selectable by Layer 4 and Layer 7 services, and/or GSLB to make it selectable by GSLB services. At least one service must be selected.

    Script content

    The contents of the script, entered in the code editor. The exit status of the script determines whether the Real Server is considered up or down.

  3. Click Submit.

Once added, the script appears in the Health Checks list with Created by set to User and becomes available for selection in the relevant service wizards.

The code editor theme (light or dark) is set under Maintenance > Account settings.

Viewing, duplicating, editing & deleting health checks

The actions available from a health check’s three-dots menu depend on how the script was created.

Default scripts (those supplied with the appliance) cannot be modified or deleted. The menu offers:

  • View - display the script content (read-only).

  • Duplicate - create an editable copy of the script to use as the starting point for a custom check. The copy is pre-populated with the original’s description, services and script content. Specify a new Name (following the naming rules above), adjust the settings and content as required, then click Submit. The new script is added as a User script.

User scripts (those added on this appliance) can be modified and removed. The menu offers:

  • Edit - modify the script’s name, description, services and content.

  • Delete - permanently remove the script. A confirmation dialog is displayed; click Confirm to delete.