Skip to content

Webhooks ​

Send alerts to any HTTP endpoint.

Configuration ​

  1. Navigate to Admin → Integrations → Webhooks
  2. Click Add Webhook
  3. Configure endpoint

Settings ​

FieldDescription
URLWebhook endpoint
MethodHTTP method (POST)
HeadersCustom headers
TemplateJSON payload template

Template Variables ​

VariableDescription
{​{alert_type}}Type of alert
{​{agent.hostname}}Agent hostname
{​{agent.uuid}}Agent UUID
{​{message}}Alert message
{​{severity}}Alert severity
{​{timestamp}}ISO timestamp

Examples ​

Slack ​

text
{
  "url": "https://hooks.slack.com/services/XXX/YYY/ZZZ",
  "template": {
    "text": ":warning: *{​{alert_type}}*\nHost: {​{agent.hostname}}\n{​{message}}"
  }
}

Discord ​

text
{
  "url": "https://discord.com/api/webhooks/XXX/YYY",
  "template": {
    "content": "**Alert**: {​{alert_type}}\nAgent: {​{agent.hostname}}\n{​{message}}"
  }
}

Microsoft Teams ​

text
{
  "url": "https://outlook.office.com/webhook/XXX",
  "template": {
    "@type": "MessageCard",
    "themeColor": "FF0000",
    "title": "{​{alert_type}}",
    "text": "{​{message}}"
  }
}

Testing ​

Click Test Webhook to send a test notification.

Released under the MIT License.