Get alerted about data center outages with Slack

 Originally published on October 29, 2021 by Jasmin Kahriman
Last updated on January 23, 2024 • 10 minute read

With 12 million active users daily and 156,000 organizations subscribed to the app (in 2021), Slack is one of the most popular and rapidly growing apps to connect teams, unify their systems, and drive their business forward. It is integrated into the Paessler PRTG  monitoring notification system, which means, in the case of data center outages, PRTG can trigger notifications and send them directly to the Slack channel(s) you want. This sounds convenient, doesn't it? There are also many other notification types you can try, which we covered in other articles that are listed at the end of this article.

hubspot-workflow_datacenter_blog

The first step is to ensure the right person or team gets the right notifications. My colleague, Michael, wrote a great article about it. 

Setting up Slack and integrating it with PRTG is a pretty straightforward procedure. Let’s do it together.

Step 1: Create a webhook

In order to get notifications from PRTG to Slack, you first need to create an incoming webhook in Slack. The incoming webhook URL will later be used in the PRTG notification template (step 2).

  1. Log in to Slack.
  2. Go to this LINK, choose a channel where your incoming webhook will post messages to, and then click Add Incoming WebHooks Integration to create an incoming webhook URL. In my case, it is „data-center-eu“. This means, in case of any outages in my data center in Europe, PRTG will send notifications to this channel. 

Slack1_Create incoming webhook

    3. Copy the webhook URL to the clipboard and start with Step 2.
Slack2_Webhook URL

Step 2: Create a notification template

In the second step, you need to create a notification template that sends notifications from PRTG to Slack. Open your PRTG web UI and follow these instructions.

  1. Navigate to Setup > Account Settings > Notification Templates > Add Notification Template.
  2. Define the notification name and other parameters (schedule, notification summarization, and access rights). For testing purposes, I kept the default settings.

Slack3_Create notification template

    3. Scroll down and enable Send Slack Message.
    4. Enter the URL of the incoming webhook you created in Step 1 and click Save.

Slack4_Enable Slack notification template

Ready for Step 3?

Step 3: Create notification trigger(s)

Notification triggers define when PRTG will send a notification to an IT Admin. You can define notification triggers on different levels in your device three, from Root > Probe > Group > Device to sensor. In my case, I did it on my remote probe „Data Center EU“.

PRTG supports five notification triggers, including state trigger, speed trigger, threshold trigger, and change trigger. The state trigger performs a notification when a sensor changes its status. The speed trigger performs a notification if the speed that a sensor monitors changes. The volume trigger performs a notification if a sensor reaches a certain volume at a specific time. The threshold trigger performs a notification if a sensor reaches specific values. The change trigger performs a notification if a compatible sensor's value changes. According to the screenshot below, PRTG will trigger a Slack notification if the sensor is in a down state for at least 30 seconds.

Slack5_Create notification trigger

That's it. You can test notifications and/or simulate an error to see if PRTG sends a notification to your Slack channel or not. In my case, it works like a charm.

Slack6_in action

Other notification-related articles worth reading:

I am looking forward to reading your comments. What notification template(s) do you prefer to use?