How to get a phone notification if my VPS goes offline?
from oeuf@slrpnk.net to selfhosted@lemmy.world on 24 Mar 20:35
https://slrpnk.net/post/35723833

What are my options for getting alerts on my android phone if services on my VPS becoming unresponsive?

My first thought is a simple app that periodically pings domains and gives a notification if any fail. Is there an open source app for that?

Or something else?

#selfhosted

threaded - newest

AbidanYre@lemmy.world on 24 Mar 20:48 next collapse

Uptime Kuma has a number of notification options.

I just had to set one up because the Oracle free tier is hot garbage and needs resetting every day or two.

wreckedcarzz@lemmy.world on 24 Mar 21:09 next collapse

This is what I use, though I run it on a local server that checks services that it runs (update breaks something, etc) and then also reaches out to the vps (and more) for status checks. Have it check services that are accessible by an access control rule, so the server is protected but you have updates on exactly what is having issues.

comrade_twisty@feddit.org on 24 Mar 21:10 next collapse

I use uptime Kuma with signal-cli for notifications - it’s been rock solid. I also have another uptime kuma instance that uses email as notification option to monitor my primary uptime kuma and the signal-cli.

thirdBreakfast@lemmy.world on 24 Mar 22:31 collapse

+1 for Uptime Kuma, I use it with ntfy. If OP doesn’t want a self hosted solution, there’s UptimeRobot - essentially SAAS Uptime Kuma, but with a free tier.

Appoxo@lemmy.dbzer0.com on 25 Mar 06:59 collapse

Same here. Run it on my VPS to test my outside reachability and inside to check against my VPS.

WIPocket@lemmy.world on 24 Mar 20:49 next collapse

I recommend the free tier of healthchecks.io for this. I have all of my in-depth monitoring selfhosted, but use this as a general “is it at least online” check that tells me on multiple platforms if it isnt.

mhzawadi@lemmy.horwood.cloud on 24 Mar 20:49 next collapse

just going to put this here github.com/awesome-selfhosted/awesome-selfhosted?…

Decronym@lemmy.decronym.xyz on 24 Mar 21:20 next collapse

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters
ESXi VMWare virtual machine hypervisor
HTTP Hypertext Transfer Protocol, the Web
VPS Virtual Private Server (opposed to shared hosting)

3 acronyms in this thread; the most compressed thread commented on today has 3 acronyms.

[Thread #191 for this comm, first seen 24th Mar 2026, 21:20] [FAQ] [Full list] [Contact] [Source code]

realitaetsverlust@piefed.zip on 24 Mar 21:47 next collapse

There’s a lot of options. There’s countless paid services that offer exactly that.

If you wanna build something yourself for free, you could probably set up a site accessible via HTTP on your server and create a script on your phone that pings it every 30 seconds or so. Afaik, termux has a termux-notification function that lets you send a notification.

Codewise, it would look somewhere like this I think:

#!/usr/bin/env bash  

# Config 
NOTIFY_TITLE="Server Alert"  
NOTIFY_MESSAGE="Server returned a non‑200 status."  

HOST="funnysite.com"  
PORT=8080  
PATH="/healtcheck"  

URL="http://${HOST}:${PORT}${PATH}"  
# Config  

HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" "$URL")  

if [[ "$HTTP_CODE" != "200" ]]; then  
    termux-notification -t "$NOTIFY_TITLE" -c "$NOTIFY_MESSAGE $HOST:$PORT"  
fi  

exit 0  

Afaik, termux doesn’t ship the cron daemon, but you can install cronie or use an external task scheduler. There, just set to run the script every 60 seconds or so. Whatever you need.

I haven’t tested anything of this, but in my head, it sounds like it should work fine.

LodeMike@lemmy.today on 24 Mar 22:40 next collapse

Cron job and termux-notify

stratself@lemdro.id on 25 Mar 04:05 next collapse

Ntfy can send/receive notifications to/from the phone. You can selfhost it or use a public instance. For the healthcheck app, consider Uptime Kuma as it has ntfy integration. But a simple cron script that monitors + cURLing ntfy when it fails could also be used.

Schlemmy@lemmy.ml on 25 Mar 06:56 collapse

Ntfy is a good lightweight option indeed.

ikidd@lemmy.world on 25 Mar 04:15 next collapse

Uptime Kuma and a VOIP subscription that lets you send webhooks.

mhzawadi@lemmy.horwood.cloud on 25 Mar 06:43 next collapse

I run nagios and use pushover, over kill for what I monitor but it’s what I know

Appoxo@lemmy.dbzer0.com on 25 Mar 06:58 next collapse

Uptime Kuma and a notification provider.
I use telegram because it has an easy way to set up bots.

HelloRoot@lemy.lol on 25 Mar 07:08 next collapse

f-droid.org/…/com.manimarank.websitemonitor

Strit@lemmy.linuxuserspace.show on 25 Mar 13:05 collapse

If you don’t have another server, this is likely your best option. It’s a simple app, that pings the website on a given interval and gives an app notification if it can’t reach it.

Coleslaw4145@lemmy.world on 25 Mar 13:29 collapse

Set up Uptime Kuma on the VPS to monitor services there. Uptime Kuma can send you a notification if any of them become unresponsive.

Then use Healthchecks.io to monitor the VPS itself and Uptime Kuma.

You can set up to 20 monitors on the free tier with healthchecks.io.

Its a push monitor, so if the VPS/Uptime Kuma doesnt reach out to say its alive within the designated time interval you’ll get a notification, like a sort of dead man switch.

Theres a load of notification options for both healthchecks and Uptime Kuma including email, discord, ntfy, etc, etc.

This way you have no need for a seperate self hosted server, and you get healthchecks on yo healthchecks.