Browse docs

ntfy alerts

Get downtime and missed cron job alerts as push notifications on your phone or desktop, through ntfy.sh or your own ntfy server.

ntfy is an open-source push notification service: anything published to a topic reaches every phone and desktop subscribed to it. The WatchCat integration publishes one notification when an incident opens and one when it resolves. Downtime goes out with urgent priority, which the ntfy app can let through Do Not Disturb; a recovery uses the default priority, so it does not wake anyone.

Setup takes four steps: subscribe to a topic in the ntfy app, add the topic to WatchCat, put the integration in a notification channel, and assign that channel to your monitors.

Data note: on ntfy.sh, messages are forwarded to Google Firebase Cloud Messaging so Android and iOS phones receive them. A self-hosted ntfy server decides for itself, so alert content stays on infrastructure you choose. See the subprocessors page for what WatchCat itself uses.

Step 1 — subscribe to a topic

  1. 1 Install the ntfy app on Android or iOS, or open the ntfy web app.
  2. 2 Add a subscription and pick a topic name. Use letters, numbers, underscores and dashes, up to 64 characters.
  3. 3 If you run your own ntfy server, choose it as the server for the subscription.

On ntfy.sh, a topic without access control is public: anyone who knows its name can read and publish to it. Pick a long, hard-to-guess name such as acme-alerts-3f9c, or reserve the topic with an ntfy.sh account and create an access token.

Step 2 — add an ntfy integration in WatchCat

  1. 1 Go to Integrations → New integration and select ntfy.
  2. 2 Keep the server URL https://ntfy.sh, or enter the root address of your own server, without the topic.
  3. 3 Enter the topic. If the topic or server needs sign-in, paste an access token (it starts with tk_).
  4. 4 Save, then click Send test alert on the integration's page and check that the notification arrives.

A self-hosted server must be reachable from the internet. WatchCat refuses to send alerts to private or internal addresses, so a server that only answers on your office network or VPN will fail the test alert.

Step 3 — add the integration to a notification channel

Monitors alert through notification channels, not through integrations directly. A channel bundles email recipients and any number of integrations, so one ntfy integration can serve as many monitors as you like. How notification channels work →

  1. 1 Go to Notification channels → New channel, or edit an existing one.
  2. 2 Under Integrations, check the ntfy integration you just created.
  3. 3 Save the channel.

Step 4 — assign the channel to monitors

Edit an uptime or cron monitor and check the channel under Notifications. From then on, an incident on that monitor alerts ntfy when it opens and again when it resolves.

Tip: Turn on Auto-assign to new monitors on the channel and every monitor you create later is covered without another click.

What a ntfy alert contains

One message when an incident opens and one when it resolves — never a repeat on every failed check. The message is written to be acted on without opening a dashboard first:

Uptime monitor goes down

The monitored URL and check interval, the cause (for example a status code other than the expected one, a missing keyword or an invalid certificate), the regions that saw the failure, the HTTP response, how long it has been failing, a short excerpt of the response body, and links to the incident and the monitor.

Uptime monitor recovers

Total downtime, when it started, the current response, and the cause the incident opened with.

Cron job misses its schedule

The expected interval and grace period, how overdue the ping is, when it was expected, and when the last ping arrived.

Cron job pings again

How long it was overdue, when the ping arrived, and when the next one is expected.

Times are shown in your organization's timezone. The wording is the same in every chat integration, so a team split across tools reads the same alert.

In ntfy, the notification title is the monitor name, with a red or green circle as the status. Tapping the notification opens the incident, and the buttons open the incident and the monitor. The message is formatted with Markdown. A long response body excerpt is shortened so the message stays within ntfy's 4,096-byte limit.

See whether ntfy accepted the alert

Every request WatchCat sends is recorded on the integration's page: the outcome, the HTTP status, an excerpt of the response, the error if there was one, and how long it took. When an alert seems to be missing, you can tell whether ntfy refused it or it was never routed there. The log is kept for 7 days on Free, 30 days on Pro, and 90 days on Team.

Other integrations

A notification channel can hold several integrations at once, so chat, on-call and your own tooling can all hear about the same incident.

Start monitoring in minutes

Free plan available. No credit card required.