Reliable Self-Hosted Service Down Alert Monitoring: A Practical Stashboard Guide

self-hosted-service-down-alert-monitoring.md
title Reliable Self-Hosted Service Down Alert Monitoring: A Practical Stashboard Guide
date
author VahaC
read 12 min read
category Self-Hosting
tags #container #Docker #Homelab #Self-hosted #Stashboard
self-hosted service down alert monitoring

Self-hosted service down alert monitoring is only worth having if it wakes you for real outages and stays quiet through a DNS blip. Stashboard 5.3.2 stopped a single timeout from firing a false “Service unavailable” alert, and 5.6 moved the tuning onto its own settings page. This guide covers the Healthcheck tab, the failure threshold, the interval and timeout, and how an offline alert fires and recovers on each channel. 🚦

No alert channel yet? The Stashboard Telegram notifications guide sets one up in ten minutes. The SMTP email guide matters too, for a reason covered in Step 3.

How Self-Hosted Service Down Alert Monitoring Works in Stashboard

A background loop scans every monitored service, starting five seconds after the container boots. Each scan works through your services one at a time and sends an HTTP request to every URL you enabled. The result is one of four states:

  • Up (green): the response code is in the expected range, 200–399 by default.
  • Down (red): a bad status code, a timeout, a refused connection, a DNS failure or an invalid URL.
  • Needs attention (amber): the page loaded only after Stashboard ignored an invalid TLS certificate.
  • Unknown (grey): health checks are off.

Two layers sit between a failed request and an alert, and they’re the core of self-hosted service down alert monitoring in Stashboard:

  1. In-probe retries absorb instant blips. A connection-level failure (DNS, timeout, network unreachable, TLS handshake) is retried inside the same scan, twice by default, one second apart. A real HTTP response is never retried, not even a 503, because the server answered.
  2. The failure threshold absorbs short outages. A failed scan only bumps a counter. The status flips to Down when the counter hits the threshold, 3 consecutive scans by default. Until then the card keeps its last confirmed status. One good scan resets the counter.

The main URL and the additional URL keep separate counters. The alert is edge-triggered: it fires once, on the change into Down, and doesn’t repeat while the service stays down.

Prerequisites

Before you configure self-hosted service down alert monitoring, check that you have:

  • Stashboard 5.6 or newer for Settings → Health checks. The Uptime tab needs 10.1 and web push 10.6.
  • A service URL reachable from the Stashboard container. The probe runs on the server, not in your browser, so localhost means the container itself.
  • At least one channel: Telegram, Apprise or web push.

Step 1 — Enable the HTTP Health Check on the Healthcheck Tab 🩺

Every piece of self-hosted service down alert monitoring starts on the service itself. Open a service card and switch to the Healthcheck tab. The top row shows the current status, the last response time and a Check now button. Below it:

  • Healthcheck the main URL: probes the Main URL from the General tab.
  • Healthcheck the additional URL: greyed out until you set an Additional URL.
  • Healthcheck URL (optional, not shown on the card): probed instead of the main URL, for example a /health endpoint.
  • HTTP method: GET or HEAD. If a server rejects HEAD with 405 or 501, or the HEAD request errors, Stashboard retries with GET.
  • Expected status: blank means 200–399. You can enter 200, 200-299 or a list such as 200,204,301-302. It applies to both URLs.
  • Notify when service goes offline: the alert switch, greyed out until a health check is on.

Tick a health check and Notify when service goes offline, then click Save.

⚠️ The Healthcheck URL only runs when “Healthcheck the main URL” is ticked. It replaces the main URL as the target. Fill it in with the box unticked and nothing is probed.

⚠️ Unticking every health check switches the alert off too. With both boxes clear and no Healthcheck URL, saving clears Notify when service goes offline and the next scan resets the status to Unknown. Re-tick the alert when you turn a check back on.

Pick an endpoint that fails when the app fails

The classic mistake in self-hosted service down alert monitoring is probing a page that stays up while the app is broken. A login page often returns 200 with the database gone. Use a real health endpoint where one exists: Jellyfin answers /health, Vaultwarden /alive and Immich /api/server/ping.

Redirects count as Up. If a URL sits behind basic auth or a forward-auth proxy and returns 401, add it to Expected status (200-399,401) so “asks for a password” counts as alive.

Step 2 — Tune the Failure Threshold and Check Interval ⏱️

