Custom Notification Interval?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

Custom Notification Interval?

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Custom Notification Interval?

Post by slansing »

Have you taken a look at this page?

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

This may be the right direction.
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

Re: Custom Notification Interval?

Post by and1100 »

Hi Slansing,

This appears to be EXACTLY what I am looking for. Thank you!!
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

Re: Custom Notification Interval?

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Custom Notification Interval?

Post 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'?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

Re: Custom Notification Interval?

Post by and1100 »

Hi Scott,

Thank you. I will give this a go.

Thanks again for your assistance.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Custom Notification Interval?

Post by slansing »

Awesome, let us know how Scott's suggestion works for you or if you need additional help on this!
Locked