[ZBX-3743] Zabbix API returns empty result when using parameter "limit" for method "trigger.get" Created: 2011 Apr 19  Updated: 2017 May 30  Resolved: 2011 Oct 17

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 1.8.4, 1.8.5
Fix Version/s: 2.0.0

Type: Incident report Priority: Major
Reporter: Igor Danoshaites (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: api
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

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":

{"output":"extend","withLastEventUnacknowledged":1,"limit":5}

,"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"}



 Comments   
Comment by Igor Danoshaites (Inactive) [ 2011 Oct 17 ]

Confirm the fix in dev branch ZBX-3743.

Comment by Alexey Fukalov [ 2011 Oct 18 ]

svn://svn.zabbix.com/branches/1.8 22476

Generated at Fri Apr 19 06:06:00 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.