timeperiod for a particular host

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ejacobs
Posts: 9
Joined: Wed Dec 30, 2015 11:25 am

timeperiod for a particular host

Post 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?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: timeperiod for a particular host

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked