Zabbix Documentation 3.2

2.23.04.0 (current)In development:4.2 (devel)Unsupported:1.82.02.43.23.4

User Tools

Site Tools


manual:api:reference:item:object

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
manual:api:reference:item:object [2016/02/16 15:25]
127.0.0.1 external edit
manual:api:reference:item:object [2018/12/17 09:56] (current)
martins-v 'hostid' clarified to include both hosts and templates
Line 12: Line 12:
 | itemid ​ | string ​ | //​(readonly)//​ ID of the item.  | | itemid ​ | string ​ | //​(readonly)//​ ID of the item.  |
 | **delay** \\ (required) | integer | Update interval of the item in seconds. | | **delay** \\ (required) | integer | Update interval of the item in seconds. |
-| **hostid** \\ (required) | string | ID of the host that the item belongs to. | +| **hostid** \\ (required) | string | ID of the host or template ​that the item belongs to. | 
-| **interfaceid** \\ (required) | string ​ | ID of the item's host interface. Used only for host items. \\ \\ Optional for Zabbix agent (active), Zabbix internal, Zabbix trapper, Zabbix aggregate, database monitor and calculated items. |+| **interfaceid** \\ (required) | string ​ | ID of the item's host interface.\\ \\ Not required for template items. ​Optional for Zabbix agent (active), Zabbix internal, Zabbix trapper, Zabbix aggregate, database monitor and calculated items. |
 | **key_** \\ (required) | string | Item key. | | **key_** \\ (required) | string | Item key. |
 | **name** \\ (required) | string | Name of the item. | | **name** \\ (required) | string | Name of the item. |
Line 52: Line 52:
 | state | integer | //​(readonly)//​ State of the item. \\ \\ Possible values: \\ 0 - //​(default)//​ normal; \\ 1 - not supported. | | state | integer | //​(readonly)//​ State of the item. \\ \\ Possible values: \\ 0 - //​(default)//​ normal; \\ 1 - not supported. |
 | status | integer | Status of the item. \\ \\ Possible values: \\ 0 - //​(default)//​ enabled item; \\ 1 - disabled item. | | status | integer | Status of the item. \\ \\ Possible values: \\ 0 - //​(default)//​ enabled item; \\ 1 - disabled item. |
-| templateid | string | (readonly) ID of the parent template item. |+| templateid | string | (readonly) ID of the parent template item.\\ \\ //Hint//: Use the ''​hostid''​ property to specify the template that the item belongs to. |
 | trapper_hosts | string | Allowed hosts. Used only by trapper items. | | trapper_hosts | string | Allowed hosts. Used only by trapper items. |
 | trends | integer | Number of days to keep item's trends data. \\ \\ Default: 365. | | trends | integer | Number of days to keep item's trends data. \\ \\ Default: 365. |