HTTP(S)

Perform an HTTP(S) request when the alert triggers.

Properties

URL

The request URL.

FormatDescription
HTTP URLAn HTTP URL to a file.
HTTPS URLAn HTTPS URL to a file.
  • Data type: string
  • Default: https://www.example.org/alert?name=$ALERTNAME&value=$VALUE
  • Configuration
  • Required

CLI: (cli)> config alerting interface-alert <key> action-options httpreq url

Request Type

The HTTP request type.

OptionLabelDescription
getGETA HTTP GET request.
postPOSTA HTTP POST request.
patchPATCHA HTTP PATCH request.
putPUTA HTTP PUT request.
  • Data type: string select
  • Default: get
  • Configuration
  • Required

CLI: (cli)> config alerting interface-alert <key> action-options httpreq request-type

Request message body

The body of the HTTP request in JSON format.

Enter the message to be sent when the alert triggers. The following variables are available for customizing the subject.

VariableDescription
HOSTNAMEThe system hostname
ALERTNAMEThe name of the alert
PATHThe system status/configuration path
LABELThe label for this alert
EVENT_STRINGThe message produced by this alert
VALUEThe value that triggered the alert
ENTITYThe entity that trigger the alert
  • Data type: string
  • Configuration
  • Optional

CLI: (cli)> config alerting interface-alert <key> action-options httpreq request-body