Hi,
I'm trying to update an already existing macro using the host.update api function.
$VAR1 = {
'jsonrpc' => '2.0',
'error' => {
'data' => 'Macro "{$SNMP_RO}" already exists on "xxx".',
'message' => 'Invalid params.',
'code' => -32602
},
'id' => 7
};
The above is the returned result. I understand that it already exists, that is intention of the update call.
When manually deleting the macro from the frontend, the update query does work. However, I'm trying to glue our backend to Zabbix and since I'm using this macro in almost all items, deleting and then adding it again isn't an option.
- duplicates
-
ZBX-5047 host.update method in 2.0 cannot update host macro
- Closed