We are configuring notification time intervals on a per user basis.
We would like to set notification intervals from Monday through Friday to be from 2pm - 6am. When I try to configure this as follows, I get "One or more time ranges is invalid."
Monday - From: 14:00 To: 06:00
I currently have Saturdays and Sundays set to 00:00 to 24:00 - I would imagine there's some sort of an overlap occurring?
Can anyone help? Thank you
Notification time intervals - invalid time range
Re: Notification time intervals - invalid time range
Code: Select all
Monday - From: 14:00 To: 06:00Try something like this:
Code: Select all
define timeperiod {
timeperiod_name my_timeperiod
alias 14pmto6am
monday 14:00-24:00
tuesday 00:00-06:00,14:00-24:00
wednesday 00:00-06:00,14:00-24:00
thursday 00:00-06:00,14:00-24:00
friday 00:00-06:00,14:00-24:00
saturday 00:00-24:00
sunday 00:00-24:00
}Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Notification time intervals - invalid time range
OK - I've added this to timeperiods.cfg - how would our users select this config now?
Re: Notification time intervals - invalid time range
NagiosQL seems to have deleted the change I made in timeperiods.cfg. I've tried adding it via the Core Config Manager using Time Periods - and when I add all of the times, and apply the config, they disappear and do not get saved.
Please advise?
Please advise?
Re: Notification time intervals - invalid time range
In Nagios XI you need to make all of the configuration changes under the Core Config Manager (not in the CLI)...OK - I've added this to timeperiods.cfg - how would our users select this config now?
CCM->Time Periods->Add New->... Save.
Then add the timeperiod to your host/service:
CCM->Hosts/Services->...->Modify->Alert Settings tab->select the timeperiod you just created from the "Notification period" drop-down menu. Save. Apply Configuration.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Notification time intervals - invalid time range
Ok. Is there any way to add the time period per user?
Re: Notification time intervals - invalid time range
That depends. Do you mean true Nagios XI Users? Or Nagios Core contacts? Users can configure the XI interface, while contacts are just used for notification purposes. Each user will have an associated contact created, so it should be no different in either case (but the distinction is important). You should be able to just select the time period in the CCM for each contact.
Former Nagios employee
Re: Notification time intervals - invalid time range
Thank you both - I was able to select the notification times I configured per user. This worked out great.tmcdonald wrote:That depends. Do you mean true Nagios XI Users? Or Nagios Core contacts? Users can configure the XI interface, while contacts are just used for notification purposes. Each user will have an associated contact created, so it should be no different in either case (but the distinction is important). You should be able to just select the time period in the CCM for each contact.
Cheers
Re: Notification time intervals - invalid time range
Great! I am marking this topic as "resolved".
Be sure to check out our Knowledgebase for helpful articles and solutions!