Sync rule for Hosts

Hello everybody,

when i create sync rule for Hosts and add properties “imports” then i see it’s will modify objects when i click to “check for changes” but when i click “trigger” button i got a error "This Sync Rule failed when last checked at 2019-08-03 22:34:16: Exception while syncing

Icinga\Module\Director\Objects\IcingaHost icinga-master: Undefined offset: 26070

Please help me :slight_smile:

Combing syncrules with host templates (Imports) is tricky and a bit dangerous, as all existing imports will be overwritten:

If this is what you want you must that sure that $imports is an array.

1 Like

I’am icinga2 configuration migration to director and we have vicinty of 7500 hosts. I couldn’t update these hosts one by one on directory :slight_smile:

I used icingacli director host set and solve my problem, thanks for your reply.

icingacli director host set ‘hostname’ --imports existing_host_temp

1 Like