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. 36 Slack message generated by alarm handler
To enable alarms to be sent to the Slack channel, the following steps are needed.
Fig. 37 Create new Slack App
Fig. 38 Select Incoming Webhooks
Fig. 39 Activate Incoming Webhooks
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
% show environments environment alarms alarm-handlers alarm-handler slack1