Do you have hosts/services planned to be turned off and don't want to rewrite the downtimes every time? Just insert the planned downtimes in this bash script, put it in your crontab and it will do the rest. Rewrites the downtimes files with the new values according to your needs