this post was submitted on 24 Mar 2026
54 points (96.6% liked)

Selfhosted

60093 readers
964 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.

  3. Posts here are to be centered around self-hosting. Please ensure it is clear in your post how it relates to self-hosting.

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

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require your active participation in selfhosting or related communities, or the post will be removed. No more than 10% of your posts or comments may be self-promotional, or your post will be removed. F/LOSS Exception: If your post is about a project that is completely open source & can be self-hosted in full without payment, and your account is at least 7 days old, your post is exempt from this rule as long as you continue to engage in comments.

Resources:

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

Questions? DM the mods!

founded 3 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 3 months ago* (last edited 3 months 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.