This is an old revision of the document!

1 Создание элемента данных


Для создания элемента данных в веб-интерфейсе Zabbix, выполните следующее:

  • Перейдите в: НастройкаУзлы сети
  • Нажмите на Элементы данных в строке узла сети
  • Нажмите на Создать элемент данных в правом верхнем углу экрана
  • В форме введите параметры для элемента данных


Атрибуты элемента данных:

Узел сети Select the host or template.
Интерфейс узла сети Select the host interface. This field is available when editing an item on the host level.
Имя This is how the item will be named.
The following macros can be used:
$1, $2…$9 - referring to the first, second… ninth parameter of the item key
For example: Free disk space on $1
If the item key is “vfs.fs.size[/,free]”, the description will automatically change to “Free disk space on /”
Тип Item type. See individual item type sections.
Ключ Item key.
The supported item keys can be found in individual item type sections.
The key must be unique within a single host.
If key type is 'Zabbix agent', 'Zabbix agent (active)', 'Simple check' or 'Zabbix aggregate', the key value must be supported by Zabbix agent or Zabbix server.
See also: the correct key format.
Тип информации Type of data as stored in the database after performing conversions, if any.
Numeric (unsigned) - 64bit unsigned integer
Numeric (float) - floating point number
Character - character (string) data limited to 255 bytes
Log - log file. Must be set for keys log[].
Text - text of unlimited size
Тип данных Data type is used for integer items in order to specify the expected data type:
Boolean - textual representation translated into either 0 or 1. Thus, 'TRUE' is stored as 1 and 'FALSE' is stored as 0. All values are matched in a case-insensitive way. Currently recognized values are, for:
TRUE - true, t, yes, y, up, running, enabled, available
FALSE - false, f, no, n, down, unused, disabled, unavailable
Additionally, any non-zero numeric value is considered to be TRUE and zero is considered to be FALSE.
Octal - data in octal format
Decimal - data in decimal format
Hexadecimal - data in hexadecimal format
Zabbix will automatically perform conversion to numeric.
Единица измерения If a unit symbol is set, Zabbix will add post processing to the received value and display it with the set unit postfix.
By default, if the raw value exceeds 1000, it is divided by 1000 and displayed accordingly. For example, if you set bps and receive a value of 881764, it will be displayed as 881.76 Kbps.
Special processing is used for B (byte) units, which are divided by 1024. Thus, if units are set to B, Zabbix will display:
1 as 1B
1024 as 1KB
1536 as 1.5KB
Special processing is used if the following time-related units are used:
unixtime - translated to “ hh:mm:ss”
uptime - translated to “hh:mm:ss” or “N days, hh:mm:ss”
For example, if you receive the value as 881764 (seconds), it will be displayed as “10 days, 04:56:04”
s - translated to “yyy mmm ddd hhh mmm sss ms”; parameter is treated as number of seconds.
For example, if you receive the value as 881764 (seconds), it will be displayed as “10d 4h 56m”
Only 3 upper major units are shown, like “1m 15d 5h” or “2h 4m 46s”. If there are no days to display, only two levels are displayed - “1m 5h” (no minutes, seconds or milliseconds are shown). Will be translated to “< 1 ms” if the value is less than 0.001.
Использовать множитель Pre-process received values.
Do not use - do not pre-process received values
Custom multiplier - multiply received values by value defined in Custom multiplier
Use this option to convert values received in KB, MBps, etc into B, Bps. Otherwise Zabbix cannot correctly set prefixes (K, M, G etc).
Пользовательский множитель Multiply all received value by this integer or floating-point value.
Интервал обновления (в сек) Refresh this item every N seconds.
Note: If set to '0', the item will not be polled. However, if a flexible interval also exists with a non-zero value, the item will be polled during the flexible interval duration.
Переменные интервалы You can create exceptions to Update interval. For example:
Delay: 10, Period: 1-5,09:00-18:00 - will set the refresh to every 10 seconds for working hours. Otherwise default update interval will be used.
If multiple flexible intervals overlap, the smallest Delay value is used for the overlapping period.
See Time period specification page for description of the Period format.
Note: If set to '0', the item will not be polled during the flexible interval duration and will resume polling according to the Update interval once the flexible interval period is over.
Хранение истории
(в днях)
Number of days to keep detailed history in the database. Older data will be removed by Housekeeper.
It is recommended to keep the recorded values for the smallest possible number of days to reduce the size of value history in the database. Instead of keeping long history of values, you can keep longer data of trends.
Хранение динамики изменений
(в днях)
Keep aggregated (hourly min, max, avg, count) detailed history for N days in the database. Older data will be removed by Housekeeper.
Note: Keeping trends is not available for non-numeric data - character, log and text.
Состояние Active - active (normal) status. Zabbix will process this item.
Disabled - item is disabled. This item will not be processed.
Not supported - item is not supported by Zabbix or SNMP agent. This item will not be processed, however Zabbix may try to periodically set status of such items to Active if configured.
Хранение значения As is - no pre-processing
Delta (speed per second) - evaluate value as (value-prev_value)/(time-prev_time), where
value - current value
value_prev - previously received value
time - current timestamp
prev_time - timestamp of previous value
This setting is extremely useful to get speed per second for a constantly growing value.
Note: If current value is smaller than the previous value, Zabbix discards that difference (stores nothing) and waits for another value. This helps to work correctly with, for instance, a wrapping (overflow) of 32-bit SNMP counters.
Delta (simple change) - evaluate as (value-prev_value), where
value - current value
value_prev - previously received value
Отображение значения Apply value mapping to this item. Value mapping does not change received values, it is for displaying data only.
It works with integer items only.
For example, “Windows service states”.
Формат времени журнала Available for items of type Log only. Supported placeholders:
* y: Year (0001-9999)
* M: Month (01-12)
* d: Day (01-31)
* h: Hour (00-23)
* m: Minute (00-59)
* s: Second (00-59)
If left blank the timestamp will not be parsed.
For example, consider the following line from the Zabbix agent log file:
“ 23480:20100328:154718.045 Zabbix agent started. Zabbix 1.8.2 (revision 11211).”
It begins with six character positions for PID, followed by date, time, and the rest of the line.
Log time format for this line would be “pppppp:yyyyMMdd:hhmmss”.
Note that “p” and “:” chars are just placeholders and can be anything but “yMdhms”.
Группы элементов данных Link item to one or more applications.
Item will
populate host
inventory field
You can select a host inventory field that the value of item will populate. This will work if automatic inventory population is enabled for the host.
Описание Enter an item description.
Группа If you select a host group and click on Do the item will be added to the hosts of that host group.

Вы также можете создать элемент данных открыв уже существующий элемент данных, нажать на кнопку Клонировать и затем сохранить под другим именем.

При редактировании элемента данных уровня шаблона на уровне узла сети, некоторое количество полей доступно только для чтения. Вы можете воспользоваться ссылкой из заголовка формы и перейти на уровень шаблона и отредактировать элемент данных там, имея ввиду, что изменение элемента данных коснется всех узлов сети к которым присоединен шаблон.

Неподдерживаемые элементы данных

Элемент данных может стать неподдерживаемым, если его значение не было получено по каким-то причинам. Такие элементы данных будут перепроверены через определенный интервал времени, настраиваемый в разделе Администрирования.