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.
- If you don’t use Slack yet, create a free workspace, the free tier is enough.
- Create the channel that should receive alarms, e.g.
#alerts. - Go to api.slack.com/apps and choose Create an App → From scratch. Name it something recognizable, e.g. “NetSense Alerts”, and pick your workspace.
- In the app’s settings open Features → Incoming Webhooks and switch them on.
- Click Add New Webhook to Workspace, select your alarms channel, and confirm.
- Copy the generated webhook URL (it starts with
https://hooks.slack.com/services/...). - 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).
Telegram
Telegram delivery uses a bot that posts into your group.
- 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. - Create the Telegram group that should receive alarms.
- 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.
- Get the group’s chat ID. Group chat IDs are negative numbers (often starting with
-100...). - 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.
Create the relay in NetSense
- Go to Alarms → Alarm Relays and click Add a relay. You need permission to edit alarm definitions.
- Pick the Relay Type (Slack, Telegram, Alerta or Webhook), and give it a Name and an optional Description.
- 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.
- 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).
- Press Test to send a test message, then save.
- 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.