Page 1 of 1

timeperiod for a particular host

Posted: Thu Mar 03, 2016 2:53 pm
by ejacobs
I have a host defined and all of its service checks in one file. The host gets rebooted every morning, except Sunday. I know I can define an accommodating timeperiod but can I just use it in the host definition or do I need to use it in all the service definitions too?

Re: timeperiod for a particular host

Posted: Thu Mar 03, 2016 5:50 pm
by Box293
Because check_period is a required directive for a service, you will need to use it in all the service definitions as well (it's not possible to inherit from the host).

Here's a link to the documentation:
https://support.nagios.com/kb/article.php?id=356

Basically, it all comes down to your host and service definitions and their check intervals. If the host goes down hard before the service then it will suppress service notifications. Here's a detailed example of what I am talking about:

http://sites.box293.com/nagios/guides/c ... -intervals