[Solved] Add contact to all services of a host
Posted: Wed Oct 07, 2020 9:44 am
Hi,
I define services in two files:
* some services are in a file with the host definition
* some services are in a "services_for_all_hosts.cfg" with a line like:
I would like to add a contact to all the services of a given host, but if I add this contact in the definition of the host, the services defined in "services_for_all_hosts.cfg" are not linked with the contact, only with the contacts listed in the template used for their definition.
How could I make this contact added to the services defined in "services_for_all_hosts.cfg", but only for a given host?
EDIT: I should add that all the contacts are handled with contact_groups objects in templates, and I'm trying to add the contact with a contacts field
I define services in two files:
* some services are in a file with the host definition
* some services are in a "services_for_all_hosts.cfg" with a line like:
Code: Select all
host_name *,!localhostHow could I make this contact added to the services defined in "services_for_all_hosts.cfg", but only for a given host?
EDIT: I should add that all the contacts are handled with contact_groups objects in templates, and I'm trying to add the contact with a contacts field