I’ struggling with importing services from a rest api call. The actual import is of course working fine. There is only three columns: name, color, url. In the sync rule I have chosen object type service. And the sync property mapping is set to name -> object_name, url -> notes_url, color -> vars.color.
I understand that I need to relate these services to a host (or hosts), but I don’t understand how to do that. There is two hosts I want to add these services to.
The error I get is: Exception while syncing Icinga\Module\Director\Objects\IcingaService batch-: Cannot store a Service object without a related host