Skip to content

maintenance-windows not honored - unwanted alerts sent #1815

Description

@amai2012

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:

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions