We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Notifications via Slack

Checkmk Manual
Last updated: August 14 2020

Related articles

Search in the manual

1. Function

With the Slack Messenger you can conveniently receive notifications via a webhook. This works on self-hosted or rented servers, as well as via the free public Slack service.

2. Configuring Slack

To activate webhooks and create a new webhook, you must first create a Slack App. Log in to Slack and create a Workspace. Then proceed as follows:

  1. Create a new app via this link using the Slack API.
  2. Assign any name you like and choose your workspace.
  3. In the next dialog choose Incoming Webhook as the app function.
  4. Next activate webhooks by setting the switch to on.
  5. Create the webhook with the Add New Webhook to Workspace button.
  6. Finally, set the channel (group) where the app should post to, and confirm the rights request.

For testing purposes, on completion you will receive a curl statement which posts Hello World to the desired channel. Copy the Webhook URL and switch to Checkmk.

3. Configuration in Checkmk

The configuration in Checkmk requires only the specification of the webhook URL copied above:

  1. For the Notification Method select Slack or Mattermost.
  2. Enter (insert) the copied Web Hook URL.

Optionally, you may specify URL prefixes to control links on your Checkmk GUI within the notification. Instead of specifying the webhook URL directly here, you can also use WATO's password store and read the URL from one of its entries.

For testing you can use the Fake check results and Custom notification commands.