Hello all
First sorry for my english .
I'm working on teplate for LLD discovery JSON data from API and i have problem with creating item prototype.
For example :
I have LLD macro created from discovery with JSON path and value is hostname : example.host.net . When use this macro in item key prototype : hostname[{#MYMACRO}] , after discovery i have items with name like this : hostname["["example.host.net"]"] . It's possible to remove backslashes and quotes ? . When i try use this macro in item prototype http agent and place this macro in URL path , path not correct . Path is : /somewhere/["exmaple.host.net"]/anywhere .
Any idea how to make work ?
Many thanks for help me .
Regards
Michal
First sorry for my english .
I'm working on teplate for LLD discovery JSON data from API and i have problem with creating item prototype.
For example :
I have LLD macro created from discovery with JSON path and value is hostname : example.host.net . When use this macro in item key prototype : hostname[{#MYMACRO}] , after discovery i have items with name like this : hostname["["example.host.net"]"] . It's possible to remove backslashes and quotes ? . When i try use this macro in item prototype http agent and place this macro in URL path , path not correct . Path is : /somewhere/["exmaple.host.net"]/anywhere .
Any idea how to make work ?
Many thanks for help me .
Regards
Michal
Comment