Derive service settings from hosts definition

Chris Beattie cbeattie at geninfo.com
Tue Jul 31 17:03:00 CEST 2012


On 7/30/2012 2:31 PM, Vladislav Staroselskiy wrote:
> Is there any way to derive certain service options from the host definition? Is there any default inheritance behavior for it?
...
> I really wish, service notification/contact options could be derived from hosts definitions to avoid this mess. If anyone has a
> suggestion on how to better organize it, I would also appreciate your feedback.

Nagios does almost exactly that, except for the enabling or disabling of 
notifications.

Services will inherit their contact_groups, notification_interval, and 
notification_period from their associated host if those three directives 
are not set in the service's definition.

Search for "implied inheritance" down the page here:
http://nagios.sourceforge.net/docs/3_0/objectinheritance.html

Also, you can use a + sign to signal additive inheritance, which comes 
in handy if you want to modify an implied inheritance without replacing 
it.  It's explained directly above implied inheritance on that page.

-- 
-Chris

Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately.
 

Thank you.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list