Page 1 of 1

Services inherit host template

Posted: Thu Aug 02, 2012 8:41 am
by nagniot
Hello everyone

I have found strange error in host definition. I have:
define host{
contact_groups mail_contact_group
#contacts sms_host_contact
}
I use this template for my host.
In template for services i have:
define service{
contact_groups mymail
}
Problem occurs when i'm deleting "#" from host template. Then i have strange situation. When i check configuration for host in Default Contacts/Groups hosts have mail_contact_group and sms_host_contact. This is good but when i also check service configuration, every service has mail_contact_group and sms_host_contact.
I don't want to use sms_host_contact for services.

How it is possible to inherit contacts for service from host template?

Do you have any idea?

Re: Services inherit host template

Posted: Thu Aug 02, 2012 10:11 am
by nscott
If you don't want that inherited from the host template, you can give the directive

contacts null

Which will override any thing that is further down the inheritance chain.

Re: Services inherit host template

Posted: Fri Aug 03, 2012 3:57 am
by nagniot
Thank you :)