HTTP(S)
Perform an HTTP(S) request when the alert triggers.
Properties
URL
The request URL.
| Format | Description |
|---|---|
| HTTP URL | An HTTP URL to a file. |
| HTTPS URL | An HTTPS URL to a file. |
- Data type: string
- Default:
https://www.example.org/alert?name=$ALERTNAME&value=$VALUE - Configuration
- Required
CLI: (cli)> config alerting sensor-alert <key> action-options httpreq url
Request Type
The HTTP request type.
| Option | Label | Description |
|---|---|---|
get | GET | A HTTP GET request. |
post | POST | A HTTP POST request. |
patch | PATCH | A HTTP PATCH request. |
put | PUT | A HTTP PUT request. |
- Data type: string select
- Default:
get - Configuration
- Required
CLI: (cli)> config alerting sensor-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.
| Variable | Description |
|---|---|
| HOSTNAME | The system hostname |
| ALERTNAME | The name of the alert |
| PATH | The system status/configuration path |
| LABEL | The label for this alert |
| EVENT_STRING | The message produced by this alert |
| VALUE | The value that triggered the alert |
| ENTITY | The entity that trigger the alert |
- Data type: string
- Configuration
- Optional
CLI: (cli)> config alerting sensor-alert <key> action-options httpreq request-body
