Hello All,
I am trying to obtain the value of a usermacro defined in a host or template with Zabbix 1.8.10. I am sending the following json command which specifies the macro using a filter:
and I receive the response:
While the request and response seem valid, it is not the response I expected. The documentation indicates a number of items returned in the response, including the macro's associated value. Please see this reference.
Is there a setting that I need to enable or some other change I need to make? Thanks for your help!
I am trying to obtain the value of a usermacro defined in a host or template with Zabbix 1.8.10. I am sending the following json command which specifies the macro using a filter:
Code:
{"auth":"ce1e2f5efef9d18abfdb128fbdd625b2","method":"usermacro.get","id":1,"params":{"filter":{"macro":"{$MACROTEST}"}},"jsonrpc":"2.0"}
Code:
{"jsonrpc":"2.0","result":[{"hostmacroid":"4"}],"id":1}
Is there a setting that I need to enable or some other change I need to make? Thanks for your help!
Comment