Page 1 of 1
schedule down time for multiple hosts
Posted: Fri Aug 12, 2016 2:25 pm
by caterpillartce
Hello,
Is there a way to schedule an outage for all my servers? The web interface seems to need me to set it up per host, which can be very time consuming. Can it be scheduled per hostgroup instead?
Thanks!
Re: schedule down time for multiple hosts
Posted: Mon Aug 15, 2016 9:08 am
by bwallace
If you have the Enterprise Edition license you can use the "Bulk Modifications" tool:
CCM > Tools > Bulk Modifications
Select what sort of change you would like to make and follow the steps
If you DON'T have the Enterprise Edition license you can enable the free trial and make the changes you require within the trial period.
Re: schedule down time for multiple hosts
Posted: Mon Aug 15, 2016 9:11 am
by eloyd
Or you could write a script which reads the API data for the hostgroup you're interested in and then submits commans to Nagios to schedule downtime for each host that's a member of the hostgroup you queried for.
Of course, that's more complex.

You can also do it from the hostgroup screen.
Re: schedule down time for multiple hosts
Posted: Mon Aug 15, 2016 10:17 am
by lmiltchev
Go to Home->Hostgroup Summary->View Hostgroup Commands. Under the "Hostgroup Commands" you will be able to schedule downtime for all hosts or services in your hostgroup.
If you wanted to schedule downtime for ALL of our hosts, you could create a hostgroup, i.e. "all-hosts", and add all hosts as members of this hostgroup. Next, just schedule downtime for all hosts in "all-hosts" hostgroup by following the steps described above.
Re: schedule down time for multiple hosts
Posted: Mon Aug 15, 2016 11:54 am
by caterpillartce
bwallace wrote:If you have the Enterprise Edition license you can use the "Bulk Modifications" tool:
CCM > Tools > Bulk Modifications
Select what sort of change you would like to make and follow the steps
If you DON'T have the Enterprise Edition license you can enable the free trial and make the changes you require within the trial period.
I guess I could remove the contact group I defined for all hosts before a scheduled outage and readd it back after to indirectly suppress all alerts during the outage?
lmiltchev wrote:Go to Home->Hostgroup Summary->View Hostgroup Commands. Under the "Hostgroup Commands" you will be able to schedule downtime for all hosts or services in your hostgroup.
This isn't a place I would have thought to look for this function, but it seems to be what I need exactly! Thanks!
Thank you all for the help! Once again I got what I needed! this can be closed.
Re: schedule down time for multiple hosts
Posted: Mon Aug 15, 2016 12:27 pm
by rkennedy
Sounds good, closing this one up!