Hi @poncho ,
Perhaps, you should use the API to check the host state first in icinga? then if the host is OK remove the DT ?
That way you dont have to add a 2 min downtime and keep it simple for you and the icinga host.
-> DT shutdown
-> shutdown
-> startup
-> Check Icinga host status (ping ok?)
-> remove DT
How are you scheduling the DT for this host? It seems you are missing the ping service in that command?
see the topic here for a example:
Hi guys,
I’m trying hard to set a downtime for all services of one host via API. In the webfrontend there is a seperate checkbox “all_services” which is working fine, but how can I use it through the API?
I tried for example:
curl -k -s -u 'actionuser' -H 'Accept: application/json' -X POST 'https://SERVER:5665/v1/actions/schedule-downtime?type=Host&host='HOST'&all_services=1' -d '{ "author": "ME", "comment": "TEST", "notify": true, "pretty": true, "start_time": 1561012086, "end_time": 1561033…