Icinga / icingaweb2-module-director

The Director aims to be your new favourite Icinga config deployment tool. Director is designed for those who want to automate their configuration deployment and those who want to grant their “point & click” users easy access to the configuration.
https://icinga.com/docs/director/latest
GNU General Public License v2.0
414 stars 202 forks source link

Missing import modifier to check for existing director host #2881

Open slalomsk8er opened 4 months ago

slalomsk8er commented 4 months ago

Expected Behavior

It is easy to create a import source, that creates services and the sync will not fail because there wasn't a host object to attach the service to.

Current Behavior

Sync rule will fail on the first row where the host object can't be found in the director.

Possible Solution

Add a modifier to drop rows with invalid/unknown hosts.

Steps to Reproduce (for bugs)

Create a import and sync rule with the x509 module as source and try to attach a services named "x509 - HOST/IP:PORT" to HOST.

Your Environment

slalomsk8er commented 4 months ago

https://community.icinga.com/t/how-to-avoid-exception-while-syncing-failed-to-load-icinga-host/13397/4

nilmerg commented 2 months ago

ref/IP/53158