Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flapping calculation and events #5732

Merged
merged 3 commits into from
Nov 8, 2017
Merged

Fix flapping calculation and events #5732

merged 3 commits into from
Nov 8, 2017

Conversation

dnsmichi
Copy link
Contributor

@dnsmichi dnsmichi commented Nov 8, 2017

This PR also adds flapping_current, threshold_{high,low} to the API event streams.

fixes #5720

@dnsmichi dnsmichi added this to the 2.8.0 milestone Nov 8, 2017
@dnsmichi dnsmichi added area/checks Check execution and results area/db-ido Database output labels Nov 8, 2017
Copy link
Contributor

@gunnarbeutner gunnarbeutner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart from the change in checkable.hpp.

@@ -237,6 +236,9 @@ class I2_ICINGA_API Checkable : public ObjectImpl<Checkable>
std::set<intrusive_ptr<Dependency> > m_ReverseDependencies;

void GetAllChildrenInternal(std::set<Checkable::Ptr>& children, int level = 0) const;

/* Flapping */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this moved intentionally?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Flapping calculation should only be triggered by a check result update, but not called from anywhere else.

@Crunsher Crunsher merged commit f4a1747 into master Nov 8, 2017
@dnsmichi dnsmichi deleted the fix/flapping branch November 8, 2017 14:46
dnsmichi pushed a commit that referenced this pull request Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/checks Check execution and results area/db-ido Database output
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flapping tests and bugs
3 participants