Page 1 of 1

Service not monitored whereas Notification period = 24X7

Posted: Fri Dec 01, 2017 10:36 am
by Frédéric GRANAT
Hi,
Given :
One host inheriting template having notification period = 24X7
One service on that host inheriting template having notification period = 24X7

27X7 time definition is (no exclusion periods) :

Time Definition Time Range
sunday 00:00-24:00
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00

I noticed that both host and services are not monitored from 8PM to 7PM.

How can I do to monitored on 24X7 ?

Re: Service not monitored whereas Notification period = 24X

Posted: Fri Dec 01, 2017 10:53 am
by lmiltchev
Can you PM me the name of the "problem" host/service, and your profile (profile.zip)?

Re: Service not monitored whereas Notification period = 24X

Posted: Fri Dec 08, 2017 6:08 am
by Frédéric GRANAT
Hi,
Can you PM me the name of the "problem" host/service?
=>Host = "ws-jiop22.cg.Ahp", service = "Services"

I uploaded the profile.

Rgds,

Frederic

Re: Service not monitored whereas Notification period = 24X

Posted: Fri Dec 08, 2017 11:25 am
by lmiltchev
I noticed that both host and services are not monitored from 8PM to 7PM.
Did you mean "8PM to 7AM"?

The reason I am asking you is because I see the following in your profile:

The "Services" service definition:

Code: Select all

define service {
	host_name			WS-JIOP22.cg.ahp
	service_description		Services
	use				windows-service
	register			1
	}
It uses the "windows-service" template:

Code: Select all

define service {
       name                          		windows-service
       use                           		windows
       ...
       register                    		0
}
which uses "windows" template:

Code: Select all

define service {
       name                          		windows
       use                           		generic
       ...
       check_period                  		sans_nuits
       register                    		0
}
which as the "sans_nuits" check period applied to it.

Code: Select all

define timeperiod {
	timeperiod_name               		sans_nuits
	alias                         		Sans les nuits
	saturday                      		07:00-20:00
	friday                        		07:00-20:00
	monday                        		07:00-20:00
	tuesday                       		07:00-20:00
	wednesday                     		07:00-20:00
	thursday                      		07:00-20:00
	sunday                        		07:00-20:00
	}
As you don't have a check_period defined on the service level for the "Services" service, the "sans_nuits" period will be used, which is 7:00am to 8:00pm every day. The time after 8:00pm ("8PM to 7AM") is not included.

Re: Service not monitored whereas Notification period = 24X

Posted: Mon Dec 11, 2017 9:32 am
by Frédéric GRANAT
Hi,
You're right, that was coming from the "windows" template (I didn't notice that when I look at that template).
You can close the post.

Thanks,

Frederic

Re: Service not monitored whereas Notification period = 24X

Posted: Mon Dec 11, 2017 10:24 am
by kyang
Sounds good! I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!