Service not monitored whereas Notification period = 24X7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Service not monitored whereas Notification period = 24X7

Post 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 ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Service not monitored whereas Notification period = 24X

Post by lmiltchev »

Can you PM me the name of the "problem" host/service, and your profile (profile.zip)?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: Service not monitored whereas Notification period = 24X

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Service not monitored whereas Notification period = 24X

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: Service not monitored whereas Notification period = 24X

Post 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
kyang

Re: Service not monitored whereas Notification period = 24X

Post 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!
Locked