Skip to content

Schedules and maintenance windows ​

Two kinds of calendar change what Probeward does without anyone touching a sensor:

  • A schedule is a named set of weekly time ranges in a time zone. Used as a node's monitoring schedule, nothing below the node is polled while it is closed. Used on a notification rule, that destination is told nothing while it is closed.
  • A maintenance window is attached to one node (probe, group, device or sensor) and covers everything below it. While it is in force polling and history go on, but no incident opens and nobody is notified.

Both are evaluated by the engine itself, on the injected clock, so their behaviour is covered by the same scenario tests as the rest of alerting.

Schedules ​

A schedule has a name, an IANA time zone (Europe/Sarajevo, America/New_York, UTC), one or more ranges and any number of exception dates.

  • A range is a set of weekdays with a start and an end, each HH:MM. It is open from the start up to, but not including, the end.
  • An end at or before the start runs past midnight: Fri 22:00-06:00 is open from Friday 22:00 to Saturday 06:00. The range belongs to the day it starts on.
  • 00:00 to 24:00 is a whole day. A range may end at 24:00 but not start there, and a start equal to its end is refused.
  • Ranges that touch or overlap merge: Mon-Fri 08:00-12:00 and Mon-Fri 12:00-17:00 are one range from 08:00 to 17:00, and nothing happens at noon.
  • An exception date (YYYY-MM-DD, in the schedule's zone) closes that whole local day, including the part of a night range that started the evening before. Public holidays are the usual use.

Who may do what: administrators create, change and delete schedules (Settings, Schedules). Operators attach them to nodes in a node's settings. Everyone can see them. Every change is in the audit log as schedule.create, schedule.update or schedule.delete. A schedule still used by any node is not deleted: the API answers 409 in_use with the nodes that use it, and the UI lists them.

The daylight saving rule ​

A local time means the first moment the local clock reaches or passes it on that date.

  • A time that does not exist (in the hour skipped when the clocks go forward) resolves to the instant the clocks jump, the end of the gap.
  • A time that occurs twice (in the hour repeated when the clocks go back) resolves to its first occurrence.
  • The same rule applies to starts and ends. A range lying entirely in a skipped hour is empty that night; a range ending in a repeated hour ends the first time the clock shows its end.
  • Durations are elapsed time. A four-hour maintenance window lasts four hours, whatever the clocks do.

Worked examples:

Zone and nightRange or windowOpensCloses
Europe/Sarajevo, 29 March 2026 (02:00 becomes 03:00)Sun 02:30-05:0003:00 CEST (01:00 UTC): 02:30 never happens05:00 CEST (03:00 UTC)
America/New_York, 8 March 2026 (02:00 becomes 03:00)Sun 02:15-06:0003:00 EDT (07:00 UTC)06:00 EDT (10:00 UTC)
Europe/Sarajevo, 25 October 2026 (03:00 becomes 02:00)Sun 02:30-04:00the first 02:30, CEST (00:30 UTC)04:00 CET (03:00 UTC): open for two and a half hours
America/New_York, 1 November 2026 (02:00 becomes 01:00)Sun 01:30-03:00the first 01:30, EDT (05:30 UTC)03:00 EST (08:00 UTC)
Europe/Sarajevo, 29 March 2026weekly window Sun 01:30 for 120 minutes01:30 CET (00:30 UTC)04:30 CEST (02:30 UTC), two real hours later

A schedule is never evaluated against the server's own zone or /usr/share/zoneinfo: the time zone database is compiled into the binary, so every installation of the same version agrees.

Monitoring schedules ​

monitoring_schedule is an inherited setting like the scan interval. On a probe, group, device or sensor it is one of:

  • not set: inherit from above (the default at the top is "always monitored");
  • Always monitored: overrides a schedule set higher up, so one sensor can opt out of its group's schedule;
  • a schedule.

The settings editor shows the effective value and where it comes from ("inherited from group Servers", "set here").

While a sensor's monitoring schedule is closed:

  • It is not polled. A poll running when the schedule closes is cancelled and its late result dropped. Its handling shows Outside schedule with the schedule's name and when it next opens.
  • Failures counted before the close do not count afterwards.
  • Scan now is refused, as it is for a paused sensor.
  • An incident already open stays open, unacknowledged incidents send no reminders, and it cannot recover, since nothing is polled.
  • When the schedule opens, the sensor is polled at once and its freshness is unknown (awaiting_poll_after_schedule) until that poll is back, exactly as after a timed pause. Reminders of an open incident count from that moment.
  • A push sensor outside its schedule keeps what it is sent as history, but it does not change its state, and it is given a full reporting window after the schedule opens before it counts as stale.

A closed schedule behaves like a pause, and the two combine: a sensor is halted when it is paused, outside its monitoring schedule, or in a window that stops polling.

Remote probes ​

A remote probe polls on its own, on the core's grid, while its link to the core is down, and replays what it buffered when it is back. Schedules and windows reach it as follows:

  • Each sensor's assignment carries the spans, for the next eight days, in which it is outside its monitoring schedule or in a window that stops polling. Cut off, the probe skips those slots as the core would, and polls again at the first slot after a span. Pauses are sent as before.
  • A halted sensor whose probe is away is not polled when the probe returns, and its freshness says why it is unknown: the probe, for as long as the probe is away, even if its schedule opens meanwhile.
  • Replayed samples are history only, wherever they fall: a failure the probe buffered inside a window, or at any other time, never opens or notifies anything after the fact. The state comes from fresh polls once the probe is back.

The probe's own incident ("probe not reporting") is quieted by a window on the probe node in the same way a sensor is:

  • A probe that stops reporting inside such a window opens nothing and notifies nobody. The probe's timeline says the loss was held and until when.
  • If it is back before the window ends, that is all. If it is still away when the window ends, its incident opens then, once, as it would have at the end of its grace period, and is notified as any probe incident.
  • An incident already open when a window starts stays open; its reminders are held and count again from the end of the window. If the probe returns inside the window the incident closes without a recovery notification.
  • A restart mid-window keeps the loss held. If the window ended while the core was down, the incident opens once on start.

A window on a group, device or sensor below the probe does not quiet the probe's incident; it covers only the sensors under it.

Notification schedules ​

Each notification rule (in the notify setting) may name a schedule; without one it applies at any time. A rule's schedule applies to its destination only. If two rules name the same destination, the first one decides its schedule.

  • An incident that opens while the destination's schedule is closed is not sent there. The timeline says the notification was held, and by which schedule.
  • If the incident is still open when the schedule opens, the destination is told once, at that moment, with delayed: true and a summary ending (delayed, open for 2 h 5 min), and the timeline says so. That destination's reminders then count from that moment.
  • Reminders and recoveries that fall while the schedule is closed are not sent there, and are not sent later. An incident that opens and recovers overnight never reaches a day-only destination; its timeline shows it was held.
  • An incident acknowledged before the schedule opens is not sent there late: someone is already on it.
  • A notification schedule never overrides a maintenance window: nothing reaches any destination while a sensor is in maintenance.
  • Probe incidents (a remote probe that stops reporting) follow the same rules with the probe's own notify setting: a destination whose schedule is closed is held, told once when it opens if the probe is still away, and then repeats on its own cadence.

Worked example: on-call is told only during Office hours (Mon-Fri 09:00-18:00 Europe/Sarajevo), the pager at any time. A web check fails at 07:40 on a Tuesday and its failure count is reached at 07:42. The pager is told at 07:42, and every repeat interval after that. On-call gets one opened event at 09:00, marked delayed and open for 1 h 18 min, then its own reminders at 09:00 plus the repeat interval. If the check recovers at 08:30 instead, the pager hears the recovery and on-call never hears anything.

Maintenance windows ​

A window has a name, a reason, the node it is attached to and the user who created it (shown everywhere it appears), and one of three timings:

  • once: a start and an end instant;
  • weekly: weekdays, a local start time and a duration in minutes, in a time zone;
  • monthly: a day of the month (day 31 means the last day in a shorter month) or a weekday of the month (the second Tuesday, the last Sunday), a local start time and a duration, in a time zone.

A single occurrence lasts at most 31 days. A one-off window that has already ended is refused.

While a window is in force on a node, for every sensor below it:

  • Polling and history continue; health and freshness are shown as usual, with the handling Maintenance and the window's name and end.
  • No incident opens and nothing is notified, whatever the failure count or notification schedules say.
  • An incident already open stays open; its reminders are held and resume, counted from the end of the window, if it is still open then.
  • A recovery inside the window closes the incident without a recovery notification, and the timeline says it recovered during the window.
  • Acknowledging, pausing and Scan now work as usual (Scan now is refused in a window that stops polling, as it is for a paused sensor). A simulated error during a window is still labelled SIMULATED, and opens its simulated incident once the window is over.
  • A failing sensor in maintenance still suppresses the checks that depend on it, so a switch being upgraded does not page for every device behind it.
  • When the window ends, a failure that persists pages after its own failure count, counted from the end of the window: there is no burst of pages at the end of a window.

With Stop polling set, the window also halts polling, as a pause does: nothing is recorded, a running poll is cancelled, and when the window ends sensors are polled before health is decided (awaiting_poll_after_maintenance). A sensor in a stop-polling window tells nothing about its health, so it does not suppress the checks that depend on it; they page on their own.

Overlapping windows hand over without a gap. The handling shows the window that ends last, and a sensor is halted if any window in force stops polling.

Operators create, change and delete windows, and End now or Extend an occurrence in force; viewers see them. Ending a recurring window early affects only the occurrence in force; the next one starts as scheduled. Changing a window's timing drops any such adjustment. Each action is audited as maintenance_window.create, .update, .delete, .end_early or .extend.

In the UI:

  • Maintenance in the navigation lists windows in force, coming up and finished, with their node, reason, creator and next occurrences.
  • Every probe, group and device page has a Maintenance card with the windows attached there and a button to add one.
  • The tree marks a node with a window in force, and its sensors show the Maintenance handling.
  • Each sensor's timeline has an entry when it enters and leaves a window and when its monitoring schedule closes and opens. In the API these are state_change entries told apart by detail.type: maintenance_started, maintenance_ended, recovered_in_maintenance, schedule_closed, schedule_opened; and delivery entries notification_held and delayed_notification_sent.

Worked example: a weekly window Sun 02:00 for 3 h in Europe/Sarajevo on the group Core switches. Every Sunday from 02:00 to 05:00 local time the switches can reboot without paging anyone. If one is still unreachable at 05:00 with a failure count of two, it pages after the second failed poll after 05:00. On the last Sunday in March the window runs from 02:00 local (which is 03:00 after the jump, the end of the gap) for three elapsed hours, so it closes at 06:00 CEST.

Restarts and upgrades ​

Nothing about calendars needs to survive a restart: the engine recomputes every schedule and window from the configuration and the clock when it starts. What does survive, in the engine's snapshot, is per sensor: whether it was halted or in maintenance, and which scheduled destinations of an open incident are still waiting or were told late. So:

  • A restart in the middle of a window neither pages nor loses the window.
  • A window that ended while the server was down is treated as ended at start-up: sensors are polled before health is decided.
  • A destination whose notification schedule opened while the server was down is told once at start-up, marked delayed.
  • Snapshots written before schedules existed still load; the new fields default to empty.

API ​

Method and pathRole
GET /api/v1/schedules, GET /api/v1/schedules/{id}viewerWith open_now, next_change and used_by.
POST /api/v1/schedules, PATCH, DELETE /api/v1/schedules/{id}adminDELETE takes ?version=; refused with 409 in_use while used.
GET /api/v1/time-zonesviewerThe zones the server knows.
GET /api/v1/maintenance-windowsviewerOptionally ?node_type=&node_id=. Windows in force first, each with active, current and the next five occurrences.
POST /api/v1/maintenance-windows, PATCH, DELETE /api/v1/maintenance-windows/{id}operator
POST /api/v1/maintenance-windows/{id}/endoperator{version}. 409 not_active if no occurrence is in force.
POST /api/v1/maintenance-windows/{id}/extendoperator{version, minutes}.

Field errors name the field, for example spec.time_zone, spec.ranges[0].start, timing.days or timing.end. The full reference is in the OpenAPI document at /api/v1/openapi.json.

AGPL-3.0-only