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!
schedule down time for multiple hosts
-
caterpillartce
- Posts: 117
- Joined: Mon Jul 11, 2016 11:22 am
Re: schedule down time for multiple hosts
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.
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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Re: schedule down time for multiple hosts
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.
Of course, that's more complex.
Last edited by eloyd on Mon Aug 15, 2016 10:20 am, edited 1 time in total.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: schedule down time for multiple hosts
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.
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
caterpillartce
- Posts: 117
- Joined: Mon Jul 11, 2016 11:22 am
Re: schedule down time for multiple hosts
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?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.
This isn't a place I would have thought to look for this function, but it seems to be what I need exactly! Thanks!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.
Thank you all for the help! Once again I got what I needed! this can be closed.