Zabbix Documentation 5.2

3.04.04.45.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

User Tools

Site Tools


manual:config:items:itemtypes:calculated

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
manual:config:items:itemtypes:calculated [2016/10/25 05:44]
martins-v restoring accidentally deleted info
manual:config:items:itemtypes:calculated [2020/04/24 10:41] (current)
martins-v string comparison allowed (ZBXNEXT-702); decided to remove example
Line 1: Line 1:
-==== - #7 Calculated items ====+==== 7 Calculated items ====
  
-=== Overview ===+=== Overview ===
  
 With calculated items you can create calculations on the basis of other items. With calculated items you can create calculations on the basis of other items.
Line 11: Line 11:
 To use calculated items, choose the item type **Calculated**. ​ To use calculated items, choose the item type **Calculated**. ​
  
-=== Configurable fields ===+=== Configurable fields ===
  
 The **key** is a unique item identifier (per host). You can create any key name using supported symbols. The **key** is a unique item identifier (per host). You can create any key name using supported symbols.
Line 34: Line 34:
  
 Unlike trigger expressions,​ Zabbix processes calculated items according to the item update interval, not upon receiving a new value. Unlike trigger expressions,​ Zabbix processes calculated items according to the item update interval, not upon receiving a new value.
 +
 +<​note>​If the calculation result is a float value it will be trimmed to an integer if the calculated item type of information is //Numeric (unsigned)//​.</​note>​
  
 A calculated item may become unsupported in several cases: A calculated item may become unsupported in several cases:
Line 47: Line 49:
  
 Support for calculated items was introduced in Zabbix 1.8.1.\\ Starting from Zabbix 3.2 calculated items in some cases may involve unsupported items as described in [[:​manual/​appendix/​triggers/​functions#​functions_and_unsupported_items|functions and unsupported items]], [[:​manual/​config/​triggers/​expression#​expressions_with_unsupported_items_and_unknown_values|Expressions with unsupported items and unknown values]] and [[:​manual/​config/​triggers/​expression#​operators|Operators]]. Support for calculated items was introduced in Zabbix 1.8.1.\\ Starting from Zabbix 3.2 calculated items in some cases may involve unsupported items as described in [[:​manual/​appendix/​triggers/​functions#​functions_and_unsupported_items|functions and unsupported items]], [[:​manual/​config/​triggers/​expression#​expressions_with_unsupported_items_and_unknown_values|Expressions with unsupported items and unknown values]] and [[:​manual/​config/​triggers/​expression#​operators|Operators]].
-=== Usage examples ===+ 
 +=== Usage examples ===
  
 == Example 1 == == Example 1 ==
Line 82: Line 85:
 Take note of how double quotes are escaped within the quoted key: Take note of how double quotes are escaped within the quoted key:
   last("​grpsum[\"​video\",​\"​net.if.out[eth0,​bytes]\",​\"​last\"​]"​) / last("​grpsum[\"​video\",​\"​nginx_stat.sh[active]\",​\"​last\"​]"​) ​   last("​grpsum[\"​video\",​\"​net.if.out[eth0,​bytes]\",​\"​last\"​]"​) / last("​grpsum[\"​video\",​\"​nginx_stat.sh[active]\",​\"​last\"​]"​) ​
 +