Open Settings → Health checks in the Services group. The Offline-alert reliability card sets how self-hosted service down alert monitoring behaves for every service of every user:

  • Check interval (seconds): how often a scan starts. Default 60, range 10–86,400.
  • Failure threshold (consecutive scans): failed scans in a row before Down. Default 3, range 1–100. Set 1 to alert on the first failure.
  • In-probe retries: extra attempts after a connection-level failure. Default 2, range 0–20.
  • Retry delay (milliseconds): the pause between attempts. Default 1000.

Click Save. You should see Health-check settings saved. They apply on the next scan. No restart is needed. The STASHBOARD_HealthCheck__* environment variables only seed these values on first startup; after that the page wins.

How fast self-hosted service down alert monitoring alerts

The first failed scan can land up to one interval after the outage starts, and the alert needs threshold − 1 more. So the delay falls between (threshold − 1) × interval and threshold × interval, plus probe time. Three starting points (my suggestions, not built-in presets):

  • Fast, for critical services on a wired LAN: interval 30, threshold 2. About 30–60 seconds.
  • Default: interval 60, threshold 3, retries 2. About 2–3 minutes.
  • Patient, for Wi-Fi, VPN sites or flaky DNS: interval 60, threshold 5, retries 3. About 4–5 minutes.

The 10-second timeout you can’t change

Each HTTP attempt times out after 10 seconds, the one part of self-hosted service down alert monitoring in Stashboard you can’t tune. A RequestTimeoutSeconds config key exists, but HTTP probes use a fixed 10-second client timeout. A timeout is retried like any connection failure, so with the defaults one hanging URL costs up to 3 × 10 s + 2 × 1 s = 32 seconds per scan.

⚠️ Hanging services slow self-hosted service down alert monitoring for everything else. Services are checked one after another, and the next interval starts only after the scan finishes. Five services hanging behind a firewall that drops packets add about 160 seconds to each scan, stretching the cycle to about 3.7 minutes, so a threshold of 3 can take 11 minutes to alert. Refused connections fail fast; silent drops and dead VPN peers eat the timeout. For hosts like that, set In-probe retries to 0 or 1, and turn off checks on machines that are often off on purpose.

Step 3 — Route Self-Hosted Service Down Alert Monitoring to Your Channels 📡

When a service crosses the threshold, Stashboard sends one message per failing URL to every configured channel. The channels are independent, so an Apprise failure never blocks Telegram.

  • Telegram: per user. The token, chat ID and master switch live on the service owner’s account under Settings → Notifications. The Telegram setup guide covers the bot.
  • Apprise: app-wide, sent as a failure notification titled Service unavailable: <name>. Apprise reaches ntfy, Gotify, Discord, email and more, and its card has a Send test button.
  • Web push (10.6): per device. In Settings → Notifications → Web push notifications, click Subscribe this device and allow the prompt. Down alerts reach every subscribed device, and a tap opens the service. Push needs HTTPS, so set up a proxy or tunnel first, as in the secure remote access guide.

⚠️ The SMTP card doesn’t send service-down alerts. Stashboard SMTP email notifications cover account mail and Docker update emails only. For down alerts by email, add an Apprise email URL such as mailto://user:[email protected].

Every channel gets the same text:

🔴 Service unavailable: Jellyfin
Main URL: http://192.168.1.111:8096
Error: Timeout

The error line is the probe’s reason: HTTP 503, Timeout, Invalid URL or a socket message such as Connection refused. The Main URL line shows the card’s Main URL even when a Healthcheck URL was probed. A failing additional URL gets its own message. Telegram and push go to the service’s owner; Apprise goes to its shared targets.

Step 4 — What Happens When the Service Recovers 🔁

Recovery in self-hosted service down alert monitoring with Stashboard is lopsided on purpose:

  • Down takes N failed scans; Up takes one success. The first good response resets the counter and turns the card green.
  • There’s no “back up” message on any channel. Only Proxmox node-health alerts send a recovery notice, as the Proxmox node monitoring guide explains.
  • The alert re-arms, so self-hosted service down alert monitoring sends a fresh message for the next confirmed outage.
  • The incident is logged. The service’s Uptime tab shows 24-hour, 7-day and 30-day uptime, a response-time sparkline and an incident log of offline spans.

Flapping is where self-hosted service down alert monitoring usually goes wrong, and these rules handle it. A service that fails every other scan never reaches a threshold of 3, so it never alerts or logs an incident. Down for three scans, up for one, down for three more sends two alerts. An amber result also resets the counter and never alerts.

Step 5 — Verify Your Self-Hosted Service Down Alert Monitoring ✅

Test your self-hosted service down alert monitoring on both paths: the manual one and the real background one.

