All posts
Guide

Stop false alarms in Checkmate

The Checkmate team

Each alert that fires when nothing is down teaches the on-call person to trust the pager a little less. After a few of them, the real outage gets the same shrug.

Most false alarms in an uptime tool come from a handful of causes: one dropped check, the monitoring server losing its own connection, planned work and jobs that are watched the wrong way. Checkmate has a setting for each. This guide walks through them in the order we would tune them, with the values to start from.

Require more than one failed check

By default, Checkmate doesn't mark a monitor down on a single failed check. It looks at a sliding window of recent checks and only changes the status when enough of them agree. You set both numbers in the Incidents section of each monitor's configure screen.

The Incidents section of a monitor with 5 checks in the sliding window and a 60 percent threshold
The defaults: a window of 5 checks and a threshold of 60 percent

With the defaults, a window of 5 checks and a threshold of 60 percent, a monitor goes down once 3 of its last 5 checks have failed. A single timeout in an otherwise healthy window changes nothing.

The window counts checks, not minutes, so the time it covers depends on the check interval. A window of 5 on a 1-minute interval spans about 5 minutes. The same window on a 1-hour interval spans 5 hours. Good places to start:

  • If a monitor flaps, raise the window to 10 and keep 60 percent. It then takes 6 failures out of 10 to go down, which rides out short blips.
  • If minutes matter for a service, shorten the interval and keep the window size. A 30-second interval with the default window smooths over one bad check. It alerts within about a minute and a half.
  • For every other monitor, leave the defaults alone until it gives you a reason to change them.

A window of 1 at 100 percent alerts on the first failed check. Use it only for a target where one failure justifies a page.

Tell outages apart from your own network

If the server running Checkmate loses its internet connection, every monitor fails at the same moment. Without help, each one raises an incident, even though none of the services you watch is down.

The egress self-check, added in Checkmate 3.13, handles this. Checkmate keeps probing a short list of reliable targets. While none of them can be reached, it treats its own outbound connection as down and stops recording monitor failures as incidents.

The egress self-check settings with an enable switch and a list of reliability targets
Settings, Monitoring tab: switch it on and leave the targets empty to use the defaults

It is off by default. Turn it on under Settings → Monitoring → Egress self-check. If you leave the target list empty, Checkmate uses Google and Cloudflare endpoints. If you add your own, pick targets that don't depend on each other or on anything you monitor, because two targets behind the same provider can fail together for reasons unrelated to your connection.

Two details make it safe to leave on:

  • It only steps in when a target doesn't answer. A server that answers with an error, such as a 503 or the wrong content, counts as a real failure and raises an incident.
  • Checks taken while the connection is down are kept and marked Egress degraded. Filter the Checks page by that status to see what happened during the gap. While Checkmate can't reach its targets, it shows a banner across the app.

The egress self-check docs list the target formats: a bare host is pinged, host:port opens a TCP connection and a URL is requested over HTTP.

Silence planned work with maintenance windows

Deploys, database upgrades and patch nights are the most predictable source of false alarms. Schedule a maintenance window for them before you start.

The create maintenance window form with name, repeat, start date, start time, duration and monitors
Pick the monitors, a start time and how long the work can take

During a window, the selected monitors aren't checked. Their status window is cleared, so no incident is raised when the window ends, and you will see a gap in their response time history for that period.

Set the duration to the longest the work could realistically take. For standing slots, use Repeat daily or Repeat weekly. A daily window advances by exactly 24 hours in UTC, so where clocks change for daylight saving time it shifts by an hour of local time twice a year. Check it after the change.

Watch scheduled jobs from the inside

A backup script or a nightly sync often gets monitored by polling some URL it touches, which alerts on the wrong thing. A heartbeat monitor turns the check around: the job pings Checkmate each time it runs, and Checkmate alerts when the pings stop.

Heartbeat monitors ignore the status window, since a missed ping is already unambiguous. The slack lives in the Alert if no ping for field instead. Set it to the job's schedule plus a margin, for example 65 minutes for an hourly job, so a job that runs a little late doesn't page the on-call person. A job can also report its own failure or exit code, which marks the monitor down straight away.

The Checkmate 4.0 post shows the setup, and the heartbeat monitor docs cover the ping URL in full.

Give server alerts room to settle

Hardware monitors built on the Capture agent alert when CPU, memory, disk or temperature cross a threshold. A short spike won't trigger one: a metric has to breach on 5 checks in a row before the monitor flips to breached, and any normal reading in between resets the count.

Hardware alert thresholds for CPU, memory, disk and temperature
Thresholds are set per hardware monitor

New hardware monitors start at 100 for each threshold, so they don't alert until you choose values. The docs suggest starting at 85 percent for CPU, 90 percent for memory, 85 percent for disk and 75 °C for temperature, then adjusting to what your workloads normally run at. A build server that sits at 90 percent CPU each afternoon needs a higher CPU threshold.

Test the alerts you keep

Cutting noise helps only if the remaining alerts arrive. Each notification channel has a Test button on its form. Use it after you set up a channel and again after you change credentials. A wrong webhook URL then shows up in a test, before an outage depends on it.

Start with this checklist

  • Keep the default window of 5 checks at 60 percent. Raise it to 10 on monitors that flap.
  • Turn on the egress self-check under Settings → Monitoring.
  • Schedule maintenance windows before deploys and patch nights.
  • Watch scheduled jobs with heartbeat monitors, with an alert window of the schedule plus a margin.
  • Set hardware thresholds to real values instead of the default of 100.
  • Press Test on each notification channel.

If a monitor raises alerts you don't believe after these changes, tell us in a GitHub issue. False alarms are bugs too.

Run Checkmate on your own servers.

Free and open source. Install it in a few minutes with Docker.