Hi,
I would like to create an item (type:External check) and a custom trigger using ZabbixAPI 1.8.
When i execute the following code it creates the host but the item is left blank.
ZabbixAPI::query('host','create',array('host'=>'ho st1',"ip"=>"192.168.0.1","port"=>10050, "item"=>array('host'=>1host,'Description'=>'Simple _Ping','Type'=>'External check'), 'groups'=>array(1004)))
or die('error: '.print_r(ZabbixAPI::getLastError(),true));
Any suggestions would be appreciated.
Thanks,
Mike
I would like to create an item (type:External check) and a custom trigger using ZabbixAPI 1.8.
When i execute the following code it creates the host but the item is left blank.
ZabbixAPI::query('host','create',array('host'=>'ho st1',"ip"=>"192.168.0.1","port"=>10050, "item"=>array('host'=>1host,'Description'=>'Simple _Ping','Type'=>'External check'), 'groups'=>array(1004)))
or die('error: '.print_r(ZabbixAPI::getLastError(),true));
Any suggestions would be appreciated.
Thanks,
Mike
Comment