[ZBX-5751] CDiscoveryRule get() not working with parameter 'selectGraphs' Created: 2012 Oct 26  Updated: 2017 May 30  Resolved: 2012 Nov 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 2.0.4rc1, 2.1.0
Fix Version/s: 2.0.4rc1, 2.1.0

Type: Incident report Priority: Major
Reporter: Toms (Inactive) Assignee: Oleg Egorov (Inactive)
Resolution: Fixed Votes: 0
Labels: api, discovery
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

have discovery rule (id: 23279) and graph prototypes in it.

Api call:
{
"jsonrpc":"2.0",
"method":"discoveryrule.get",
"params":

{ "itemids":[23279], "selectGraphs":"refer" }

,
"id":47,
"auth":"6bd880b1f963683fd908af4764bef817"
}

returns without graphs:
{
"jsonrpc": "2.0",
"result": [

{ "graphs": [], "itemid": "23279" }

],
"id": 47
}



 Comments   
Comment by Toms (Inactive) [ 2012 Oct 26 ]

CItemPrototype get() also does not return graphs:

{"jsonrpc":"2.0","method":"itemprototype.get","params":

{"itemids":[23282],"selectGraphs":"refer"}

,"id":67,"auth":"6bd880b1f963683fd908af4764bef817"}

oleg.egorov RESOLVED

Comment by Oleg Egorov (Inactive) [ 2012 Oct 29 ]

FIXED IN svn://svn.zabbix.com/branches/dev/ZBX-5751 r31136

Comment by Toms (Inactive) [ 2012 Oct 30 ]

As there might be serious conflicts, this should be re-fixed after ZBX-5740 merge.

oleg.egorov RESOLVED IN svn://svn.zabbix.com/branches/dev/ZBX-5751 r31150

Comment by Toms (Inactive) [ 2012 Oct 31 ]

(1) try the same call with "extend" instead of "refer", this should revile that there is unnecessary loop.

oleg.egorov RESOLVED IN svn://svn.zabbix.com/branches/dev/ZBX-5751 r31180

No need to write full svn, revision number is sufficient if svn is not changed.

"limitSelects" applies to each discovery rule separately

oleg.egorov RESOLVED IN r31202

tomtom
Create graph prototype with two prototype items.
those params with itemprototype.get():

{ "itemids": [ 27912, 27913 ], "selectGraphs": "refer" }

returns graphs only for first item:
{
"jsonrpc": "2.0",
"result": [
{
"graphs": [

{ "graphid": "905" }

],
"itemid": "27912"
},

{ "graphs": [], "itemid": "27913" }

],
"id": 55
}

oleg.egorov RESOLVED IN r31221

tomtom CLOSED

Comment by Oleg Egorov (Inactive) [ 2012 Nov 01 ]

Fixed trigger "limitSelects" in itemprototype.get

Comment by Toms (Inactive) [ 2012 Nov 05 ]

TESTED

Comment by Oleg Egorov (Inactive) [ 2012 Nov 05 ]

FIXED IN 2.0.4rc1 r31263 and 2.1.0 r31264
CLOSED

Generated at Fri Mar 29 17:46:27 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.