louislam / uptime-kuma

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

[Feature] Telegram /status command where it returns a full list with all the hosts. #880

Open AlexM800 opened 2 years ago

AlexM800 commented 2 years ago

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

🏷️ Feature Request Type

UI Feature, Other

🔖 Feature description

I personally use multiple monitors (~50) some hosts go down for a few mins when it comes back it is hard to follow all the hosts that got down on telegram without login in into the website to check if there are any that are still down.

✔️ Solution

A telegram (/status) command where it responses with a list of all hosts one after another on each row in a message which are currently up / down as.

✔️Host1 ✔️Host2 ❓ Host3

❓ Alternatives

Re-sending a notifications for the ones that are still down after X amount of time.

📝 Additional Context

Hey Louis, thanks to you and to all contribuitors for the hard work with the uptime-kuma I must say I really love it.

deefdragon commented 2 years ago

This is an unfortunately difficult task. The way that notifications are currently sent out is in a push only manner. As such, there is no way for UK to listen for the /status command and respond with the relevant data. It might have been possible if telegram let you pre-program a command's response, but it appears that that is not the case.

Were the API (#118) in place, it would be possible to program your own bot, but that is less than ideal, even if it was.

Back and forth communication is something to considered for long-term future versions of UK.

As for re-sending a notification, there are a number of linked issues around notification options, including re-sending notifications, at #233

DatDraggy commented 2 years ago

@deefdragon Telegram can send webhooks. Technically that could be an easy way to listen for the command. I might give this request a go myself when I can find some time

MichelBaie commented 2 years ago

Such a good idea

CommanderStorm commented 10 months ago

Related #1534 #576