Quick test with Check now

  1. Add a throwaway service named Alert test with the Main URL http://127.0.0.1:9. Nothing listens on port 9 in the container, so the probe fails fast.
  2. On the Healthcheck tab, tick Healthcheck the main URL and Notify when service goes offline, then save.
  3. Reopen it and click Check now.

Check now applies the result immediately and skips the threshold. The card turns red and the 🔴 message should arrive within seconds. That proves the channels, not the threshold.

Real test of the failure threshold

This test runs self-hosted service down alert monitoring through the real threshold. Start a tiny web server you can stop at will; traefik/whoami listens on port 80:

docker run -d --name down-test -p 8099:80 traefik/whoami
  1. Add a service with the Main URL http://<docker-host-ip>:8099 (the LAN IP, not 127.0.0.1), enable the health check and the alert, and save.
  2. Click Check now and confirm it reads Up.
  3. Stop the container and note the time:
docker stop down-test
  1. Watch the card. With the defaults it stays green through the first failed scans and turns red on the third, 2–3 minutes later, as the alert arrives.
  2. Start the container again:
docker start down-test

The card goes green on the next scan, no message is sent, and the Uptime tab lists one incident. Clean up with docker rm -f down-test and delete both test services.

Troubleshooting Self-Hosted Service Down Alert Monitoring 🛠️

Most self-hosted service down alert monitoring failures leave a log line:

docker logs stashboard-app 2>&1 | grep -i "failed to send"

Failed to send Telegram notification…, Failed to send Apprise notification… or Failed to send push notification… names the broken channel.

  • Red card, no alert: check Notify when service goes offline and the channel setup. If the service was already Down when you connected the channel, bring it Up and break it again; alerts fire only on the change.
  • Down in Stashboard, fine in your browser: the container can’t reach the URL. The image ships curl, so test from inside it: docker exec stashboard-app curl -s -o /dev/null -w "%{http_code}\n" http://192.168.1.111:8096/health. Suspect localhost URLs, split DNS and Docker networks.
  • Still getting false alerts: raise the threshold or retries, and check the host’s DNS for Name or service not known errors.
  • Late alerts: count hanging services and redo the timeout math from Step 2.
  • Amber instead of green: a self-signed, expired or mismatched certificate. It never alerts.
  • Always HTTP 401 or HTTP 403: the URL needs a login. Use an unauthenticated path or extend Expected status.

Risks of Self-Hosted Service Down Alert Monitoring ⚠️

Know the limits of self-hosted service down alert monitoring before you rely on it:

  • A failed send isn’t retried. The status change is saved either way, so if Telegram, Apprise or the push service is unreachable at that moment, the alert is lost, and nothing reminds you later. Use two channels for anything important.
  • No recovery messages. You find out a service is back by looking.
  • Your self-hosted service down alert monitoring can’t report its own outage. If the Stashboard host or its internet link dies, nothing alerts. Watch Stashboard from a second machine or an external uptime service.
  • Tuning cuts both ways. Threshold 1 at a 10-second interval pages you for every hiccup. Threshold 10 at 10 minutes can hide an outage for 90 minutes or more.
  • Any signed-in user can change these settings. Stashboard has no roles, so one person setting the threshold to 100 silences everyone’s alerts.
  • Alert text leaves your network. Telegram and cloud Apprise targets store service names, internal URLs and errors. A self-hosted ntfy keeps it local.

Self-Hosted Service Down Alert Monitoring FAQ

How many failed checks before Stashboard marks a service Down?

Three consecutive failed scans by default, set by Failure threshold on Settings → Health checks (1–100). Each scan already includes up to two retries for connection errors.

What is a good check interval for self-hosted service down alert monitoring?

Keep the 60-second default for most homelabs. Use 30 seconds with a threshold of 2 for a few critical services.

Does Stashboard send a notification when a service comes back up?

No. The card turns green and the Uptime tab closes the incident, but no channel gets a message.

Why did Check now alert immediately?

A manual Check now skips the threshold. Only the background scan waits for consecutive failures.

Can I get service-down alerts by email?

Not from the SMTP card. Add an email URL to Apprise instead.

Bottom Line

Good self-hosted service down alert monitoring in Stashboard comes down to four numbers and one checkbox. Tick the health check and Notify when service goes offline on each service, keep the 60-second interval and threshold of 3 unless your network argues otherwise, and connect at least two of Telegram, Apprise and web push. Then stop a test container and time the alert before a real outage does it for you. 🚀

New to Stashboard? Start with the homelab dashboard overview. Stashboard is open source: code on GitHub, image on Docker Hub.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.