Skip to main content
Solved

Event orchestration rule - slack notification

  • November 22, 2024
  • 2 replies
  • 96 views

Forum|alt.badge.img

Hi,

We got a scenario where a PagerDuty incident shouldn’t be triggered but a slack notification for the event should be sent. In the service orchestration rule we have a option to pause notifications , suppress alert but nothing matches our scenario. Any thoughts or help on this will be much appreciated.

Thanks.,

Best answer by lupimiguel

Hi ​@mraja,

I think it’s possible to achieve this by combining PagerDuty Event Orchestration with Rundeck automation. Set your orchestration rule to suppress the alert (so no incident is created), and add a webhook action that triggers a Rundeck job. The Rundeck job can then send a custom Slack notification using Slack’s API or Incoming Webhooks. This way, you get notified in Slack for the event, but no PagerDuty incident is triggered.

Here’s an example Workflow

  • Event comes into PagerDuty.
  • Orchestration rule matches, suppresses the alert, and triggers a webhook to Rundeck.
  • Rundeck job runs, parses the event data, and sends a Slack notification.

Example Rundeck Job Script (Bash)

Here’s a simple example of what the Rundeck job step might look like:

#!/bin/bash

# Variables from webhook payload
EVENT_SUMMARY="${RD_OPTION_EVENT_SUMMARY}"
SLACK_WEBHOOK_URL="https://hooks.slack.com/services/your/webhook/url"

# Send message to Slack
curl -X POST -H 'Content-type: application/json' \
--data "{\"text\":\"PagerDuty Event: $EVENT_SUMMARY\"}" \
$SLACK_WEBHOOK_URL

I’ve added links to docs where it makes sense so it’s easier for you to figure a solution. Please let me know if this works for your case and have a nice day!

2 replies

lupimiguel
Forum|alt.badge.img
  • Community Manager
  • 100 replies
  • Answer
  • May 8, 2025

Hi ​@mraja,

I think it’s possible to achieve this by combining PagerDuty Event Orchestration with Rundeck automation. Set your orchestration rule to suppress the alert (so no incident is created), and add a webhook action that triggers a Rundeck job. The Rundeck job can then send a custom Slack notification using Slack’s API or Incoming Webhooks. This way, you get notified in Slack for the event, but no PagerDuty incident is triggered.

Here’s an example Workflow

  • Event comes into PagerDuty.
  • Orchestration rule matches, suppresses the alert, and triggers a webhook to Rundeck.
  • Rundeck job runs, parses the event data, and sends a Slack notification.

Example Rundeck Job Script (Bash)

Here’s a simple example of what the Rundeck job step might look like:

#!/bin/bash

# Variables from webhook payload
EVENT_SUMMARY="${RD_OPTION_EVENT_SUMMARY}"
SLACK_WEBHOOK_URL="https://hooks.slack.com/services/your/webhook/url"

# Send message to Slack
curl -X POST -H 'Content-type: application/json' \
--data "{\"text\":\"PagerDuty Event: $EVENT_SUMMARY\"}" \
$SLACK_WEBHOOK_URL

I’ve added links to docs where it makes sense so it’s easier for you to figure a solution. Please let me know if this works for your case and have a nice day!


Forum|alt.badge.img
  • Author
  • New Member
  • 1 reply
  • May 9, 2025

Hi ​@lupimiguel 

Thank you so much for sharing the documents. We will try this approach and let you know.