this post was submitted on 14 Jun 2023
28 points (91.2% liked)

Selfhosted

37782 readers
397 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.

Resources:

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

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

cross-posted from: https://discuss.ntfy.sh/post/3200

I use ntfy (on another instance) + healthchecks.io to wake me up at night when ntfy.sh is down (crazy inception, right?). It's the "poor man's PagerDuty" if you will. It works amazingly.

Here's how I set it up:

  • I signed up healthchecks.io (free plan) and configured a project for "ntfy.sh" with a "ntfy" integration, i.e. publish to ntfy.example.com/<secret> with max priority
  • I have two different hosts execute small "integration ntfy.sh tests" and only ping healthchecks.io if they succeed. If they don't healthchecks.io will publish to ntfy.example.com/<secret>
  • In the ntfy Android app, I subscribe to ntfy.example.com/<secret>, enable "Keep alerting on highest priority", and make it override DND (do not disturb) for this topic.

Now when ntfy.sh goes down, the integration tests in the cronjobs will fail, and so healthchecks.io will not be pinged, which will trigger it to publish to ntfy.example.com/<secret> and let my phone consistently ring until I acknowledge it.

(Disclamer: I am the maintainer of ntfy. Hope posting this is fine. Happy to answer questions; I also have a brand new ntfy community, feel free to join)

top 17 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

I self-host and use uptime-kuma to notify me over Telegram, works :tm: tho healthchecks.io for backups are great, use them with borgmatic.

[–] [email protected] 4 points 1 year ago (1 children)

Because of this thread, I signed up to healthchecks.io and configured it with gotify - similar to ntfy, I guess. Have a cron job checking my Lemmy instance is returning 200 every 15 minutes and then pinging healthchecks.

[–] [email protected] 3 points 1 year ago (1 children)

Gotify is great, but it can't override DND and wake you up at night. I suppose not many people want to do that anyway, haha. Only crazy me wants to be on call forever and all the time.

[–] sporif 3 points 1 year ago (1 children)

Why can't it override DND? In the notifications settings you set that for each type of message.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

Wrong choice of words. What I meant was that you cannot have your alert ring consistently AFAIK. ntfy has an option to play the alert forever until you ACK it, which is very useful when you're sleeping or in a loud environment.

Maybe Gotify can do that too; though I was under the impression that it cannot. I've never used it so I don't know. 🙃

[–] cyps 3 points 1 year ago (1 children)

I just have to say, I really love ntfy.

Years ago I used an app called simplepush, even bought the premium key. Installed it half a year ago and now they've changed to a yearly subscription. Fair enough. So I thought about throwing something together in python just to replicate the functionality just for my personal use... but luckily I searched and found ntfy first.

Really appreciate the work.

[–] [email protected] 3 points 1 year ago (1 children)

Thank you for the kind words. Feel free to recommend ntfy to your (nerd) friends if you like, haha.

[–] [email protected] 3 points 1 year ago (1 children)

Oh wow it's the man himself! Have to say you've put together an amazing piece of software! It has become an amazing tool in my alerting infrastructure. Thank you! for the wonderful project

[–] [email protected] 3 points 1 year ago

Thank you my friend ☺️ Glad you like it.

[–] [email protected] 2 points 1 year ago

@binwiederhier I love the idea. I am always on call for my work so this would fit right in with my schedule 🤣

[–] JoeKrogan 2 points 1 year ago

Using healthchecks with signal and email. Its great.

[–] [email protected] 2 points 1 year ago (1 children)

lmao i won't lie, your meme looks like one of the recent reddit ads for a saas service xD

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (1 children)

Except that you can selfhost both healthchecks.io and ntfy.sh; and you can't selfhost reddit or any of the services they advertise, haha

[–] [email protected] 5 points 1 year ago (1 children)

it's true :3 ntfy has been on my to-do to test out in my home lab. thank you for your service!

[–] [email protected] 7 points 1 year ago (1 children)

I thought the post was timely since the alert triggered today. The ntfy server was DDoS'd today and I got alerted pretty much instantly. It was quite nice.

[–] [email protected] 3 points 1 year ago

must feel extra godly to see all your hard work perform exactly as hoped 💙

[–] [email protected] 2 points 1 year ago

I'm saving this for later

load more comments
view more: next ›