Page 1 of 1

Custom Notification Interval?

Posted: Fri Apr 26, 2013 3:17 pm
by and1100
Hi,

Is it possible to set a custom interval? For example, we would like to set up alerting to only happen during the hours of 6:00pm-> 5:15pm on the next day. We do not care about 5:16pm->5:59pm.

I haven't been able to track down a way to do it...

Thank you.

Re: Custom Notification Interval?

Posted: Fri Apr 26, 2013 3:20 pm
by slansing
Have you taken a look at this page?

http://nagios.sourceforge.net/docs/3_0/ ... timeperiod

This may be the right direction.

Re: Custom Notification Interval?

Posted: Fri Apr 26, 2013 3:54 pm
by and1100
Hi Slansing,

This appears to be EXACTLY what I am looking for. Thank you!!

Re: Custom Notification Interval?

Posted: Fri Apr 26, 2013 4:04 pm
by and1100
Just to confirm that I understand the functionality:


define timeperiod{

timeperiod_name nonworkours

alias Non-Work Hours

sunday 00:00-24:00 ; Every Sunday of every week

monday 17:16-17:59

tuesday 17:16-17:59

wednesday 17:16-17:59

thursday 17:16-17:59

friday 17:16-17:59

saturday 00:00-24:00 ; Every Saturday of every week

}


and I would then configure notification_period to 'nonworkhours'?

Thanks again.

Re: Custom Notification Interval?

Posted: Sun Apr 28, 2013 1:36 pm
by scottwilkerson
That sounds backwards, I would setup the times something like this

Code: Select all

define timeperiod{

timeperiod_name workhours
alias Work Hours
monday 00:00-17:15,18:00-24:00
tuesday 00:00-17:15,18:00-24:00
wednesday 00:00-17:15,18:00-24:00
thursday 00:00-17:15,18:00-24:00
friday 00:00-17:15,18:00-24:00

}
and then configure notification_period to 'workhours'?

Re: Custom Notification Interval?

Posted: Mon Apr 29, 2013 8:42 am
by and1100
Hi Scott,

Thank you. I will give this a go.

Thanks again for your assistance.

Re: Custom Notification Interval?

Posted: Mon Apr 29, 2013 11:43 am
by slansing
Awesome, let us know how Scott's suggestion works for you or if you need additional help on this!