Page 1 of 1

Don't notify between 8pm and 6am

Posted: Thu May 02, 2019 6:45 am
by jkinning
I am trying to figure out the Timeperiods to create a notification time period that would not notify between the hours of 19:45-6:15. Giving a 15 minute buffer each way. On the weekends I want 24x7 so would this be correct?

Sunday - 00:00-24:00
Monday - 06:15-19:45
Tuesday - 06:15-19:45
Wednesday - 06:15-19:45
Thursday - 06:15-19:45
Friday - 06:15-19:45
Saturday - 00:00-24:00

Re: Don't notify between 8pm and 6am

Posted: Thu May 02, 2019 2:07 pm
by benjaminsmith
Hi @jkinning,

That looks good. You're timeperiod defintiion would look something like this:

Code: Select all

define timeperiod {
    timeperiod_name         mytimeperiod
    alias                   notification times
    sunday                  00:00-24:00
    monday                  06:15-19:45
    tuesday                 06:15-19:45
    wednesday               06:15-19:45
    thursday                06:15-19:45
    friday                  06:15-19:45
    saturday                00:00-24:00
}

Re: Don't notify between 8pm and 6am

Posted: Fri May 03, 2019 7:09 am
by jkinning
Fantastic! Thanks @benjaminsmith

Not sure how to close this post but I am good to go.

Re: Don't notify between 8pm and 6am

Posted: Fri May 03, 2019 9:10 am
by benjaminsmith
Hello @jkinning,
Fantastic! Thanks @benjaminsmith
Not sure how to close this post but I am good to go.
Great. Closing this out.

Thank you for using the Nagios Support Forum.