schedule down time for multiple hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
caterpillartce
Posts: 117
Joined: Mon Jul 11, 2016 11:22 am

schedule down time for multiple hosts

Post 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!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: schedule down time for multiple hosts

Post 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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: schedule down time for multiple hosts

Post 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.
Last edited by eloyd on Mon Aug 15, 2016 10:20 am, edited 1 time in total.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: schedule down time for multiple hosts

Post 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.
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

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: schedule down time for multiple hosts

Post by rkennedy »

Sounds good, closing this one up!
Former Nagios Employee
Locked