Is it possible to schedule downtime for multiple services on different hosts?
Sure.
Simply use the service name in the assign where statement.
The docs show an example for a scheduled downtime.
You can use “anything” else (like service vars, host vars,…) in the assign statement as well.
I was thinking more about a “manual” way from web UI or a API call, rather than reloading configuration.
Ah, ok.
Was mislead by the “schedule” and thought about a Scheduled(recurring) Downtime object and didn’t look at the category you posted in
But what you want is also possible.
From teh webinterface you can select multiple hosts/services with CTRL+Click or SHIFT+Click and then add a fixed or flexible downtime (non-recurring).
For the API take a look at the docs as well, there is an example for all service with name “ping4”:
https://icinga.com/docs/icinga2/latest/doc/12-icinga2-api/#schedule-downtime
Cool, I didn’t know about the CTRL+click feature
Although in my case clicking on about 100 services isn’t much fun. I’ll try to declare a dependency and then schedule a downtime for a single host.