Page 1 of 1

Mass update Time Periods

Posted: Tue Oct 29, 2019 9:15 am
by nagwindmon
team -we are utilizing time Periods option to alert at certain time frame of the day - all works as designed, but now new request was made by customer to changed it. It looks like manual process - remove existing, add new one and we have quite a few of those setup - so was wondering if there is a way to do a mass update? End time needs to be extended to 3 more hours:

Re: Mass update Time Periods

Posted: Tue Oct 29, 2019 10:14 am
by benjaminsmith
Hello @nagwindmon,

If you have the enterprise edition of Nagios XI, you can use the Bulk Modifications Tool to change the notification period for more than one host or service.
bulk-mods-tool.png
Also, it's a good idea to use Templates in Nagios XI. If all of these hosts or services are inheriting from the same template, you just need to edit the time period in the template and apply the changes.

Re: Mass update Time Periods

Posted: Wed Oct 30, 2019 12:04 pm
by nagwindmon
yes, we do have XI enterprise edition so I will use Bulk Modifications Tool, but regarding Templates... I believe all services were added/created by API and does not look like a template was used? or am I missing something here?

Re: Mass update Time Periods

Posted: Wed Oct 30, 2019 12:49 pm
by benjaminsmith
Hello @nagwindmon,.

If you have the enterprise edition, I would use the Bulk Mods Tool instead of applying templates.

Re: Mass update Time Periods

Posted: Wed Oct 30, 2019 1:57 pm
by nagwindmon
ok, Bulk would come handy when I need to reapply it, so here is a Time Period called 'DIVISION_EST' where I need to extend end time which is currently set to 17:00 to 3 more hours, i.e. to 20:00, how I could do that? Insert a new one and then delete existing one?

Re: Mass update Time Periods

Posted: Wed Oct 30, 2019 3:26 pm
by benjaminsmith
Hello,

So you go the CCM ( Configure > Alerting > Time Periods ) and edit the DIVISION_EST. You'll have to remove the current time definitions and add the new days with the extended time.

Then go to Tools > Bulk Modifications Tool > Change a Single Configuration Option, and change the notification period to the new time period and select the hosts or services to apply this to.
bulk-mods-tool-period.png

Re: Mass update Time Periods

Posted: Thu Oct 31, 2019 3:15 pm
by nagwindmon
got it - one more qq: is this a correct format when time period spills over midnight into next day?

Monday 16:30-02:00

Re: Mass update Time Periods

Posted: Thu Oct 31, 2019 3:54 pm
by benjaminsmith
Hello,

Good question. That would actually look something like this:

Code: Select all

monday              00:00-02:00,16:30-24:00  
The the timeperiods can be set a number of ways and there are some examples on the page below.

https://assets.nagios.com/downloads/nag ... timeperiod