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

Downtime: delete all downtimes of a host and its service via icingadb api withouth the need to address individual downtime guids #1059

Open
K0nne opened this issue Sep 17, 2024 · 3 comments · May be fixed by #1060
Assignees
Labels
bug Something isn't working
Milestone

Comments

@K0nne
Copy link

K0nne commented Sep 17, 2024

Is your feature request related to a problem? Please describe.

Today we use the monitoring-module's api to schedule and remove downtimes for hosts and their services on demand in automated ways. The old monitoring module handles the removal in the following way:

../icingaweb2/monitoring/downtimes/delete-all?host_name=<hostname>

If I want to do this with icingadb, it's api call references multiple downtimes, combined with their individual guids:
image

Describe the solution you'd like

Is it possible to remove all downtimes for a host an it's services with icingadb's api without the need to adress these guids?
Something like:

../icingaweb2/icingadb/downtimes/delete-all?name=<hostname>

Additional context

This issues forces us to keep the old monitoring module activated in the background.

@nilmerg nilmerg self-assigned this Sep 18, 2024
@nilmerg nilmerg added the bug Something isn't working label Sep 18, 2024
@nilmerg nilmerg added this to the 1.2.0 milestone Sep 18, 2024
@K0nne
Copy link
Author

K0nne commented Sep 18, 2024

Thank you very much for the quick fix 🥇

@K0nne K0nne closed this as completed Sep 18, 2024
@nilmerg
Copy link
Member

nilmerg commented Sep 18, 2024

It's not merged yet ;)

@nilmerg nilmerg reopened this Sep 18, 2024
@K0nne
Copy link
Author

K0nne commented Sep 18, 2024

Sorry, I was too euphoric 🙈 We are using the fix already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants