On Wed, Jan 13, 2016 at 03:54:29PM +0000, Michael Friedrich wrote:
> > For this i would need a Host beeing able to depend on
> > a _service_ on a different host.
> >
> > From the Documentation this is not supported as when i leave
> > out the child_service (I want a host dependency on a service
> > on the parent host) it is automatically a Host dependency.
> 
> Icinga 2 supports that, but I’m curious how your configuration looks in 
> detail.

I'll try than - I have an inventory system which contains all the
information needed for this - its just a matter of writing/exporting
it to an icinga2 configuration. As i said - i already do so for
stuff like simple dependencys e.g. link bundles, subinterfaces
host parenting. I did this previously for Nagios 1 which did not
support hosts depending on services so i left this out.

The Documentation is a little misleading then:

http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/object-types#objecttype-dependency

parent_host_name        Required. The parent host.
parent_service_name     Optional. The parent service. If omitted this 
dependency object is treated as host dependency.
child_host_name         Required. The child host.
child_service_name      Optional. The child service. If omitted this dependency 
object is treated as host dependency.

If you leave of parent of child service its a host dependency.

Flo
-- 
Florian Lohoff                                                 f...@zz.de
      We need to self-defend - GnuPG/PGP enable your email today!

Attachment: signature.asc
Description: Digital signature

_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to