Hello!
I wrote a script that creates a new host in Zabbix.
Everything works as it should, but when I add macro creation to the API it fails.
The script is written in bash and the macro creation looks like this:
The output looks like this:
if I remove the dollar sign, the output looks like:
What is happening? Does anyone know?
I wrote a script that creates a new host in Zabbix.
Everything works as it should, but when I add macro creation to the API it fails.
The script is written in bash and the macro creation looks like this:
Code:
\"macros\": [{\"macro\": \"{\$TEST}\",\"value\": \"12345\"}]
Code:
"message":"Invalid params.",
"data":"Invalid macro \"{}\": incorrect syntax near \"}\"."
Code:
"message":"Invalid params.",
"data":"Invalid macro \"{TEST}\": incorrect syntax near \"TEST}\"."