How can I receive alerts via Slack?

kwestgate
kwestgate
  • Updated

By using Foreman Todd, our Slack bot, you'll get notified as soon as problems arise.

Getting Started

To receive alerts via Slack, you'll first need to re-configure your Foreman triggers.  By default, all notifications are sent to your email address.

Default notification destination.

Notifications can be sent to any combination of the following:

  • Email
  • Discord
  • Telegram
  • Slack
Notification destination changed to Slack.

You'll also need to fetch your Foreman API credentials.  Those can be found here:

API information found under 'My Account' in Foreman.

Receiving Alerts in a Channel

Once your triggers are configured to send alerts to Slack, install Todd, our bot, by clicking here. You should see something like the following:

Install Todd on your workspace.

Make sure to select the workspace where you want Todd to send your alerts.  Click the Allow button to complete installation.  If the install is successful, you should land back at this page. If you're new to Slack and would like to read more on workspaces and channels, you can find more info here.

After opening Slack, you should see Todd listed under apps.

Todd is present in the workspace.

You'll want to add Todd to the channels where you want to be notified. To do this, right click on the desired channel, then left click View channel details.

Adding an app.

Now, click the integrations tab at the top, followed by the Add an App button.

Adding an app under the Integrations tab.

Clicking Add an App will take you to the Slack app director where you'll see Todd under 'In your workspace.'

Todd in the Slack App Directory.

After clicking the Add button, you should get a confirmation message in your channel.

Todd joining the channel.

Once he's invited, you can see all available /slash commands by typing /foreman_help.

Todd's help results.

To begin registering, type /foreman_start. Todd will ask you for your client ID and API key. You should have those handy from the Getting Started steps above.

Beginning the notification process.

Type /foreman_register and enter in your client ID and API key that you obtained in the Getting Started steps above.  As an example, assuming a client ID of 1024 and an API key of 39bffdea-2169-46eb-9407-adf8ba678c3f, I'd enter /foreman_register 1024 39bffdea-2169-46eb-9407-adf8ba678c3f.

From here on out, depending on the triggers created in Foreman, Todd will let you know when things happen.

Foreman Todd notifications.

To stop the alerting, type /foreman_forget.

Please find our privacy policy here.

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.