ntfy.sh : self-hostable notifications
-
@timconsidine Yeah, if you install our Server Monitor App, it also has that feature to send alerts via TG, Discord, etc..
-
@fbartels if you have multiple cloudrons you could have each monitor each other.
alternatively you could reverse monitor a single one by having something elsewhere consume liveness messages/notifications so you know when they stop.
Easier to just use one of the free monitoring services to check your services externally.
-
@robi said in ntfy.sh : self-hostable notifications:
our Server Monitor App
Which app is that exactly?
@robi said in ntfy.sh : self-hostable notifications:
each monitor each other.
yeah, if you want to be serious about monitoring then it should run with a different provider and in a different region than the rest of your stack. Or even better pay someone else to host a geo distributed monitoring for you.
For my own use case Uptime Kuma is quite sufficient and can also send notification via Telegram.
-
I have made a first bash at packaging ntfy.sh for cloudron.
Some issues remain but seems useable.
Will be testing further.Available at https://git.cloudron.io/timconsidine/ntfy-for-cloudron
-
Use case example :
To get a daily report on status of a VPS (non-cloudron), abash script
is run bycron
:#!/bin/bash echo 'MyDocker' > /root/ntfy-msg.txt date >> /root/ntfy-msg.txt if [ -f /var/run/reboot-required ]; then cat /var/run/reboot-required >> /root/ntfy-msg.txt fi df -h / >> /root/ntfy-msg.txt docker container ls --format 'table {{.Status}}\t{{.Names}}' >> /root/ntfy-msg.txt curl ntfy.sh/xxxxxxx -T /root/ntfy-msg.txt
which gives this :
MyDocker Mon May 9 08:33:43 UTC 2022 Filesystem Size Used Avail Use% Mounted on /dev/sda2 473G 32G 418G 7% / STATUS NAMES Up 2 days audiobookshelf Up 2 days penpot_penpot-postgres_1 Up 2 days penpot_penpot-redis_1 Up 2 days nitter Up 2 days nitter-redis Up 2 days (healthy) netdata Up 2 days budibase_proxy-service_1 ..... etc,
-
@timconsidine you are on a roll, I will look into both your packages this week. Thanks!
-
@timconsidine do you think you can add a LICENSE file to both your repos? We just use MIT license for our other packages, but any open source license will do.
-
@fbartels said in ntfy.sh : self-hostable notifications:
Which app is that exactly?
-
@timconsidine Thank you for your packaging efforts. You must be becoming better and better at it. I hope you become so good at it soon that it becomes a cinch for you to do most things!
-
@LoudLemur you're too kind. I'm an amateur, just doing the easy stuff, but learning. More productive than sudoku to ward off dementia
-
Came searching for ntfy.sh and was not disappointed! I've been keeping track of this project's progress with their updates on r/selfhosted and it looks like they just released the first version of the iOS app!
Is this image being kept up to date with releases? I think the server.yml file can be adjusted to automatically grab the
CLOUDRON_APP_ORIGIN
env variable so the user doesn't have to update it after install. Would love to see this published since it seems like it's already pretty close to the finish line. Let me know if I can help with getting this across! -
@thetomester13 : I haven't kept it up to date, but I will do so in my repo.
Good news on the iOS app - will check it out
EDIT : Just checked my self-package repo and I see that it just runs
apt install ntfy
into the base container.
So for fresh installs you get the latest deployed apt package.For updates of previously deployed instances, I am not sure. Will try and learn.
-
@thetomester13 good point on the
base_url
Feel free to do a proper packaging.
Mine was a bit of a hack for my own purposes.Would be great to see a proper version in the App Store.
It's so just darned useful.
I get morning reports from a variety of servers and machines. and also enquiries to things like Hetzner Storage Box, Scaleway and Wasabi so I can monitor status in 5 mins over a coffee. -
Would be excited to see this in the cloudron store proper myself! Thanks for all the work on it @timconsidine, good enough for now
-
For anyone wondering it makes a great notification backend (on Android at least as that was all I tested) in coordination with self hosted matrix/element. The Android app has an option to use it as the backend, it doesn't change anything functionally about notifications but it does keep from using FCM which is the best part imo.
-
@ericdrgn said in ntfy.sh : self-hostable notifications:
it doesn't change anything functionally about notifications but it does keep from using FCM which is the best part imo.
Firebase Cloud Messaging?