louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
59.74k stars 5.34k forks source link

Synology Chat Notification #1160

Open cristacheda opened 2 years ago

cristacheda commented 2 years ago

⚠️ Please verify that this feature request has NOT been suggested before.

🏷️ Feature Request Type

New Notification

🔖 Feature description

Add Synology Chat notification type.

✔️ Solution

Here is the required parameters https://kb.synology.com/en-in/DSM/help/Chat/chat_integration?version=6

❓ Alternatives

Or allow custom parameters for the Webhook notification.

📝 Additional Context

No response

halfu commented 2 years ago

I search on internet for hours to debug synology chat webhook incoming. I finally found this: https://www.synology-forum.de/threads/chat-webhook-mittels-curl.106784/post-972226

In brief, when testing with curl, add single quotation marks on both side of the webhook URL, it works. For examble : curl -X POST \ --data-urlencode 'payload={"text": "This is a test"}' \ 'http://192.168.1.100:5000/webapi/entry.cgi?api=SYNO.Chat.External&method=incoming&version=2&token='

I think this maybe useful.

dannymertens commented 1 year ago

I search on internet for hours to debug synology chat webhook incoming. I finally found this: https://www.synology-forum.de/threads/chat-webhook-mittels-curl.106784/post-972226

In brief, when testing with curl, add single quotation marks on both side of the webhook URL, it works. For examble : curl -X POST --data-urlencode 'payload={"text": "This is a test"}' 'http://192.168.1.100:5000/webapi/entry.cgi?api=SYNO.Chat.External&method=incoming&version=2&token='

I think this maybe useful.

OK maybe I'm missing something here, the command above works in a terminal but how can I add this as a notification, tried it but always get an error as I test it. To be honest, I'm completely new to this so probably my own stupid mistake, so some help is very appreciated!

Thanks in advance!

Kind regards, D

MDevil commented 1 year ago

would be really nice to have integration for Synology Chat, or adapt the current webhook parameters to allow custom ones. The current additionnal header is not providing this functionnality

GymNut commented 1 year ago

I've built a docker container as an intermediary, it receives the webhook from uptime-kuma and forwards to Synology Chat. https://hub.docker.com/r/timblack/webhookrelay
Works for me :)

CommanderStorm commented 1 year ago

Ref: https://github.com/louislam/uptime-kuma/issues/1734 => feature request wanting templatable urls for webhooks

maxXx1 commented 1 month ago

Is there a workaround to make it work or will it still have to wait for integration?