Applicable for ENA v17.0 P07 upwards.
To create a custom Slack app with webhooks enabled
To forward events from Entuity to Slack
To forward incidents from Entuity to Slack
Events and incidents are forwarded to Slack using incoming webhooks from a custom Slack app that you will need to create.
To create a custom Slack app with webhooks enabled:
You will need to create a custom Slack app to set up incoming webhooks. To do so, follow these instructions provided by Slack.
Once you have created the custom Slack app and set up incoming webhooks, you can copy the webhook URL and then follow the instructions below to forward either events or incidents from Entuity to Slack.
To forward events from Entuity to Slack:
You can forward events to the Slack integration by setting up an event rule:
- Click Main Menu and then Administration.
- On the Administration page, click Event Administration.
- On the Event Administration page, click the Rules tab.
- Select Post Storage in the tree on the left, and then click Add Rule at the bottom of the window.
- This will open the Add Rule window. Ensure the Type field is set to 'Generic', and that the enabled box is ticked.
- Complete the Name and Description fields as appropriate.
- Leave the Condition field as 'None'.
- In the Action Steps section, click Add.
- This will open the Add Action window. In the Type dropdown field, select 'Send to Slack', which will update the window. In the Parameters field below, select the 'cname' parameter and click Set. This will open the Parameter Value window. Click OK.
- Select the 'path' parameter and click Set. This will open the Parameter Value window. Set the Value field to the webhook path that defines the Slack channel to which the events will be forwarded, and click OK.
- Click OK to save and close the Action Step.
- Click OK to save and add the rule. If you want to forward events to multiple Slack channels, repeat step 8 and specify the unique webhook path for each channel.
To forward incidents from Entuity to Slack:
You can forward incidents to the Slack integration by setting up an event trigger. You can configure a global trigger so that all incidents are forwarded to the server, or configure individual triggers so that only individual incidents are forwarded:
- Click Main Menu and then Administration.
- On the Administration page, click Event Administration.
- On the Event Administration page, click the Incidents tab.
- Click Edit Global Triggers at the bottom of the window.
- This will open the Edit Global Triggers window. Click Add.
- This will open the Create Trigger window. Complete the Name and Description fields as appropriate.
- Ensure that the On Transition To dropdown field is set to 'Any Change' so that all incidents raised against the same source are sent to Slack.
- In the Condition dropdown field, select 'All tests must succeed'. This will update the window. In the Tests section that appears below, click Add.
- This will open the Add Test window. In the Type dropdown field, select 'Incident Severity Test'. In the Expression dropdown field, specify the severity level you wish to forward. Click OK.
- In the Action Steps section, click Add.
- This will open the Add Action window. In the Type dropdown field, select 'Send to Slack', which will update the window. In the Parameters field below, select the 'cname' parameter and click Set.
- This will open the Parameter Value window. Set the Value field to the webhook path that defines the Slack channel to which the incidents will be forwarded, and click OK.
- Click OK to save and close the Action Step.
- Click OK to save and add the trigger. If you want to forward incidents to multiple Slack channels, repeat step 9 and specify the unique webhook path for each channel.
Comments
0 comments
Please sign in to leave a comment.