Sending data to a Slack channel

This documentation references external sources. Nexthink does not have control over the accuracy of third-party documentation, nor any external updates or changes that might create inconsistencies with the information presented on this page. Please report any errors or inconsistencies to Nexthink Support.

This document demonstrates how to send data to a Slack channel, using Nexthink webhook capability, to stand out from other messages in the channel.

In Slack

  • Create a new slack app in the workspace where you want to post messages.

  • From the Features page, toggle Activate Incoming Webhooks on.

  • Click Add New Webhook to Workspace.

  • Pick a channel that the app will post to, then click Authorize.

An example of the URL would be: https://hooks.slack.com/services/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

In Nexthink

Configure the Webhook Credential

  • Click on Connectors and select the Webhook Credentials entry:

    • Fill in the page fields with the following values: Instance Name: <name of your credential> Instance URL: https://hooks.slack.com/ Authorization*: BASIC Username*: test Password*: test

*These fields are not necessary when configuring Incoming Webhooks. For the time being, insert the values as shown above. A “No Auth” option will be provided soon.

Create the Webhook

  1. Fill in the Name and Description (optional).

  2. Fill in the NQL Conditions following the Configuring webhook NQL conditions documentation.

  3. Select the Credential name configured in the section above.

  4. Fill in the Method, Resource, and Payload:

  5. Send Test to make sure the message is pushed into Slack.

Last updated