Ad Widget

Collapse

Add elements

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mike13
    Member
    • Apr 2010
    • 30

    #1

    Add elements

    Hi,

    Does anyone know how to add elements to map using php API.

    I've tried the following with no success:

    Code:
    ZabbixAPI::query('sysmaps','create',array('sysmapid'=>'40','elementid'=>'11154','label'=>'LDAP_Server','label_location'=>'2','x'=>'437','y'=>'119'))
    or die('error script: '.print_r(ZabbixAPI::getLastError(),true));
    Any suggestions would be appreciated.

    Thanks,
    Mike.
Working...