Creating a Webhook in Slack
- Navigate to Slack’s Custom Integrations page and log in to your team’s account.
- Select Incoming WebHooks, and then click Add Configuration.
- Choose or create a new Slack channel to receive the monitoring alerts. Notifications can be configured such that they are sent to users as a direct message.
Note: This only creates a default channel. Alerts can be set up for multiple channels and/or users in the NS1 portal. (See below for details.) - Select Add Incoming WebHooks integration to generate WebHook URL, which will be copied into the NS1 portal (see below).
Setting Up Notifications in the NS1 Portal
- Navigate to a monitoring job and click the Notifiers tab.
- Assign an existing notification list to this monitoring job (if one is not attached already) or simply add a new notifier. Read more about setting up notification lists.
- Click Add Notifier, and Slack from the drop-down menu.
- Enter the Slack channel or user to which the notifications should be delivered.
Keep in mind:
- This does not need to match the channel entered when creating Slack WebHook. Channels entered in NS1 portal will override.
- Notifications can be sent to Slack channels and/or users. Be sure to include @ or #.
- Multiple notifications can be sent simultaneously to different channels and/or users - Copy and paste the WebHook URL from Slack.
- Enter a name for the notification in the Slackbot username field.
- Click Save Notifier.
Alerts are sent to Slack whenever the up/down status changes for a monitor assigned to the same notification list. This can be updated in the Monitors section of the NS1 portal.
Slack notification include: monitor name, region, up/down status and timestamp.