Page 1 of 1

Notification periods being ignored

Posted: Wed May 13, 2020 3:14 am
by turner2151
Good morning,

I have a wonderful setup which is all working fine and I have made some manual additions directly on the server. However, my notification periods are being ignored - emails are being sent at any hours, every hour for non critical servers / devices (which is how I have setup our "Production" notifications).


Example, one of the servers:

Code: Select all

define host {
      host_name                       TESTSERVER
      alias                           TESTSERVER
      address                         192.168.0.2
      use                             linux-server
      check_command                   check-host-alive
      max_check_attempts              1
      check_interval                  1
      retry_interval                  1
      check_period                    workhours
      check_freshness                 1
      contact_groups                  admins
      notification_interval           2
      notification_period             workhours
      notifications_enabled           1
      register                        1
      notification_interval           30

}

Example of timeperiods:

Code: Select all

define timeperiod {

    name                    workhours
    timeperiod_name         workhours
    alias                   Normal Work Hours

    monday                  11:00-17:00
    tuesday                 11:00-17:00
    wednesday               11:00-17:00
    thursday                11:00-17:00
    friday                  11:00-17:00
}
The timeperiods cfg file is also enabled in the nagios config.

Many thanks for any help in advance!

Re: Notification periods being ignored

Posted: Wed May 13, 2020 4:07 am
by turner2151
This can be closed, its fixed.

Re: Notification periods being ignored

Posted: Wed May 13, 2020 9:14 am
by benjaminsmith
Hi,
This can be closed, its fixed.
Excellent! Glad you were able to get it resolved.

Thanks for trying out Nagios XI and feel free to open another post if you have any new questions.

Benjamin
Nagios Support Team