Hi,
we use following set of commands to set schedule downtime on all services
on our production cluster via API. However it take usually 15 minutes to
process it. Is there any other way how to setup this in less than 1 minute
? I think that this should be simple.

export RELEASE_FROM=$(date +%s -d "02 Sep 2016 15:00")
export RELEASE_TO=$(date +%s -d "02 Sep 2016 15:01")
export RELEASE_DURATION=$(expr $RELEASE_TO - $RELEASE_FROM)
export DOWNTIME_AUTHOR=$(whoami)
time curl -H 'Accept: application/json' -X POST -d '{ "start_time":
'$RELEASE_FROM', "end_time": '$RELEASE_TO', "duration":
'$RELEASE_DURATION', "author": "'$DOWNTIME_AUTHOR'", "comment": "Release"
}' -k -u : --negotiate '
https://host:8443/v1/actions/schedule-downtime?type=Service&filter=%22Cluster%201%22%20in%20host.groups%20%7C%7C%20%22Cluster%20101%22%20in%20host.groups
'

Thanks for any tips

-- 
Milan Koudelka | Support Engineer - Operations
milan.koude...@gooddata.com
o: +420 226 2194 68
m: +420 776 313 414

GoodData | gooddata.com
Karolínská 650/1, Danube House
Prague, Czech republic
Monetize your data.
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to