Ad Widget

Collapse

ZABBIX 2.0 API method "Map.get" issues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cmesquita00
    Junior Member
    • Aug 2012
    • 1

    #1

    ZABBIX 2.0 API method "Map.get" issues

    Hi All -

    I'm current using zabbix 2.0, and Would like to run API method "Map.get" to manipulate MAPS etc... , however, when I run any search against that method the following error message returns.

    {"code":-32602,"message":"Invalid params.","data":"Resource (Map) does not exist"}


    I'm getting that error when run the following code ( based on API specification).

    {
    "jsonrpc":"2.0",
    "method":"Map.get",
    "params":{
    "filter": {"name": ["ZABBIX-Map"]},
    "selectSelements": "extend",
    "selectLinks": "extend",
    "output": "extend"
    },
    "auth":"2719027083bb5687cf79481c08002c03",
    "id":2
    }



    but the Name "Zabbix-Map" is valid as you can see in the following "Map.Exists" method:

    {
    "jsonrpc":"2.0",
    "method":"map.exists",
    "params":{
    "name": "ZABBIX-Map"
    },
    "auth":"2719027083bb5687cf79481c08002c03",
    "id":2
    }


    IT RETURNS TRUE.

    I would aprreciate any help regarding that issue!!! also, anybody know how to list what API methods and parameter are valid for my version ?, is there any METHOD that show me that ?

    Tks in advance,

    Cesar
Working...