Literally copying and pasting the example from http://www.zabbix.com/documentation/...trigger/update results in error:
Anyone knows how to make it work?
Code:
# curl -i -X POST -H 'Content-Type:application/json' -d '{jsonrpc":"2.0","method":"trigger.update","params":[{"triggerid": "100100000010092","status": 0}],"auth":"5c905c0ed8a304f90a27a38f3a1fb578","id":2}' https://zabbix.domain.tld/api_jsonrpc.php
HTTP/1.1 200 OK
Server: nginx/0.7.65
Date: Sat, 16 Jun 2012 01:30:40 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.3.2-1ubuntu4.7ppa5~lucid1
{"jsonrpc":"2.0","error":{"code":-32700,"message":"Parse error","data":"Invalid JSON. An error occurred on the server while parsing the JSON text."},"id":null}