Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cmk/plugins/checkmk/agent_based/mkbackup.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@ def check_mkbackup(job_state: JobData) -> CheckResult:
yield Result(state=State.WARN, summary="Schedule is currently disabled")

elif next_run is not None:
# add a 30 seconds buffer to prevent a critical when the backup is about to start
if next_run < time.time() + 30:
# add a 120 seconds buffer to prevent a critical when the backup is about to start
# 60 seconds in case the check before the backup is delayed and
# 60 seconds in case the mkbackup plugin doesn't update its state
if next_run < time.time() + 120:
state = State.CRIT
else:
state = State.OK
Expand Down