-
Incident report
-
Resolution: Fixed
-
Blocker
-
1.9.3 (alpha)
-
latest trunk rev 18820
Host already linked to template before creating item by API.
as result - items in the real host does not start to monitor because it has no interface in the DB.
Host availability is marked as "Invalid port number []"
Item created by zabcon.
Request:
raw json {"auth":"$auth","method":"item.create","id":163,"params":
,"jsonrpc":"2.0"}
Answer:
{:class=>:raw, :result=>{"itemids"=>["25447"]}}
DB (item in the host):
mysql> SELECT `key_`, `description`, `interfaceid` FROM `items` WHERE `itemid` =25449;
-----------------------------------------------------------
key_ | description | interfaceid |
-----------------------------------------------------------
test.echo[my_test_text] | Test key created by API | NULL |
-----------------------------------------------------------
1 row in set (0,00 sec)