Creating discovery pattern extension to add cmdb_key_value tags to cmdb_ci_linux_server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2022 10:49 AM
I've created a discovery pattern extension for the cmdb_ci_linux_server CI where I lookup several attributes from an external (ldap) source and successfully set the various fields in the cmdb_ci_linux_server record...
However I also want to create "tags" for some of these values in the cmdb_key_value table. **These are all on-prem systems (NO CLOUD service involved so the various cloud discovery options that set tags automatically don't apply here).
I've got an array created with 3 records in it with values that look correct... However I can't seem to get the className to ever show up in the payload. I'm guessing I need to "link" the cmdb_key_value table to the CI or pattern somehow to make it "available"? I've tried "transform table" and "union table" actions in the script referencing the $cmdb_key_value table; but as I said nothing ever shows up in the payload. (I have a pre/post processing script that also looks for the values to substitute the server hostname with its sys_id value - and that className never shows up).
Thanks in advance!