Am 11.02.2015 um 13:23 schrieb Dustin Funk:
> Am 11.02.2015 um 13:02 schrieb icinga-users:
>> Hi,
>>
> 
> Hi,
> 
>> On 2015-02-11 12:57, Dustin Funk wrote:
>>>
>>> Is that a bug? Should i open an issue?
>>
>> This works for me:
>>
>> # cat hosts.conf
>> object Host "host-remote" {
>>   import "generic-host"
>>   address = "10.42.48.1"
>> }
>>
>> object Host "d-switch-1" {
>>   import "generic-host"
>>   address = "10.42.49.1"
>>   vars.parent = "host-remote"
>> }
>>
>> object Host "d-switch-2" {
>>   import "generic-host"
>>   address = "10.42.49.2"
>>   vars.parent = "d-switch-1"
>> }
>>
>> object Host "d-switch-3" {
>>   import "generic-host"
>>   address = "10.42.49.3"
>>   vars.parent = ""
>> }
>>
>> apply Dependency "switche" to Host {
>>   parent_host_name = host.vars.parent
>>   assign where host.vars.parent
>> }
> 
> Thank you!
> 

damn!

Shame on me. In the object Host "host-remote" is a wrong defined parent
value that does not exist.

Now icinga2 restarts!

Uff.

Many thanks to all!

Kind regards,
  nuts

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to