Notification time intervals - invalid time range

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Notification time intervals - invalid time range

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Notification time intervals - invalid time range

Post 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
	}
Be sure to check out our Knowledgebase for helpful articles and solutions!
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re: Notification time intervals - invalid time range

Post by jpipitone »

OK - I've added this to timeperiods.cfg - how would our users select this config now?
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re: Notification time intervals - invalid time range

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Notification time intervals - invalid time range

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re: Notification time intervals - invalid time range

Post by jpipitone »

Ok. Is there any way to add the time period per user?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Notification time intervals - invalid time range

Post 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.
Former Nagios employee
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re: Notification time intervals - invalid time range

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Notification time intervals - invalid time range

Post by lmiltchev »

Great! I am marking this topic as "resolved".
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked