how-to · watch Open this in the console

Only check during working hours.

Health › checks, then raw JSON. The menu cannot express a window. The document can: when the clock is inside the window, evaluate the check.

Outside the window the check is skipped, not failed. A spooler that stops at night does not page anyone.
01

Open raw JSON and write the window

Open the machine, then health › checks, and open raw JSON. A window is a when: if is a time_window (days, from, to), then is the check that should run inside it. Here the print spooler is only judged on weekdays from 08:00 to 18:00. Hours are the machine's local clock. Check that a service is running is the same service with no window.

Checks editor with raw JSON for a weekday time window around the spooler
Reception PC. The JSON is in the box. Use this JSON has not been pressed.
02

Use this JSON, then push

Press use this JSON. The check appears in the list as a when. Push to agent is the next click, and it asks you to confirm. Push replaces the whole document. This shot stops before that, so nothing has been sent. Outside those hours the check does not fail and does not alert. Inside them, a stopped spooler is a check failure.

Checks list with a when check named Spooler during the day, not yet pushed
Spooler during the day is on the list. Push has not been pressed.

Push is a two-step button. The agent must be online to evaluate. You can still edit the document while it is offline and it applies at the next hello. The service on its own, with no window, is Check that a service is running. A check that needs every part, or any one part, is Require every part of a check.