Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
[dev.icinga.com #11248] Active checks are executed even though passive results are submitted #3985
This issue has been migrated from Redmine: https://dev.icinga.com/issues/11248
Created by julianbrost on 2016-02-27 18:24:55 +00:00
If a service is defined using the following template and passive check results are submitted every 5 minutes, Icinga will still run the active check every 17 minutes and set the status to unknown causing the service to flap all the time.
The next check time gets impropery updated:
At (1) passive check results were submitted but the next check time wasn't updated, at (2) Icinga executed the scheduled check even though passive results were submitted a few seconds earlier, in this case the next check time got updated.
This bug seems to be introduced by 9ca7245. I've attached a patch that fixes this issue.
2016-03-05 17:15:03 +00:00 by mfriedrich b8e3d61
2016-03-05 17:16:49 +00:00 by mfriedrich ef532f2
2016-03-11 14:55:03 +00:00 by mfriedrich 8344f74
2016-03-11 14:55:14 +00:00 by mfriedrich f99feab
Updated by julianbrost on 2016-02-27 18:38:14 +00:00
Michael Friedrich pointed out, that passive checks are enabled by default and thus that if (as proposed in my patch) would be triggered almost all the time. I guess one would want to add
to the condition but I didn't test that so far.
Updated by mfriedrich on 2016-03-09 10:42:18 +00:00
In terms of cr~~GetActive()~~ good idea, we discussed that today independent of this issue. A proper fix for the retry_interval should take that into account with #11336.
In the meantime I'll assign this issue for 2.4.4 - it'll be great if you could do further tests, allowing this ticket being resolved for the targeted release.