Add ntfy.sh and shoutrrr Alert services

Shoutrrr and ntfy.sh would be welcome additions to the list of alert services. They are free to use and ntfy would allow for push notifications. I’m currently using shoutrrr in ddns-updater to push alerts to ntfy.shand it would be great to use for system alerts.

You can use the Slack option and paste the https://ntfy.sh/topic URL in the “Webhook URL” field. Notifications will show up as {"text": "TrueNAS @ truenas \n \nThis is a test alert\n\n"}. A bit ugly but works.

Thanks for that. Your right. A little messy but it works

But I also think it’ll be nice if we can support ntfy (and possibly other services that use webhook and expect plaintext instead of {"text": "..."}). (upvoted)

Better yet, try using this as your Slack webhook URL: https://ntfy.sh/topic?tpl=yes&t={{.text}}&md=yes.
See all things you can do with query parameters here: Sending messages - ntfy

3 Likes

Howdy…did you have to install Watchtower to use shoutrrr notifications with ddns-updater? I’d like to setup email alerts when my public IP changes.

For those with ntfy coming back here, I made one change which makes a big difference in formatting.

https://ntfy.sh/topic?tpl=yes&m={{.text}}&md=yes

...t={{.text}}... puts the alert alert into the title of the ntfy alert, whereas ...m={{.text}}... puts the alert text into the message body.

Thanks for figuring it out originally though, @helium !