Monitoring and alert hygiene
Alert only on what needs a person, notice when monitoring itself goes quiet, and review alerts every quarter.
Why it matters
When everything alerts, nothing does. The alert that would have warned you about a full disk or a failing replication link gets lost among fifty that you have learned to delete unread. The other quiet failure is monitoring itself: the server that sends alerts stops, and silence looks exactly like good news.
The Google SRE book puts the standard plainly: every page should be actionable, and if a page merely merits a robotic response, it should not be a page (Google SRE book, Monitoring distributed systems).
The routine at a glance
| When | What | Time budget |
|---|---|---|
| Daily | Read the overnight alerts and the daily summary; act or write down why not | 10 minutes |
| Weekly | Read the weekly summary of non-urgent items: disk trends, certificates, licences | 15 minutes |
| Monthly | Check the heartbeat still works by stopping it on purpose once | 10 minutes |
| Quarterly | Alert review: every alert that fired gets kept, fixed, downgraded or deleted | 1 hour |
These budgets are suggestions. The quarterly review is the one that keeps the daily read short.
Three levels, not one
Put every check into one of three levels. Write the level next to each check in the alert list below.
- Wake me. Something users feel now, or will within hours: a service down, mail not flowing, a domain controller unreachable, the backup target full, an emergency access account signing in.
- Tell me today. Needs a person this working day: a disk over its threshold, a failed backup job, replication errors, a certificate within 14 days of expiry.
- Weekly summary. Trends and housekeeping: disk growth, certificates within 60 days, licences, warranty dates, machines behind on updates.
The SRE book’s questions are a good filter for level 1: is it urgent, is it actionable, is it user visible now or soon, and could it safely wait until morning (Google SRE book).
The minimum version for a solo admin
- No more than a handful of “wake me” alerts, each with a link to the runbook it starts.
- A heartbeat for the monitoring itself (below).
- One weekly summary mail for everything else.
For a team of 2 to 5
- Agree who gets level 1 outside working hours, in writing, and how it rotates.
- Every level 1 alert names its runbook in the alert text.
- The quarterly review is a meeting, with the alert list on screen.
What to watch
| Check | Level | How | Runbook or how-to |
|---|---|---|---|
| Service reachable from outside (website, mail, VPN) | Wake me | External check from outside your network | R5, R3 |
| Domain controller replication | Tell me today | repadmin summary on a schedule | H3, R6 |
| Hypervisor host or cluster node down | Wake me | Hypervisor or cluster alerts | R4 |
| Disk health (SMART, NVMe) | Tell me today | smartctl or the vendor’s tool | H7 |
| Disk space | Tell me today, trend weekly | Threshold plus weekly trend | |
| Backup job failed or missing | Tell me today | Backup product report | P2 |
| Certificate expiry | Today at 14 days, weekly at 60 | Scheduled check (below) | |
| Emergency access account sign-in | Wake me | Sign-in log alert | H1 |
| Cloud provider incident in your regions | Tell me today | Provider status alerts | H10 |
| Monitoring heartbeat missing | Wake me | Dead man’s switch (below) |
Microsoft advises monitoring sign-in and audit log activity for emergency access accounts, with alerts for unnecessary or unauthorised use (Manage emergency access accounts, Microsoft Learn).
How-to: H7 Read disk health with smartctl, H3 Check AD replication health and H10 Set up Azure Service Health alerts.
Watch the watcher
The NCSC advises having a way to make sure logs are still being captured, such as an automated alert when log messages stop arriving, or when a periodic test event does not arrive (NCSC 10 Steps: logging and monitoring). Apply the same idea to monitoring: the monitoring system sends a heartbeat on a schedule to something outside your network, and that outside service alerts you when the heartbeat stops. Many hosted uptime and cron monitoring services offer this. Once a month, stop the heartbeat on purpose and check that you are told.
Certificate expiry check
To read when a public certificate expires, and to get a non-zero exit code if it expires within 30 days (2592000 seconds):
echo | openssl s_client -connect www.example.com:443 -servername www.example.com 2>/dev/null | openssl x509 -noout -enddate -checkend 2592000
Source: openssl s_client and openssl x509, OpenSSL 3.0 manual
Replace the host name with yours. Run it from a scheduler and alert on the exit code.
Disk space check
On Windows:
Get-Volume | Where-Object DriveLetter | Select-Object DriveLetter, FileSystemLabel, SizeRemaining, Size
Source: Get-Volume, Microsoft Learn
On Linux:
df -h
Source: df(1), Linux manual pages
A single threshold catches the full disk. The weekly trend catches the disk that will be full next month, which is the one you can still fix calmly.
Quarterly alert review
Export the list of alerts that fired in the last quarter. For each one, ask:
- Did a person need to act? If not, downgrade it to the weekly summary or delete it.
- Did we act? If it fired many times and nobody acted, the threshold is wrong or the alert is.
- Did it come early enough? If users told you first, the check is missing or too slow.
- Does it name its runbook? If not, add the link.
Also look for the gap: any incident this quarter that no alert caught. The SRE book lists a monitoring failure, meaning the incident was found by hand, as a reason to write a postmortem (Google SRE book, Postmortem culture). Record it in P6.
Checklist
- Every check has a level: wake me, tell me today, or weekly summary
- Every “wake me” alert names its runbook
- Heartbeat to an outside service is set up and was stopped on purpose this month
- Emergency access account sign-ins alert
- Certificate expiry checked on a schedule
- Disk space threshold and weekly trend in place
- Quarterly alert review done and written down
Alert list template
Example included. The row marked Example is made up to show the format. Delete it and add your own rows.
| Alert | Level | Threshold | Who gets it | Runbook | Last fired | Last review decision |
|---|---|---|---|---|---|---|
| Example: DC replication errors | Tell me today | Any failure in the summary | AB | R6 | Keep | |
Automation notes
- Turning many single alerts into one daily or weekly summary is the most useful automation here. Most monitoring tools can do it.
- Scheduling the certificate and disk checks above is simple. Alert on exit codes and thresholds, not on reading the output by eye.
- Do not auto-restart services in response to alerts until you know why they stop. The SRE book asks whether the action could be safely automated, and whether it is a fix or just a workaround (Google SRE book).
Signs it is working
- You read every level 1 alert, and each one needed you.
- The heartbeat check fired when you stopped it on purpose.
- The quarterly review deletes or downgrades something most times.
Signs it is not
- A mail rule moves alerts to a folder you never open.
- Users report outages before monitoring does.
- Nobody knows when the monitoring server last rebooted, or whether it still sends mail.