Icinga / Icinga/icinga2

First check attempt of new pending objects is skipped, but counts

Open
#10,971 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
2.2k
Forks
616
Avg merge
5d 6h
Merged PRs (30d)
10

Description

Describe the bug

Hello!

Today I tested a bit with delayed sending of notifications and was surprised to see the first check attempt of every new created pending object was invalid and skipped, but counted as such. Is this intended behaviour?

To Reproduce

  1. 00:01m - 00:24m - a new object waits to be scheduled (1st attempt)
  2. 00:24m - 00:57m - a 5m check_interval without a check source is executed, but suddenly skipped (this counts as 1st attempt)
  3. 00:57m - 01:06m - a new check attempt with a check source is executed (2nd attempt)

Expected behavior

Only valid check attempts should be counted.

Video

https://github.com/user-attachments/assets/f6e9e08b-377e-4588-8011-a61e0a0ad269

Your Environment

Include as many relevant details about the environment you experienced the problem in

  • Version used (icinga2 --version): 2.16.4
  • Operating System and version: rhel 8.10
  • Enabled features (icinga2 feature list): Enabled features: api checker icingadb influxdb mainlog notification
  • Icinga Web 2 version and modules (System - About): 2.14.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported delayed-sending sequence on Icinga 2 2.16.4, focusing on the check interval that has no check source and is counted as the first attempt. Trace where pending-object attempts are validated and counted; done means invalid or skipped attempts are not included in the attempt count while valid checks still are.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.