Page 1 of 1

Notification time intervals - invalid time range

Posted: Tue Mar 18, 2014 1:32 pm
by jpipitone
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

Re: Notification time intervals - invalid time range

Posted: Tue Mar 18, 2014 2:49 pm
by lmiltchev

Code: Select all

Monday - From: 14:00 To: 06:00
is not valid. "06:00" is already the next day (Tuesday)...

Try 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
	}

Re: Notification time intervals - invalid time range

Posted: Tue Mar 18, 2014 3:52 pm
by jpipitone
OK - I've added this to timeperiods.cfg - how would our users select this config now?

Re: Notification time intervals - invalid time range

Posted: Tue Mar 18, 2014 4:05 pm
by jpipitone
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?

Re: Notification time intervals - invalid time range

Posted: Tue Mar 18, 2014 4:11 pm
by lmiltchev
OK - I've added this to timeperiods.cfg - how would our users select this config now?
In Nagios XI you need to make all of the configuration changes under the Core Config Manager (not in the CLI)...

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.

Re: Notification time intervals - invalid time range

Posted: Tue Mar 18, 2014 4:21 pm
by jpipitone
Ok. Is there any way to add the time period per user?

Re: Notification time intervals - invalid time range

Posted: Tue Mar 18, 2014 4:24 pm
by tmcdonald
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.

Re: Notification time intervals - invalid time range

Posted: Wed Mar 19, 2014 11:11 am
by jpipitone
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.
Thank you both - I was able to select the notification times I configured per user. This worked out great.

Cheers

Re: Notification time intervals - invalid time range

Posted: Wed Mar 19, 2014 3:42 pm
by lmiltchev
Great! I am marking this topic as "resolved".