---
title: "Delivering alarms to Slack and Telegram"
description: "Step-by-step setup of Slack incoming webhooks and Telegram bots as NetSense alarm relays, including per-zone and per-partner routing and delivery troubleshooting."
---

> Documentation Index
> Fetch the complete documentation index at: https://netsense-nms.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Delivering alarms to Slack and Telegram

A **relay** is a channel that delivers NetSense alarms to your team. NetSense supports
Slack, Telegram, Alerta and generic webhooks. A relay is configured once under **Alarms →
Alarm Relays** and then attached to any alarm definitions that should use it; an alarm can
notify several channels at once.

This guide walks through the two most popular options. Both can run side by side, so teams
often keep Telegram for one audience and Slack for another.

## Slack

Slack delivery uses **incoming webhooks**. One webhook posts to one channel, so create a
webhook for each channel you want alarms in.

1. If you don't use Slack yet, create a free workspace, the free tier is enough.
2. Create the channel that should receive alarms, e.g. `#alerts`.
3. Go to [api.slack.com/apps](https://api.slack.com/apps) and choose **Create an App →
   From scratch**. Name it something recognizable, e.g. "NetSense Alerts", and pick your
   workspace.
4. In the app's settings open **Features → Incoming Webhooks** and switch them on.
5. Click **Add New Webhook to Workspace**, select your alarms channel, and confirm.
6. Copy the generated webhook URL (it starts with `https://hooks.slack.com/services/...`).
7. [Create the relay in NetSense](#create-the-relay-in-netsense) with relay type **Slack**,
   or send the URL to NetSense support and we configure the relay for you.

Repeat steps 5-7 with another channel for each additional destination (for example a
separate channel per region or per team).

:::caution
Treat webhook URLs like passwords: anyone who has the URL can post to your channel. Share
them privately.
:::

## Telegram

Telegram delivery uses a **bot** that posts into your group.

1. Create a bot with Telegram's **@BotFather** (`/newbot`) and note the bot token, or ask
   NetSense support to provide a ready-made bot for your tenant.
2. Create the Telegram group that should receive alarms.
3. **Add the bot to the group.** This is the step most often missed, and without it
   NetSense cannot post. An enabled relay sends a test message when you create it, so a
   missing bot shows up as a save error. If the bot is removed later, the relay's
   **Delivery** chart shows the failures.
4. Get the group's **chat ID**. Group chat IDs are negative numbers (often starting with
   `-100...`).
5. [Create the relay in NetSense](#create-the-relay-in-netsense) with relay type
   **Telegram**, the bot token and the chat ID, or send both to support.

One bot token is enough for any number of groups: create more groups, add the same bot to
each, and configure a relay per chat ID.

:::note
Telegram availability depends on your country. During the June 2026 nationwide block in
India, customers' Telegram alarm bots went silent overnight; Slack made a good drop-in
replacement, and the two can run in parallel permanently. Discord is not currently
integrated.
:::

## Create the relay in NetSense

1. Go to **Alarms → Alarm Relays** and click **Add a relay**. You need permission to edit
   alarm definitions.
2. Pick the **Relay Type** (Slack, Telegram, Alerta or Webhook), and give it a **Name** and
   an optional **Description**.
3. Choose the **Event Types** to send: **OPENED** when an alarm is raised, **CLOSED** when it
   clears, **REMINDER** every 2 hours while an alarm stays open and unacknowledged.
4. Enter the channel details: the Slack **Webhook URL**, or the Telegram **Bot Token**,
   **Chat ID** and **Time Zone** (used for the times in the messages).
5. Press **Test** to send a test message, then save.
6. Open the saved relay again and pick its **Alarm Definitions**. You can also add the relay
   from each definition's **Relays** section.

A relay can be disabled with its **Enabled** switch without deleting it. The relay's page
has a **Delivery** section with charts of delivered and failed messages, retries and
processing time.

## Routing alarms to different channels

Beyond "everything to one channel", relays can route by device grouping:

- **Zone ID**: route alarms for a zone (a region, city or POP grouping) to its own channel.
- **Partner ID**: route alarms for devices tagged with a partner (for example a local cable
  operator or franchisee) to that partner's dedicated group.

Rules are processed **Partner ID first, and processing stops on a match**, so a
partner-tagged device alarms only in the partner channel and doesn't duplicate into the
zone channel.

A common pattern for operators working with local partners: tag each partner's devices with
a Partner ID, create one Telegram group per partner with the bot added, and each partner
sees only their own alarms.

## If alarms don't arrive

- **The bot or webhook isn't actually in the target group/channel.** This is the most
  common cause by far: re-add the bot to the Telegram group, or re-check which channel the
  Slack webhook posts to.
- **Give it a couple of minutes.** Alarms fire on the next polling cycle after a condition
  becomes true (plus any alarm delay you configured), not at the same second.
- **The condition doesn't raise the alarm you expect.** A manually shut (admin-down) port
  reports status Disabled, not Down, so port-down alarms ignore it by design. Create a
  definition that matches status Disabled if you want to hear about it.
- **Check the relay's Event Types.** A relay without CLOSED never sends clears; one without
  REMINDER never repeats. Acknowledged alarms get no reminders.
- **Check the relay state.** Open the relay under **Alarms → Alarm Relays**: its
  **Delivery** chart shows delivered and failed messages and retries. The **Enabled**
  column on the relay list, and the selector in the alarm definition's Relays section, show
  whether each relay is currently running.

For what gets sent (raise, clear and periodic reminders) and how to attach relays to alarm
definitions, see [Creating alarm definitions and rules](https://netsense-nms.com/docs/guides/alarm-definitions/).

Source: https://netsense-nms.com/docs/guides/alarm-relays/index.mdx
