[GH-ISSUE #1321] Integration of Telegram or Discord for alerts #823

Closed
opened 2026-03-02 02:19:17 +03:00 by kerem · 3 comments
Owner

Originally created by @scoopdreams on GitHub (Oct 17, 2022).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1321

We have moved lots of our servers' notifications via Grafana to Telegram/Discord, in order to avoid email clutter as well as improve visibility.

Could you all consider adding an alert route towards those two platforms? Thanks!

Originally created by @scoopdreams on GitHub (Oct 17, 2022). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1321 We have moved lots of our servers' notifications via Grafana to Telegram/Discord, in order to avoid email clutter as well as improve visibility. Could you all consider adding an alert route towards those two platforms? Thanks!
kerem 2026-03-02 02:19:17 +03:00
Author
Owner

@joeldeteves commented on GitHub (Oct 24, 2022):

You can do this using the TacticalRMM API and an integration such as Zapier, N8N, etc.

Have you considered looking into any of these options?

IMO the platform shouldn't be bloated with integrations for various alert platforms - it already supports SMS and email as well as an API which covers virtually all use cases (you can use it with any alert platform you want).

<!-- gh-comment-id:1289307243 --> @joeldeteves commented on GitHub (Oct 24, 2022): You can do this using the TacticalRMM API and an integration such as Zapier, N8N, etc. Have you considered looking into any of these options? IMO the platform shouldn't be bloated with integrations for various alert platforms - it already supports SMS and email as well as an API which covers virtually all use cases (you can use it with any alert platform you want).
Author
Owner

@bradhawkins85 commented on GitHub (Oct 24, 2022):

You can use the script below for Discord alerts:

param (
  [string] $alerttime="",
  [string] $alertmessage="Device Offline",
  [string] $alertseverity="Critical",
  [string] $alertstatus
)

$hookUrl = 'https://discord.com/api/webhooks/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

$content = @"

$alertstatus - $alertmessage
  
"@

$payload = [PSCustomObject]@{

    content = $content

}

Invoke-RestMethod -Uri $hookUrl -Method Post -Body ($payload | ConvertTo-Json) -ContentType 'Application/Json'

Use the script arguments below to change the content of the notification:
image

<!-- gh-comment-id:1289790697 --> @bradhawkins85 commented on GitHub (Oct 24, 2022): You can use the script below for Discord alerts: ``` param ( [string] $alerttime="", [string] $alertmessage="Device Offline", [string] $alertseverity="Critical", [string] $alertstatus ) $hookUrl = 'https://discord.com/api/webhooks/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' $content = @" $alertstatus - $alertmessage "@ $payload = [PSCustomObject]@{ content = $content } Invoke-RestMethod -Uri $hookUrl -Method Post -Body ($payload | ConvertTo-Json) -ContentType 'Application/Json' ``` Use the script arguments below to change the content of the notification: <img width="398" alt="image" src="https://user-images.githubusercontent.com/15325110/197651309-a4081867-1bc8-4688-b7d0-266451d785a5.png">
Author
Owner

@scoopdreams commented on GitHub (Oct 25, 2022):

Thanks for this! Ah yes I did not realise Tactical allows for custom direct API calls. That will work very well for notifications via almost any platform. Appreciate the assistance and will close this feature request.

<!-- gh-comment-id:1289879474 --> @scoopdreams commented on GitHub (Oct 25, 2022): Thanks for this! Ah yes I did not realise Tactical allows for custom direct API calls. That will work very well for notifications via almost any platform. Appreciate the assistance and will close this feature request.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#823
No description provided.