Maintenance windows
Copy as MarkdownA maintenance window is a time when the alerts of a set of devices are held. While it runs, no alert rule sends an alert for those devices: no mail, no channel message, no webhook. The alerts are still written, marked Held by the window, so nothing is lost. When the window ends, a grace time gives the devices a few minutes to come back. A device that is still offline after that, or still above a rule's limit, raises its alert as usual, once.
Windows are listed on the Maintenance tab of Alerts and automation: running ones first, then the planned ones by start time, with their devices, their time, how many alerts they held and who made them.
- Seeing windows needs View devices. Making, changing, ending and deleting them needs Manage organization devices, the permission of fleet tasks.
- A window for the whole server (
all) also needs Change server settings. - A person whose device scope is limited sees and changes only windows whose devices all lie in that scope, and can't make a window that names a device outside it, also not through a group or tag.
- The Maintenance tab is on the Alerts and automation page, which needs Change server settings. Without it, a person starts and sees windows from the device list.
Click New window and fill in:
- Name, and a Note for the people who see the window.
- Devices: device IDs, group names,
tag:name,org:idorsite:id, one per line or separated by commas, the same way a fleet task names its devices.allis the whole server. A group or tag is read again while the window runs, so a device that joins the group is covered. - Runs:
- From now for a number of minutes;
- Once, from a start to an end;
- Every week, on the days you tick, from a Start time for a Length in minutes;
- Cron, with a cron expression such as
0 22 * * satand a length.
- Time zone: the times are read in the server's zone from Settings, Time unless you pick another.
- Grace time: how long after the end a device may still be offline before it raises its alert. 15 minutes unless you change it.
A weekly window's length is time on the wall clock: a window from 22:00 for 8 hours ends at 06:00 local time, also in the nights the clocks change.
The row menu of a running window has End now and Extend by 30m, 1h or 2h. Ending a weekly window ends only the run that is on; the next week's run comes as planned. The grace time follows the new end.
Select devices in the device list and click Start maintenance, or pick it from one device's menu. Give the window a name and a Length (30m, 1h, 2h, 4h, or Custom for your own number of minutes), then click Start. The window starts at once.
A device a window holds has a wrench icon in the device list, with the window and its end in the tooltip, and a banner on its device page.
A fleet task of type update, install, restart or script can hold the alerts of its devices while it runs: tick Hold alerts for these devices while the task runs when you create it. The window starts with the task and ends when its last device has reported, plus the grace time. It's ticked by default for update and restart tasks. See Fleet tasks.
The Alert history tab leaves held alerts out. Tick Show held alerts to see them, each with the window that held it.
- The security alerts (new devices, join requests, repeated failed sign-ins) and other alerts of the server itself.
- The Send alert step of a workflow, which someone set up on purpose.
- Network monitoring records whether its targets answer but raises no alerts, so there's nothing of it to hold.
When a window starts and ends, webhooks, notification channels and SIEM forwarding that subscribe to Maintenance window started and Maintenance window ended get an event. The end event says how many alerts the window held. Every start and end is also in the audit log, with every change to a window.
From the command line:
neodesk maintenance window-create --name "Patch night" --scope "group:Berlin office" --minutes 120
neodesk maintenance windows --state running
neodesk maintenance window-extend mw_1a2b3c --minutes 30
neodesk maintenance window-end mw_1a2b3cThe neodesk command line says how to sign in
and run them. The console's /metrics has neodesk_maintenance_held_alerts per window and
neodesk_maintenance_windows_running.


