Hello all.
Sorry for my bad english.
I want to create trigger with API.
But how?
I have installed zabcon.
this code create item
But how to create trigger.
Sorry for my bad english.
I want to create trigger with API.
But how?
I have installed zabcon.
this code create item
PHP Code:
#!/usr/bin/ruby
require './zabbixapi.rb'
zbx=ZbxAPI.new(url)
zbx.login(login,password)
name = "test"
hostid = 10161
item_p = {
'description'=>name,
'key_'=>"my.key",
'hostid'=>hostid,
'type'=>'0'
'data_type'=>0,
'value_type'=>0,
'units'=>"%" }
uid = zabbix.item.create(item_p)
Comment