timeperiod for a particular host
timeperiod for a particular host
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?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: timeperiod for a particular host
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
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.