Page 2 of 2

Re: Time Period w/ Service Definitions using Hostgroup Name

Posted: Thu May 28, 2015 8:32 am
by OUberLord
tmcdonald wrote:Services will automatically pick up the notification_period of a host if one is not set on the service. It is called Implied Inheritance:

http://nagios.sourceforge.net/docs/3_0/ ... nheritance
I had no idea this functionality existed; this seems exactly like what I am after. Let me dig into this, but in the mean time thank you for pointing this out.

Re: Time Period w/ Service Definitions using Hostgroup Name

Posted: Thu May 28, 2015 10:38 am
by lmiltchev
Let us know if this worked out for you. We will keep this topic open for a while.

Re: Time Period w/ Service Definitions using Hostgroup Name

Posted: Thu May 28, 2015 12:44 pm
by OUberLord
This definitely worked, but there is an unexpected consequence. Though the services are inheriting the notification_period from their associated hosts, it is causing a bit of havoc when I run the pre-flight check:

Code: Select all

Warning: Service 'memory pages per sec' on host 'servername' has no check time period defined!
Warning: Service 'operating system' on host 'servername' has no check time period defined!
Warning: Service 'time' on host 'servername' has no check time period defined!
Warning: Service 'uptime' on host 'servername' has no check time period defined!
....
Is there a way that I can make the pre-flight check not flag warnings as such?

Re: Time Period w/ Service Definitions using Hostgroup Name

Posted: Thu May 28, 2015 12:54 pm
by tmcdonald
That would require a patch to Core, I am afraid. I can assure you though, those warnings (as well as most warnings in general) are pretty harmless, if annoying.

Re: Time Period w/ Service Definitions using Hostgroup Name

Posted: Thu May 28, 2015 1:10 pm
by OUberLord
I figured as much, but also figured I'd ask just in case there was some lesser-known switch that I could flip on. Beyond that, I'm poking through the web interface to look at the resulting config for our hosts and services and it appears that it is exactly matching the anticipated settings. This seems like a rather elegant way of addressing the issue, so thanks again for pointing me towards the Implied Inheritance functionality.

Re: Time Period w/ Service Definitions using Hostgroup Name

Posted: Thu May 28, 2015 5:05 pm
by tgriep
Is it alright to close this post?