Mass update Time Periods
-
nagwindmon
- Posts: 92
- Joined: Mon Dec 01, 2014 3:39 pm
Mass update Time Periods
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:
You do not have the required permissions to view the files attached to this post.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Mass update Time Periods
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.
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.
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.
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.
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
nagwindmon
- Posts: 92
- Joined: Mon Dec 01, 2014 3:39 pm
Re: Mass update Time Periods
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?
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Mass update Time Periods
Hello @nagwindmon,.
If you have the enterprise edition, I would use the Bulk Mods Tool instead of applying templates.
If you have the enterprise edition, I would use the Bulk Mods Tool instead of applying templates.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
nagwindmon
- Posts: 92
- Joined: Mon Dec 01, 2014 3:39 pm
Re: Mass update Time Periods
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?
You do not have the required permissions to view the files attached to this post.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Mass update Time Periods
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.
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.
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
nagwindmon
- Posts: 92
- Joined: Mon Dec 01, 2014 3:39 pm
Re: Mass update Time Periods
got it - one more qq: is this a correct format when time period spills over midnight into next day?
Monday 16:30-02:00
Monday 16:30-02:00
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Mass update Time Periods
Hello,
Good question. That would actually look something like this:
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
Good question. That would actually look something like this:
Code: Select all
monday 00:00-02:00,16:30-24:00
https://assets.nagios.com/downloads/nag ... timeperiod
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!