How to schedule downtime for multiple hosts in Nagios Xi?
thanks
How to schedule downtime for multiple hosts in nagios xi
-
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
If they are grouped you could schedule downtime for the group, otherwise you have to do them individually.
Re: How to schedule downtime for multiple hosts in nagios xi
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
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
Re: How to schedule downtime for multiple hosts in nagios xi
I will look into creating that script.
Will keep you posted.
Will keep you posted.
Re: How to schedule downtime for multiple hosts in nagios xi
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:
But the option to do so is strangely hidden. I only found it by messing around in XI after reading this thread.
Steps:
- Go to the Hostgroup Summary page.
- Locate the desired hostgroup.
- Next to each hostgroup's name there is two buttons, View Hostgroup Service Detail and View Hostgroup Commands.
Click the View Hostgroup Commands button. - You'll be taken to an older style screen with more options.
Click the Schedule downtime for all hosts in this hostgroup option. - Fill out downtime information.
- Profit!
Re: How to schedule downtime for multiple hosts in nagios xi
I would like to get kind of schedule downtime page in nagiosXI for Hostgroup/Servicegroup too.