ZABBIX BUGS AND ISSUES

CDiscoveryRule get() not working with parameter 'selectGraphs'

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0.4rc1, 2.1.0
  • Fix Version/s: 2.0.4rc1, 2.1.0
  • Component/s: API (A)
  • Labels:
  • Zabbix ID:
    NA

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
}

Activity

Hide
Toms added a comment - - edited

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

Show
Toms added a comment - - edited 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
Hide
Oleg Egorov added a comment -

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

Show
Oleg Egorov added a comment - FIXED IN svn://svn.zabbix.com/branches/dev/ZBX-5751 r31136
Hide
Toms added a comment - - edited

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

Show
Toms added a comment - - edited 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
Hide
Toms added a comment - - edited

(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

Toms
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

Toms CLOSED

Show
Toms added a comment - - edited (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 Toms 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 Toms CLOSED
Hide
Oleg Egorov added a comment -

Fixed trigger "limitSelects" in itemprototype.get

Show
Oleg Egorov added a comment - Fixed trigger "limitSelects" in itemprototype.get
Hide
Toms added a comment -

TESTED

Show
Toms added a comment - TESTED
Hide
Oleg Egorov added a comment -

FIXED IN 2.0.4rc1 r31263 and 2.1.0 r31264
CLOSED

Show
Oleg Egorov added a comment - FIXED IN 2.0.4rc1 r31263 and 2.1.0 r31264 CLOSED

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: