Bug: Monitor changes state during the maintenance window #1626

Closed
opened 2026-04-05 16:30:26 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Len4i on 9/7/2023

Describe the bug
Monitor changes it's state during the scheduled maintenance. While creating maintenance I'm configuring it to change the monitor's state to degraded or maintenance. When maintenance windows starting, next check of the monitor returns Ok, because actual downtime still not started, and this trigger monitor to get back to operational state.
To Reproduce
Steps to reproduce the behavior:

  1. Create scheduled maintenance that should change the monitor state to degraded
  2. Wait until it will start
  3. Go to monitor's timeline
  4. See that monitor state changes twice in the same minute:
    • changed to degraded with cause: Changed because of scheduled maintenance event
    • changed to operational with cause: All Criteria Met.Monitor is online. Response status code is 200.

Expected behavior
Monitor will remain in the state configured by scheduled maintenance until end of the maintenance window

Screenshots
image

*Originally created by @Len4i on 9/7/2023* **Describe the bug** Monitor changes it's state during the scheduled maintenance. While creating maintenance I'm configuring it to change the monitor's state to `degraded` or `maintenance`. When maintenance windows starting, next check of the monitor returns Ok, because actual downtime still not started, and this trigger monitor to get back to `operational` state. **To Reproduce** Steps to reproduce the behavior: 1. Create scheduled maintenance that should change the monitor state to `degraded` 2. Wait until it will start 3. Go to monitor's timeline 4. See that monitor state changes twice in the same minute: - changed to `degraded` with cause: `Changed because of scheduled maintenance event` - changed to `operational` with cause: `All Criteria Met.Monitor is online. Response status code is 200.` **Expected behavior** Monitor will remain in the state configured by scheduled maintenance until end of the maintenance window **Screenshots** <img width="557" alt="image" src="https://github.com/OneUptime/oneuptime/assets/29254740/f298b1c5-ee5e-4b0e-be26-4c1c721548ce">
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#1626