#1815·gatus

maintenance-windows not honored - unwanted alerts sent

Author: amai2012Created Sep 23, 2026Updated Sep 27, 2026
Labelsbug

Describe the bug

gatus (5.36.0) fires alerts for an endpoint at 21:15 which is supposed to be in a maintenance-window at night time.

Here are the excerpts from my config.yaml:

yaml
default-uptime-daytime: &uptime-daytime
  maintenance-windows:
    - start: "19:40"
      duration: 11h
      timezone: "Europe/Berlin"

default-endpoint_ssh: &defaults_ssh
  interval: 5m
  ssh:
    username: ""
    password: ""
  conditions:
    - "[CONNECTED] == true"
    - "[STATUS] == 0"

default-endpoint_ssh_alert: &defaults_ssh_alert
  <<: *defaults_ssh
  alerts:
    - type: teams-workflows

endpoints:
  - name: "aws-lnx0097"
    url: "ssh://aws-lnx0097:22"
    group: XX"
    <<: [ *defaults_ssh_alert, *uptime-daytime ]

It might be a timezone issue, therefore the start of the maintenance-window is even more than one hour before the target systems shuts down. The timestamps from the running container match the wall clock...

What else could be wrong? yaml merge?

What do you see?

Alert fired at 21:15

What do you expect to see?

No alert fired later than 19:40

List the steps that must be taken to reproduce this issue

No response

Version

5.36.0

Additional information

No response