Skip to main content

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.,

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!


Hi ​@lupimiguel 

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


Reply