Ad Widget

Collapse

create Graph using PHP-API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gaditek
    Junior Member
    • Mar 2011
    • 1

    #1

    create Graph using PHP-API

    Dear All,

    I am using Community class for PHP to work with API.

    All is good, but I am stucked here in CREATING graph based for itemid.

    $added_ids = ZabbixAPI::fetch_array('graph','create',array(name =>"testing","itemid"=>"22452"));

    in DEBUG MODE, i am getting this

    Response decoded: (Array ( [jsonrpc] => 2.0 [error] => Array ( [code] => -32500 [message] => Application error. [data] => Missing items for graph "testing" ) [id] => 1 ) ITEMS: Array ( [0] => )


    Please help. !
    Thanks
Working...