it doesn’t fail because the downtime for the host will be applied but not for any of it’s underlying services.
we’ve tried various iterations and syntax based on the documentation but to no avail.
another weird thing - if we try using type:Service and try to filter for one host and give a “bad” service name, it’ll do all services which is also a potential issue.
in older versions i seem to recall there was a way maybe with a different tag like “child_services” or something? i know it was in the dashboard and our command transport was through the api so i assumed it was possible. but maybe i’m mistaken. thanks, this will make another case for upgrade to 2.11
In older versions, you had to fire two API calls - one for the Host and then the Service type. child_services is unrelated to that, this affects dependencies.
I’m still running 2.10.5 and I have a nightly cron that downtimes all services on certain hosts. Just to clarify Michael’s instructions, you would want to try:
not a reverse proxy - goes to a fqdn cname with load balancers. we have a 2 master HA set up so it could be either one as the “active” at any given time.
why not use the “backup” time period method and avoid the cron?
ScheduledDowntime objects depend on Icinga itself, and generate a runtime Downtime object, the next from the current given range. Also, it adds its ownership, so the downtime object cannot be deleted via the web interface.
A cronjob instead is more freely, can schedule multiple downtimes in the future, and those downtimes may be deleted on-demand as well. I prefer the latter, also with some bugs in mind for SD objects (DST if you’re in the EU).