Icinga / icingadb-web

Icinga DB Web – UI for Icinga DB – Provides a graphical interface to your Icinga monitoring
GNU General Public License v2.0
67 stars 21 forks source link

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 1 month ago

K0nne commented 1 month ago

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.

K0nne commented 1 month ago

Thank you very much for the quick fix 🥇

nilmerg commented 1 month ago

It's not merged yet ;)

K0nne commented 1 month ago

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