The Slack Notifier posts a message to a Slack channel. The message is a summary of the latest state of an alarm.
The slack format is built to provide a Slack compatible message. By integrating with Slack, the alarm handler will produce nicely formatted alerts when an alarm is raised or cleared.
Fig. 10 Slack message generated by alarm handler
To enable alarms to be sent to the Slack channel, the following steps are needed.
Fig. 11 Create new Slack App
Fig. 12 Select Incoming Webhooks
Fig. 13 Activate Incoming Webhooks
https://hooks.slack.com/services/T123/B123/I123
This URL needs to be used when configuring the Curity Identity Server below.
hostname = hooks.slack.com
context = /services/T123/B123/I123
To configure the Slack alarm handler, an HTTP client needs to be configured, along with the path, host and port to connect to. No authentication necessary on the HTTP client unless required by a proxy to communicate from a run-time node to Slack.
The slack alarm handler is configured under /environments/environment/alarms/alarm-handlers/alarm-handler
/environments/environment/alarms/alarm-handlers/alarm-handler
slack-notifier/web-service/hostname
hooks.slack.com
slack-notifier/web-service/port
443
slack-notifier/web-service/context
/services/T123/B123/I123
slack-notifier/web-service/http-client
% show environments environment alarms alarm-handlers alarm-handler slack1 slack-notifier { web-service { hostname hooks.slack.com; port 443; context /services/T123/B123/I123; http-client trustStoreHttpClient; } }