louislam / uptime-kuma

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

Send alert via local USB stick #4882

Open Andreik8s opened 2 weeks ago

Andreik8s commented 2 weeks ago

⚠️ Please verify that this question has NOT been raised before.

🛡️ Security Policy

📝 Describe your problem

Hi

Is there a way to send alert via a USB connected GSM stick? I cannot see any info regarding this.

Running in Docker on AlmaLinux 8.10 Thanks!

📝 Error Message(s) or Log

No response

🐻 Uptime-Kuma Version

1.23.13

💻 Operating System and Arch

AlmaLinux 8.10

🌐 Browser

Safari 17.5

🖥️ Deployment Environment

CommanderStorm commented 2 weeks ago

If you have Internet connectivity via that sick, I don't see why it would not work

Andreik8s commented 2 weeks ago

There is no net on that stick, is just a GSM device. What I mean is that the stick will be identified as a device in /dev/ttyXX and the unknown is how to tell UK to use that to send the alert?

Andreik8s commented 2 weeks ago

After digging on the internet, there is a way with a bash script but UK does not have any way to refer a path to a script in the notification section. (no script type notification). Other way can be a Webhook but a script should be also great. Maybe the next release will include this?

CommanderStorm commented 1 week ago

You are confusing me. Do you want to

If the device does not provide internet connectivity as you stated here https://github.com/louislam/uptime-kuma/issues/4882#issuecomment-2188627754, it does not make sense to route via it to access the interent. On the other hand, you somehow want to do so in https://github.com/louislam/uptime-kuma/issues/4882#issuecomment-2188821600

I am not getting what you are trying to achieve.

louislam commented 1 week ago

Use Push Monitor.

Here are some example: https://github.com/louislam/uptime-kuma/tree/master/extra/push-examples

bash-curl should be suitable for you.

minecraftchest1 commented 1 week ago

Do you mean sending a SMS message through use GSM dongle?

Andreik8s commented 1 week ago

Yes :).

Andreik8s commented 1 week ago

I found a solution using webhook, will have to test it this week sometime.