I am following the example on ZabbixAPI documentation and using the call..
curl -X POST -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","method":"history.get","params": { "history": 0, "itemids": ["22412"],"output":"extend"},"auth":"2f57038f7ea409a0c4c0ec 475753dbd8","id":2}' http://<ip>/api_jsonrpc.php
I get the result:
{"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params.","data":"Resource (history) does not exist"},"id":2}
I already saw on the database and there is a item with id 22412 on the history table.
Anyone knows what I am doing wrong?
curl -X POST -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","method":"history.get","params": { "history": 0, "itemids": ["22412"],"output":"extend"},"auth":"2f57038f7ea409a0c4c0ec 475753dbd8","id":2}' http://<ip>/api_jsonrpc.php
I get the result:
{"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params.","data":"Resource (history) does not exist"},"id":2}
I already saw on the database and there is a item with id 22412 on the history table.
Anyone knows what I am doing wrong?
Comment