Skip to content

Allow disabling Scheduling Offset for certain Checks #10512

@oxzi

Description

@oxzi

When Icinga 2 schedules the next execution time of a check, the scheduling offset is taken into account. As documented there in prose and also discussed in #10255, the next scheduled execution time will be smaller or equal then current_time + check_interval. Or, in simpler words, the next execution will be too early, which was the reason for #10255.

When combining a check_interval and a check_period, this can result in unexpected behavior as shown in a community post.

Since I only found a documentation of this behavior in the linked "Scheduling offset" section of the "Technical concepts" chapter, but not in the earlier chapters, having such an offset is a footgun for users. If they would configure a check_interval of, for example, one minute, they would expect a minute and not 50-something seconds.

Thus, I would suggest to both document the scheduling offset more prominently and to allow disabling it for certain checkable objects. This would be very helpful for exact schedules for a cron-like usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/checksCheck execution and resultsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions