Zabbix API returns empty result when using parameter "limit" for method "trigger.get".
Example:
When using the following parameters
{"output":"extend","withLastEventUnacknowledged":1,"limit":5}for the "trigger.get" method Zabbix API returns empty result:
2 ----->
{"jsonrpc":"2.0","method":"trigger.get","params":
,"auth":"b6cb98469a14f7f1c818acab93f67844","id":2}
<-----
{"jsonrpc":"2.0","result":[],"id":2}But when using parameters
{"output":"extend","withLastEventUnacknowledged":1}got successful result:
{"jsonrpc":"2.0","result":[{"triggerid":"15048","expression":"
{16528}>0","description":"Host information was changed on
{HOSTNAME}","url":"","status":"0","value":"0","priority":"1","lastchange":"1301399382","dep_level":"0","comments":"","error":"","templateid":"10044","type":"0"},{"triggerid":"15146","expression":"
{16702}>1","description":"vm.memory.size[pfree].last(0)}>1","url":"","status":"0","value":"2","priority":"4","lastchange":"1297769020","dep_level":"0","comments":"","error":"Host is unavailable.","templateid":"0","type":"0"}