Don't notify between 8pm and 6am

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
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Don't notify between 8pm and 6am

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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
}
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

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

Post by jkinning »

Fantastic! Thanks @benjaminsmith

Not sure how to close this post but I am good to go.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked