-
Notifications
You must be signed in to change notification settings - Fork 62
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
Add support for expiring acknowledgements #391
Commits on Aug 16, 2022
-
Add support for expiring acknowledgements naemon#302
Parts of this code were based on work done in Icinga v1 by Ricardo Bartels for Icinga/icinga-core#369. Closes naemon#302. Signed-off-by: Roel van Meer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 188655c - Browse repository at this point
Copy the full SHA 188655cView commit details -
Add command definitions for expiring acknowledgements
Signed-off-by: Roel van Meer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e60e53b - Browse repository at this point
Copy the full SHA e60e53bView commit details -
Add end_time argument to acknowledge_*_problem functions
Signed-off-by: Roel van Meer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b890f51 - Browse repository at this point
Copy the full SHA b890f51View commit details -
Signed-off-by: Roel van Meer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for efbcba1 - Browse repository at this point
Copy the full SHA efbcba1View commit details
Commits on Sep 7, 2022
-
Support end_time in the broker
Signed-off-by: Roel van Meer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c0d7d56 - Browse repository at this point
Copy the full SHA c0d7d56View commit details -
Set acknowledgement_end_time in host and service structs
Signed-off-by: Roel van Meer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7d6af7d - Browse repository at this point
Copy the full SHA 7d6af7dView commit details -
Ensure host and service comments know about expiry
Signed-off-by: Roel van Meer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 079b85b - Browse repository at this point
Copy the full SHA 079b85bView commit details -
Ensure acknowledgement_end_time is set (or cleared)
Signed-off-by: Roel van Meer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ebfe3a6 - Browse repository at this point
Copy the full SHA ebfe3a6View commit details -
Read and write acknowledgement_end_time in retention data
Signed-off-by: Roel van Meer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c32e9a9 - Browse repository at this point
Copy the full SHA c32e9a9View commit details -
Create and handle host ack expire event
Signed-off-by: Roel van Meer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8b18dc5 - Browse repository at this point
Copy the full SHA 8b18dc5View commit details -
Reschedule events when starting
If neamon starts and the retention data contains expiring acks that still need to happen, ensure the expire events are properly scheduled. Signed-off-by: Roel van Meer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 72b07a8 - Browse repository at this point
Copy the full SHA 72b07a8View commit details -
Add tests for ACKNOWLEDGE_HOST_PROBLEM_EXPIRE
Signed-off-by: Roel van Meer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6881dfa - Browse repository at this point
Copy the full SHA 6881dfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for fad6c90 - Browse repository at this point
Copy the full SHA fad6c90View commit details -
Separate clearing and destroying event queue
In tests, we want to be able to remove all events but not destroy the queue.
Configuration menu - View commit details
-
Copy full SHA for ac16d0f - Browse repository at this point
Copy the full SHA ac16d0fView commit details -
Properly remove references to events when destroying
After destroying the check events, references to those events must be cleared. If not, scheduling a new check event will try to destroy the event that is still referenced, which causes a segfault.
Configuration menu - View commit details
-
Copy full SHA for 739690a - Browse repository at this point
Copy the full SHA 739690aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d2e3d1 - Browse repository at this point
Copy the full SHA 2d2e3d1View commit details -
Add test for expiring acknowledgement
This adds a test that checks if the acknowledgement expiry event does its work. It starts by removing all events from the event queue. We then run the command, with expiration set in two seconds. After waiting three seconds, we process a single event (we should have only one event in the queue at this point). After processing the event, the acknowledgement should be gone.
Configuration menu - View commit details
-
Copy full SHA for 9e0bb48 - Browse repository at this point
Copy the full SHA 9e0bb48View commit details
Commits on Sep 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2512b35 - Browse repository at this point
Copy the full SHA 2512b35View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e327e3 - Browse repository at this point
Copy the full SHA 4e327e3View commit details