-
Notifications
You must be signed in to change notification settings - Fork 583
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
Automatically delete downtimes for children #10333
Comments
Hi Dirk, Thanks for the report. This is a good addition and we should consider it for one of our next releases. Best regards, |
Suggestion: On deletion query all child objects and delete all their downtimes. |
|
@dnsmichi Just tested |
Those IDs cannot be used for comparisons. |
Any progress on this? Just ran into having to manually go and remove 50+ service downtimes for a host I put into an extended downtime but came back up early. Was nice that it only sent out one notification when the downtime started, but it made quite some noise when I had to go remove them all one at a time. |
We did not work on this issue yet. Also, I'm unsure how to solve this best because there is no reliable reference between the created downtimes. But since this is still a reasonable feature request, we will try to sort this out asap. I'll keep you posted. |
Could you use whatever reference that there is that allows you to set all services into downtime when you set a host into downtime? Have it be some sort of similar checkbox when removing a host downtime to remove it from all services as well if the downtime exists. |
Is there any update yet for deleting all the service downtimes which are linked to a host downtime using API call? |
Any update on this? We have multiple hosts and its services under downtime for extended period. But, downtime are not getting removed manually. |
Any update on this? Its incredibly annoying having to remove downtime service records manually. I just have to remove 20 hosts with ~400 services. Moreover, there are other hosts/services that I don't want to remove, so I have to cherry-pick from the confused downtime-list page (even without reasonable filtering "by host"). |
At the moment I use Icinga remove-downtime API to get over this issue. You can try this: $ curl -k -s -u root:icinga -H 'Accept: application/json' This way I was able to remove all the downtime for that hosts. Note, replace username and password with your environment credentials. |
Thanks a lot. SHARED VARIABLES FOR SNIPPETS BELOW:
REMOVE DOWNLOAD BY HOST:
SCHEDULE DOWNTIME FOR HOSTS:
RESCHEDULE CHECK host+services (useful after manually removing downtimes):
|
With the upcoming Icinga Web 2 Version 2.9.3 and Icinga v2.13, all service downtimes created by ticking the Note that this only applies to host downtimes created with Icinga Web 2 Version 2.9.3. Previous versions of Icinga Web 2 schedule these service downtimes differently and so the automatic removal won't work for them. Also note, that this generally only applies to child downtimes for a host's services. Downtimes for child hosts will not be removed automatically yet. |
@nilmerg |
Everything I wrote was about the current state. No word about the future and none about an API. So: No. |
Thanks for clarification |
Expected Behavior
It is possible to delete downtime in the same way they are created.
Current Behavior
It is only possible to delete downtime on one object.
Possible Solution
Implement the same logic for deletion like for creation of downtimes (with services/children)
Steps to Reproduce (for bugs)
Your Environment
icinga2 --version
): 2.8.0The text was updated successfully, but these errors were encountered: