All guidesUptime monitoring

How to set up uptime monitoring that fixes the fault, not just reports it

Check what users see, confirm a failure before paging anyone, map what depends on what, and run the known fix automatically. In Azure, and what it costs.

6 min read

Most uptime monitoring ends with a message: the site is down. Someone wakes up, signs in, and does the thing they always do. They recycle the app pool, restart the service or reboot the machine, and the site comes back.

When the fix is that predictable, the monitor can run it. This guide covers the four steps that make that safe: check what users actually see, confirm a failure before telling anyone, map what depends on what, and attach the known fix with limits around it. Then it shows how to build it in Azure, and what it costs.

Step 1: check what users actually see

A server that answers a ping can still be serving an error page. Pick the check that matches the failure you care about:

CheckWhat it testsWhat it catches
HTTPThe page answers with the status code you expectA site that is down or returning server errors
KeywordThe page contains, or does not contain, a word you chooseA page that loads but shows an error message
TCPA port accepts connectionsA database, mail server or SFTP endpoint that has stopped listening
DNSA name resolves to the record you expectA changed or missing DNS record
SSL expiryDays left on the certificateA certificate about to run out
Domain expiryDays left on the domain registrationA domain about to lapse
HeartbeatSomething calls in on timeA backup or scheduled job that quietly stopped running

The heartbeat is the one people forget. A backup job that fails loudly is fine. One that stops running altogether sends nothing, so you only notice when you need the backup. Have the job call a URL when it finishes, and treat a missing call as a failure.

Step 2: confirm the failure before telling anyone

A single failed check is often a blip: a slow response, a dropped packet, a deploy restarting the site. Page someone for every blip and they soon stop reading the alerts. Wait for failures in a row before you call it an outage:

Alert afterTime to alertTrade-off
1 failed checkAbout 1 minuteFastest, and every blip pages someone
2 failed checks in a rowAbout 2 minutesFilters most blips. A good default
3 failed checks in a rowAbout 3 minutesFor endpoints known to be flaky

Confirmation matters even more once a fix runs on its own. A false alarm that wakes someone is annoying. A false alarm that reboots a working server is worse.

Step 3: map what depends on what

When a database server goes down, the website, the client portal and the API that use it all fail too. Without a map, that is four alerts about one fault, and the person on call has to work out which one is the cause.

Write down, even on paper, which services depend on which. Then the rule is simple: when something fails and the thing it depends on has also failed, the dependency is the likely cause. Alert once, for that, and mark the rest as affected. It is also the right place to attach a fix, because restarting the website does nothing while the database is down.

Step 4: attach the fix, with limits

Start with the fixes your team already runs without thinking. On a Windows server those are usually one line of PowerShell:

Import-Module WebAdministration
Restart-WebAppPool -Name "<app-pool>"

Restart-Service -Name "<service-name>" -Force

Then put limits around it, so the fix cannot make things worse:

  • Run it only after the failure is confirmed, not on the first failed check.
  • Give it a cooldown. If the same fix ran a few minutes ago and the service is down again, running it a third time will not help. Call a person instead.
  • Keep it quiet during planned work. Restarting a machine in the middle of patching it is worse than doing nothing.
  • Say what ran. The person who looks at it in the morning should see that a fix ran, when, and whether the service came back.
  • Escalate if it does not recover. The fix is the first responder, not the last. If the check is still failing afterwards, page someone.

Building it in Azure

Azure Monitor can do this with three pieces joined together:

  1. An availability test. An Application Insights standard test requests a URL from several Azure locations, and can check the status code, look for some text in the page, and warn before the certificate expires. Microsoft recommends at least five locations, and alerting when three of them fail.
  2. An alert rule and an action group. The alert fires when the test fails, and its action group decides what happens: an email, a text, a webhook, a Logic App, a Function or an Automation runbook.
  3. A runbook that runs the fix. An action group can start an Azure Automation runbook, which receives the alert and runs the fix with its own managed identity.

At the time of writing a standard test costs £0.0005 a run in UK South (Azure's Azure Monitor pricing). With Microsoft's defaults of five locations every five minutes, that is about 43,800 runs a month, or about £22 a month for each URL. The older URL ping tests are free but deprecated, and are removed on 30 September 2028.

What it leaves to you: a test and alert rule per URL, the runbook's logic for working out which machine to act on, the cooldown, the maintenance windows, and grouping. Each test alerts on its own, so one database fault behind five sites is five alerts unless you build the grouping yourself.

Which to choose

ApproachWho runs the fixWhat you maintainBest for
Alerts onlyA person, every timeThe checks and who gets pagedA few sites where downtime is rare
Azure Monitor and a runbookThe runbookTests, alert rules, action groups, runbooks, cooldowns and groupingOne team running its own Azure applications
Monitoring with fixes built inThe monitor, then a person if it failsThe checks, the map and the fixesMSPs and IT teams looking after many services

How Task Ember does it

Task Ember is a white-label client portal for MSPs and IT teams. Ember Uptime is its monitoring product, built around the four steps above:

  • Seven kinds of check. HTTP, keyword, TCP, DNS, SSL expiry, domain expiry and heartbeat, as often as every minute.
  • Confirmed before anyone is told. By default an incident opens after two failures in a row, and you can set anything from one to five. Incidents close on their own when the check recovers.
  • Alerts where your team looks. The Ember Inbox, email and a Microsoft Teams channel. If nobody acknowledges an incident in the time you set, it pages the next people you chose.
  • A dependency map. Draw which services depend on which. When a dependency fails, one alert goes out for it, and the services above it are marked as affected.
  • Fixes on the map. Hook a monitor to restart a virtual machine or run a PowerShell script, when an incident opens, after a number of failures, on a kind of failure or a status code. Conditions and delays can sit between steps, and fixes stay quiet during maintenance windows.
  • Reports. Status timelines, response times and SLA reports you can export, with downtime inside a maintenance window kept out of the SLA. A monthly email report, in your branding, counts the fixes that ran and the ones that needed a person.

It all sits inside the client's workspace in your portal, with your logo and colours. See Ember Uptime and the rest of the catalogue at taskember.com/products.

A workspace for every client.

Task Ember is a white-label client portal for MSPs and IT teams. Set up a workspace and switch on the product your clients ask for most.