Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Creating discovery pattern extension to add cmdb_key_value tags to cmdb_ci_linux_server

CBartram
Tera Contributor

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!

0 REPLIES 0