Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import unique id != hostname #42

Open
flohoff opened this issue Feb 23, 2024 · 0 comments
Open

Import unique id != hostname #42

flohoff opened this issue Feb 23, 2024 · 0 comments

Comments

@flohoff
Copy link

flohoff commented Feb 23, 2024

Hi,
i am trying to import fileshipper jsons containing host information and i am trying to use something different as a unique id than the hostname.

The reason is that i'd like to be able to track host renames from the external source by following the unique id. If we cant track renames the host would be deleted and recreated with the new name.

I fail to understand the possibilities of the unique id in the import rule. My impression was that the unique id in the import rule is "only" used for lifetime tracking e.g. if the id disappears the object is gone and should be deleted.

In the sync source i set the object_name from the real name from the import and store the "id" in a custom field in icinga director.

if i now click trigger sync twice i get a nice backtrace because the object already exists.

What i am missing or misunderstand?

Flo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant