this post was submitted on 24 Mar 2026
52 points (96.4% liked)

Selfhosted

56953 readers
1019 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] realitaetsverlust@piefed.zip 3 points 2 days ago* (last edited 2 days ago)

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.