kuhn-ruess / cmdbsyncer

Rule Based Syncronisation System with Checkmk and Ansible Support
MIT License
41 stars 9 forks source link

cmdbsyncer 3.7b2.13 failed to push to netbox 4.0.11 with "Cannot create Host" #40

Closed h0-online closed 3 weeks ago

h0-online commented 1 month ago

unfortunately there is occuring another issue when executing ./cmdbsyncer netbox export_hosts [Netbox-Account] image seems to be connection was established from cmdbsyncer to netbox but getting response from netbox that a related object was not found, which should be normal as there are only 3 manually entered test-devices in netbox currently (should be entered as first dump from cmdbsyncer to netbox)

Bastian-Kuhn commented 1 month ago

That's no bug, that is the missing configuration. You need to link the attributes you imported to Attributes the Syncer can either create or use in Netbox. It's described in: https://cmdbsyncer.readthedocs.io/en/latest/netbox/ header: Fields witch need reference. The Last line of the Error shows the Problem returned from Netbox. Netbox complains that there is no Device Type with ID 1 which is the Fallback ID, if no configuration is Missing. It would be the first Device Type you created manually in Netbox if you don't want them created by Syncer.