Hi, my setup is icinga2 r2.14.2-1 on RHEL8.
I am scheduling a downtime via api, with this test script:
icingaweb_user=root
icingaweb_passwd=mypasswd
start_time=$(date +%s -d "+0 hour")
end_time=$(date +%s -d "+2 minute")
env -i /bin/curl -k -s -u "${icingaweb_user}:${icingaweb_passwd}" -H 'Accept: application/json' \
-X POST 'https://localhost:5665/v1/actions/schedule-downtime' \
-d "{ \
\"type\": \"Host\", \
\"filter\": \"host.name==\\\"myhost.mycompany.corp\\\"\", \
\"author\": \"icingaadmin\", \
\"comment\": \"Test\", \
\"all_services\": false,\
\"child_options\": \"DowntimeNonTriggeredChildren\", \
\"start_time\": $start_time, \
\"end_time\": $end_time, \
\"pretty\": true \
}"
The expected result is that only the host myhost.mycompany.corp
and its children host be affected by this downtime. But the what we have got is that also the services are affected by the downtime in a recursive way.
Am I misunderstanding or skipping something?
The goal is avoid downtime in any service, only in a specific host and in its children.
Regards