This is a translation of the original English documentation page. Help us make it better.

1 Елементи веб-моніторингу

Огляд

Деякі нові елементи автоматично додаються для моніторингу під час створення веб-сценаріїв.

Усі елементи успадковують теги з веб-сценарію.

Scenario items

As soon as a scenario is created, Zabbix automatically adds the following items for monitoring.

Item Description
Download speed for scenario <Scenario> This item will collect information about the download speed (bytes per second) of the whole scenario, i.e. average for all steps.
Item key: web.test.in[Scenario,,bps]
Type: Numeric(float)
Failed step of scenario <Scenario> This item will display the number of the step that failed on the scenario. If all steps are executed successfully, 0 is returned.
Item key: web.test.fail[Scenario]
Type: Numeric(unsigned)
Last error message of scenario <Scenario> This item returns the last error message text of the scenario. A new value is stored only if the scenario has a failed step. If all steps are ok, no new value is collected.
Item key: web.test.error[Scenario]
Type: Character

The actual scenario name will be used instead of "Scenario".

Web monitoring items are added with a 30 day history and a 90 day trend retention period.

If scenario name starts with a doublequote or contains comma or square bracket, it will be properly quoted in item keys. In other cases no additional quoting will be performed.

These items can be used to create triggers and define notification conditions.

Приклад 1

Щоб створити тригер «Веб-сценарій не вдалося», ви можете визначити вираз тригера:

 last(/host/web.test.fail[сценарій])<>0

Обов’язково замініть «Сценарій» справжньою назвою сценарію.

Приклад 2

Щоб створити тригер «Помилка веб-сценарію» з корисним описом проблеми в назві тригера, ви можете визначити тригер із назвою:

 Помилка веб-сценарію "Сценарій": {ITEM.VALUE}

і тригерний вираз:

 length(last(/host/web.test.error[Scenario]))>0 and last(/host/web.test.fail[Scenario])>0

Обов’язково замініть «Сценарій» справжньою назвою сценарію.

Приклад 3

Щоб створити тригер «Веб-програма працює повільно», ви можете визначити вираз тригера:

 last(/host/web.test.in[Scenario,,bps])<10000

Обов’язково замініть «Сценарій» справжньою назвою сценарію.

Scenario step items

As soon as a step is created, Zabbix automatically adds the following items for monitoring.

Item Description
Download speed for step <Step> of scenario <Scenario> This item will collect information about the download speed (bytes per second) of the step.
Item key: web.test.in[Scenario,Step,bps]
Type: Numeric(float)
Response time for step <Step> of scenario <Scenario> This item will collect information about the response time of the step in seconds. Response time is counted from the beginning of the request until all information has been transferred.
Item key: web.test.time[Scenario,Step,resp]
Type: Numeric(float)
Response code for step <Step> of scenario <Scenario> This item will collect response codes of the step.
Item key: web.test.rspcode[Scenario,Step]
Type: Numeric(unsigned)

Actual scenario and step names will be used instead of "Scenario" and "Step" respectively.

Web monitoring items are added with a 30 day history and a 90 day trend retention period.

If scenario name starts with a doublequote or contains comma or square bracket, it will be properly quoted in item keys. In other cases no additional quoting will be performed.

These items can be used to create triggers and define notification conditions. For example, to create a "Zabbix GUI login is too slow" trigger, you can define a trigger expression:

last(/zabbix/web.test.time[ZABBIX GUI,Login,resp])>3