How to schedule downtime for multiple hosts in nagios xi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

How to schedule downtime for multiple hosts in nagios xi

Post by ecarrasq »

How to schedule downtime for multiple hosts in Nagios Xi?

thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to schedule downtime for multiple hosts in nagios xi

Post by scottwilkerson »

If they are grouped you could schedule downtime for the group, otherwise you have to do them individually.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: How to schedule downtime for multiple hosts in nagios xi

Post by mguthrie »

Apart from the Mass Acknowledgment component, which allows you to schedule DT in bulk for problem hosts/services, we don't have a tool that will do that out of the box. You could probably modify that component fairly easily to be able to do it though. Download the massacknowledge component, and look at lines 178-235. If you simply modify these lines to grab ALL hosts and services instead of only problem ones, you could rename it and have your own bulk DT scheduler.
http://exchange.nagios.org/directory/Ad ... nt/details

The other option would be to script it, the script parses a list in a text file, and loops through and schedules it for each host/services.
http://old.nagios.org/developerinfo/ext ... ndlist.php
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: How to schedule downtime for multiple hosts in nagios xi

Post by ecarrasq »

I will look into creating that script.

Will keep you posted.
Deantwo
Posts: 52
Joined: Thu Mar 03, 2016 8:39 am

Re: How to schedule downtime for multiple hosts in nagios xi

Post by Deantwo »

As scottwilkerson mentioned, it is possible to schedule downtime for a whole hostgroup at a time.
But the option to do so is strangely hidden. I only found it by messing around in XI after reading this thread.

Steps:
  1. Go to the Hostgroup Summary page.
  2. Locate the desired hostgroup.
  3. Next to each hostgroup's name there is two buttons, View Hostgroup Service Detail and View Hostgroup Commands.
    Click the View Hostgroup Commands button.
  4. You'll be taken to an older style screen with more options.
    Click the Schedule downtime for all hosts in this hostgroup option.
  5. Fill out downtime information.
  6. Profit!
ram111
Posts: 5
Joined: Wed May 31, 2017 10:44 am

Re: How to schedule downtime for multiple hosts in nagios xi

Post by ram111 »

I would like to get kind of schedule downtime page in nagiosXI for Hostgroup/Servicegroup too.
Locked