How to enable the schedule down time for 100 hosts at a time

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Gonela
Posts: 135
Joined: Wed Jan 10, 2018 5:23 am

How to enable the schedule down time for 100 hosts at a time

Post by Gonela »

How team,

If we want enable schedule down time for few servers we can enable schedule down time by going schedule down time and enable with the start date and end date. If we want to enable for 100 servers how we can enable at at a time. Can anybody help on this.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: How to enable the schedule down time for 100 hosts at a

Post by npolovenko »

Hello, @Gonela. What version of XI are you using? When I open a Schedule Downtime menu I see the list of all hosts or services and I can hold down a shift key or a crl key and select many hosts/services at once. Have you tried that already?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Gonela
Posts: 135
Joined: Wed Jan 10, 2018 5:23 am

Re: How to enable the schedule down time for 100 hosts at a

Post by Gonela »

Hi Team,

Thanks for the reply we are using nagios xi 5.4.0. As you said we can hold and select but all host are not same different hosts will be there example ABC, CAB, ZCA , to select the three hosts we will go search manually then select. If we provide the any excel sheet that contain 100 host list if we can import that file automatically host will select then we can schedule the timings From to To. Instead of searching we can import file the same host will select.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: How to enable the schedule down time for 100 hosts at a

Post by npolovenko »

@Gonela, Have you tried using a filter?
Untitled.png
Being able to upload an Excell document with hostnames is a good candidate for a feature request. I will go ahead and submit it for you. It may or may not be approved by the Dev team. You can message me in a couple weeks-a month to see it has been approved, and if It has I'll provide you with a tracking number.

PS: Take a look at this script here:
https://old.nagios.org/developerinfo/ex ... and_id=118
It schedules downtime for a specified host. You could write a script that will go over the list of hosts and schedule dowtime in a similar manner.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: How to enable the schedule down time for 100 hosts at a

Post by gormank »

I'm not sure it helps, but you can schedule downtime on a hostgroup. Do this from details, hostgroup summary for example.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: How to enable the schedule down time for 100 hosts at a

Post by dwhitfield »

Thanks @gormank!

Of course, if you don't want them all in the same hostgroup, then perhaps you could have smaller hostgroups and schedule a handful of hostgroups rather than a bucketful of hosts.
Gonela
Posts: 135
Joined: Wed Jan 10, 2018 5:23 am

Re: How to enable the schedule down time for 100 hosts at a

Post by Gonela »

Hi team ,

I have tried as per your screen shot early and we are following the same for ex. if we have 10 hosts as per screen shot it is easy, how we can enable the Schedule down time on hostgroup. We are using 5.4.0 nagios xi now.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: How to enable the schedule down time for 100 hosts at a

Post by dwhitfield »

Go to http://YOURSERVER/nagiosxi/includes/com ... wntime.php (replace YOURSERVER with the address) and click on the hostgroup tab. Attach a screenshot if what you see at that address if you don't see the hostgroup tab.
Locked