Not rescheduling notifications if outside valid timeperiod
Posted: Thu Oct 17, 2013 8:01 am
Hi,
In http://nagios.sourceforge.net/docs/3_0/ ... tions.html it is stated:
So if a service goes down between 08:15-08:20, I don't get notified via mail. But the service remained down for another 2 hours, which were during the valid time period, and I still didn't get any notification.
This is the service definition.
How can I fix this?
Thanks.
In http://nagios.sourceforge.net/docs/3_0/ ... tions.html it is stated:
This isn't true. I have this time period defined:The fourth host or service filter that must be passed is the time period test. Each host and service definition has a option that specifies which time period contains valid notification times for the host or service. If the time that the notification is being made does not fall within a valid time range in the specified time period, no one gets contacted. If it falls within a valid time range, the notification gets passed to the next filter... Note: If the time period filter is not passed, Nagios will reschedule the next notification for the host or service (if its in a non-OK state) for the next valid time present in the time period. This helps ensure that contacts are notified of problems as soon as possible when the next valid time in time period arrives.
Code: Select all
define timeperiod{
timeperiod_name test
alias Except test Hours
monday 08:20-08:15
tuesday 08:20-08:15
wednesday 08:20-08:15
thursday 08:20-08:15
friday 08:20-08:15
saturday 08:20-08:15
sunday 08:20-08:15
}This is the service definition.
Code: Select all
define service{
use generic-service
service_description TEST
check_command check_nrpe!check_TEST
host_name some.host.here
notification_period test
}Thanks.