zabbix_export:
  version: '7.4'
  template_groups:
    - uuid: 6da90d55fdc54abeab33e1848e54fd35
      name: MC04-DSL-3U
  templates:
    - uuid: bd4fe938e938427199d05efef61d0a67
      template: 'Template MC04-DSL-3U'
      name: 'Template MC04-DSL-3U'
      description: 'Шаблон мониторинга аппаратуры MC04-DSL-3U'
      groups:
        - name: MC04-DSL-3U
      items:
        - uuid: f5d6129c69be4208a3c7a15e083967dc
          name: 'Список всех плат'
          type: ZABBIX_ACTIVE
          key: 'MCv2.boardlist[]'
          delay: 10m
          history: '0'
          value_type: TEXT
      discovery_rules:
        - uuid: 09691328527b44b586d02607ac47d12b
          name: Плата
          type: DEPENDENT
          key: all-boards
          item_prototypes:
            - uuid: b0a3c3238a3541ffb6596d37adcde02e
              name: '{#BOARDNAME} slot {#SLOT}: status'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .3.0]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 345a1e80985d456b9826b0a12ec0d3d9
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .3.0])=1'
                  name: '{#BOARDNAME} slot {#SLOT}: Общая авария платы'
                  priority: HIGH
                  description: 'Авария платы {#BOARDNAME} в слоте {#SLOT}.'
                  manual_close: 'YES'
                - uuid: 6f2866832c8d446f9daab4fe417afcfd
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .3.0])>1'
                  name: '{#BOARDNAME} slot {#SLOT}: Общая авария платы'
                  priority: WARNING
                  description: 'Несрочная авария платы {#BOARDNAME} в слоте {#SLOT}.'
                  manual_close: 'YES'
          master_item:
            key: 'MCv2.boardlist[]'
        - uuid: 8aa61106cfc34253ab8864f1eba1473f
          name: BS-220
          type: DEPENDENT
          key: boards-BS-220
          filter:
            conditions:
              - macro: '{#BOARDTYPE}'
                value: ^24$
          item_prototypes:
            - uuid: 8f0070f848b64681b385a9102f0013bb
              name: '{#BOARDNAME} slot {#SLOT}: Ubat'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .5.0, name={#BOARDNAME}]'
              value_type: FLOAT
              units: V
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.01'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: c59ae9eda16741898b33e1a58950db0e
              name: '{#BOARDNAME} slot {#SLOT}: Uout'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .6.0, name={#BOARDNAME}]'
              value_type: FLOAT
              units: V
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.01'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 04d13e5478a14bc8b334f0bded1b55b3
              name: '{#BOARDNAME} slot {#SLOT}: Ibat'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .7.0, name={#BOARDNAME}]'
              value_type: FLOAT
              units: A
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.001'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: cf999353c8094717bd10557368e59361
              name: '{#BOARDNAME} slot {#SLOT}: Iout'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .8.0, name={#BOARDNAME}]'
              value_type: FLOAT
              units: A
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.001'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 195c27e6611a415dae33ae416da9e893
              name: '{#BOARDNAME} slot {#SLOT}: No input'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .10.0, name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: ac3ff22d9f934614abbf4684a6407a08
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .10.0, name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Нет входного напряжения'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 0c26bb5826c047dfbdf84799538f29e6
              name: '{#BOARDNAME} slot {#SLOT}: No output'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.12.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: be8e42ba164c48f3be4626d086ff840c
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.12.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Нет выходного напряжения'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: c65da8234b6441588b60355d72305352
              name: '{#BOARDNAME} slot {#SLOT}: Battery low'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .14.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 341a01abfa7e474aa5c2d4741ac7b621
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .14.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Батарея разряжена'
                  priority: AVERAGE
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: b571cb4bdee24bef8f84116ffbbaeefc
              name: '{#BOARDNAME} slot {#SLOT}: Battery OFF'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .16.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: b6809cf1e5a3438fac1e6a6a6dd47907
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .16.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Батарея отключена'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 59d975935e844a7186573853619a4dd1
              name: '{#BOARDNAME} slot {#SLOT}: reserv'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.18.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 22895c4fe1134d6eaf291c80517f4875
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.18.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Переход на резерв'
                  priority: AVERAGE
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 192f6caa308644cca1a267c7d3270ab4
              name: '{#BOARDNAME} slot {#SLOT}: overload'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.20.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: ff49cd6979b84eb89ddb1979517aef29
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.20.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Перегрузка'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 03a94e1ae64c48faa63545918ad1b70a
              name: '{#BOARDNAME} slot {#SLOT}: Авария термодатчика'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.27.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: a5bcf646d094482dafe867d7a0da2db1
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.27.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Авария термодатчика'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
          master_item:
            key: 'MCv2.boardlist[]'
        - uuid: 06ee9907b00f4a57af382628dcfe65e5
          name: EM-04/MI-04
          type: DEPENDENT
          key: boards-EM-04
          filter:
            conditions:
              - macro: '{#BOARDTYPE}'
                value: ^(5|25)$
          master_item:
            key: 'MCv2.boardlist[]'
        - uuid: 3c1abd32055a41168aa553a36d2e76b8
          name: FO-08/FS-08
          type: DEPENDENT
          key: boards-FO-08
          filter:
            conditions:
              - macro: '{#BOARDTYPE}'
                value: '^[34]$'
          master_item:
            key: 'MCv2.boardlist[]'
        - uuid: 99ba1f74170a4159b1481b02ebdcdcee
          name: GE-04/PE-04/MC-02/PE-14
          type: DEPENDENT
          key: boards-GE-04
          filter:
            conditions:
              - macro: '{#BOARDTYPE}'
                value: ^(6|22|42|45)$
          item_prototypes:
            - uuid: e6bc17c399b74a6696428b2e8780637c
              name: '{#BOARDNAME} slot {#SLOT} port 1: current'
              type: DEPENDENT
              key: 'ge04.port.current[{#SLOT}, 1]'
              value_type: FLOAT
              units: A
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      data = eval(value);
                      return (data[5] | data[6] << 8) * 61.035 / 1000000;
                - type: DISCARD_UNCHANGED
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.0,name={#BOARDNAME},format=array]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 5bcd2f93336346c4a11de6e75ff02be7
              name: '{#BOARDNAME} slot {#SLOT} port 2: current'
              type: DEPENDENT
              key: 'ge04.port.current[{#SLOT}, 2]'
              value_type: FLOAT
              units: A
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      data = eval(value);
                      return (data[9] | data[10] << 8) * 61.035 / 1000000;
                - type: DISCARD_UNCHANGED
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.0,name={#BOARDNAME},format=array]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 7395bc1897794d6da025516747c7da41
              name: '{#BOARDNAME} slot {#SLOT} port 3: current'
              type: DEPENDENT
              key: 'ge04.port.current[{#SLOT}, 3]'
              value_type: FLOAT
              units: A
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      data = eval(value);
                      return (data[13] | data[14] << 8) * 61.035 / 1000000;
                - type: DISCARD_UNCHANGED
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.0,name={#BOARDNAME},format=array]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 436316177b0441459f3cd25f63bd19ab
              name: '{#BOARDNAME} slot {#SLOT} port 4: current'
              type: DEPENDENT
              key: 'ge04.port.current[{#SLOT}, 4]'
              value_type: FLOAT
              units: A
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      data = eval(value);
                      return (data[17] | data[18] << 8) * 61.035 / 1000000;
                - type: DISCARD_UNCHANGED
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.0,name={#BOARDNAME},format=array]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 1809a1b54b8e409f9f2696256dbf7388
              name: '{#BOARDNAME} slot {#SLOT} port 1: PoE status'
              type: DEPENDENT
              key: 'ge04.port.status[{#SLOT}, 1]'
              valuemap:
                name: 'PE-04 port status'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[1]'
                - type: JAVASCRIPT
                  parameters:
                    - 'return value & 7;'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - '3600'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.0,name={#BOARDNAME},format=array]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: fc9e114b37db480c9c39268de884f07a
              name: '{#BOARDNAME} slot {#SLOT} port 2: PoE status'
              type: DEPENDENT
              key: 'ge04.port.status[{#SLOT}, 2]'
              valuemap:
                name: 'PE-04 port status'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[2]'
                - type: JAVASCRIPT
                  parameters:
                    - 'return value & 7;'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - '3600'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.0,name={#BOARDNAME},format=array]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 12b556b24394490ab36a2ea4fad5acb9
              name: '{#BOARDNAME} slot {#SLOT} port 3: PoE status'
              type: DEPENDENT
              key: 'ge04.port.status[{#SLOT}, 3]'
              valuemap:
                name: 'PE-04 port status'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[3]'
                - type: JAVASCRIPT
                  parameters:
                    - 'return value & 7;'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - '3600'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.0,name={#BOARDNAME},format=array]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: e79a22fcd73740018b96a14b7cee23c1
              name: '{#BOARDNAME} slot {#SLOT} port 4: PoE status'
              type: DEPENDENT
              key: 'ge04.port.status[{#SLOT}, 4]'
              valuemap:
                name: 'PE-04 port status'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[4]'
                - type: JAVASCRIPT
                  parameters:
                    - 'return value & 7;'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - '3600'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.0,name={#BOARDNAME},format=array]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: dbce25767cf949cea996b1a2e3e5d03a
              name: '{#BOARDNAME} slot {#SLOT} port 1: voltage'
              type: DEPENDENT
              key: 'ge04.port.voltage[{#SLOT}, 1]'
              value_type: FLOAT
              units: V
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      data = eval(value);
                      return (data[7] | data[8] << 8) * 5.92 / 1000;
                - type: DISCARD_UNCHANGED
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.0,name={#BOARDNAME},format=array]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 2cdcc2d72aae46cea2a0558bda33df17
              name: '{#BOARDNAME} slot {#SLOT} port 2: voltage'
              type: DEPENDENT
              key: 'ge04.port.voltage[{#SLOT}, 2]'
              value_type: FLOAT
              units: V
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      data = eval(value);
                      return (data[11] | data[12] << 8) * 5.92 / 1000;
                - type: DISCARD_UNCHANGED
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.0,name={#BOARDNAME},format=array]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 780796a50f2940ed90ac93b458ea2f58
              name: '{#BOARDNAME} slot {#SLOT} port 3: voltage'
              type: DEPENDENT
              key: 'ge04.port.voltage[{#SLOT}, 3]'
              value_type: FLOAT
              units: V
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      data = eval(value);
                      return (data[15] | data[16] << 8) * 5.92 / 1000;
                - type: DISCARD_UNCHANGED
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.0,name={#BOARDNAME},format=array]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: f78fcfd8a03141df876231d8f12ff5cc
              name: '{#BOARDNAME} slot {#SLOT} port 4: voltage'
              type: DEPENDENT
              key: 'ge04.port.voltage[{#SLOT}, 4]'
              value_type: FLOAT
              units: V
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      data = eval(value);
                      return (data[19] | data[20] << 8) * 5.92 / 1000;
                - type: DISCARD_UNCHANGED
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.0,name={#BOARDNAME},format=array]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 4b7c851452f54602af7d3383e12e02a5
              name: '{#BOARDNAME} slot {#SLOT}: PoE status'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .11.0,name={#BOARDNAME},format=array]'
              value_type: TEXT
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
          master_item:
            key: 'MCv2.boardlist[]'
        - uuid: e07219f25bdb4d9d98ac3d7b57eb88b8
          name: GE-12/GE-16/GE-108
          type: DEPENDENT
          key: boards-GE-12
          filter:
            conditions:
              - macro: '{#BOARDTYPE}'
                value: ^(17|19|32)$
          item_prototypes:
            - uuid: ef4ba2087f2c408496ed26d77158b059
              name: '{#BOARDNAME} slot {#SLOT}: sync status'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.14.0,name={#BOARDNAME}]'
              valuemap:
                name: 'GE-12 sync status'
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - 'return (value >> 12) & 3;'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
          master_item:
            key: 'MCv2.boardlist[]'
        - uuid: 0fd0f9fc592f462c85f78886e653111b
          name: PS-001
          type: DEPENDENT
          key: boards-PS-001
          filter:
            conditions:
              - macro: '{#BOARDTYPE}'
                value: ^9$
          item_prototypes:
            - uuid: 2dc0615a9ecc47b594af9cccdf6acf64
              name: '{#BOARDNAME} slot {#SLOT}: Uin'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .5.0,name={#BOARDNAME}]'
              value_type: FLOAT
              units: V
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.1'
            - uuid: 80ba5b6937c84846a998b8c7aef0774b
              name: '{#BOARDNAME} slot {#SLOT}: Uout'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .6.0,name={#BOARDNAME}]'
              value_type: FLOAT
              units: V
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.1'
            - uuid: 2795fd067a554772b4335f921b37daf0
              name: '{#BOARDNAME} slot {#SLOT}: Iout'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .7.0,name={#BOARDNAME}]'
              value_type: FLOAT
              units: A
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.0001'
            - uuid: 4fa3157dc1d44d798335fabef6472f35
              name: '{#BOARDNAME} slot {#SLOT}: Переход на резерв'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .9.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              trigger_prototypes:
                - uuid: 97624b6eada84784b869126ca265cc23
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .9.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Переход на резерв'
                  priority: WARNING
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 7cca2c4794a44dc6b29796c1054f4773
              name: '{#BOARDNAME} slot {#SLOT}: Загрузка 100%'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .10.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              trigger_prototypes:
                - uuid: 478c148dc6ab4daba08f275a487bbfb8
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .10.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Загрузка 100%'
                  priority: WARNING
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: d33b49b3ce3345f38eb1963efa507116
              name: '{#BOARDNAME} slot {#SLOT}: Отсутствует 12 В'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .11.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              trigger_prototypes:
                - uuid: 3b230fb067594830b1bb7a5ce8ed41f6
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .11.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Отсутствует 12 В'
                  priority: HIGH
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 661826deca7248a5858baef06b37c826
              name: '{#BOARDNAME} slot {#SLOT}: NO reserve'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .12.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              trigger_prototypes:
                - uuid: 3407e88c9ca54fcab100a6cd72f78817
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .12.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Нет напряжения на резервном источнике (DC)'
                  priority: WARNING
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 87241fe9d03f4d06aa426112325c5f01
              name: '{#BOARDNAME} slot {#SLOT}: ON reserve'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .13.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              trigger_prototypes:
                - uuid: bd77f461877d4d8fb3b11f211356b306
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .13.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Переход на резервный источник питания (DC)'
                  priority: WARNING
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
          master_item:
            key: 'MCv2.boardlist[]'
        - uuid: 51b7a261e5844c1786bd7de2e4718f1c
          name: PS-24D/PS-220D/PS-48D/PS-650DT
          type: DEPENDENT
          key: boards-PS-24D
          filter:
            conditions:
              - macro: '{#BOARDTYPE}'
                value: ^(26|29|30|34|35)$
          item_prototypes:
            - uuid: afb734d925ce4670ad25afeafaf2da06
              name: '{#BOARDNAME} slot {#SLOT}: Uin'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.5.0, name={#BOARDNAME}]'
              value_type: FLOAT
              units: V
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.01'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 53804cb63c9d45dfaa61b9fea7d95b8f
              name: '{#BOARDNAME} slot {#SLOT}: Uout'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.6.0, name={#BOARDNAME}]'
              value_type: FLOAT
              units: V
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.01'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 020bf80b9a164980bfdab7f104357117
              name: '{#BOARDNAME} slot {#SLOT}: load'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.7.0, name={#BOARDNAME}]'
              units: '%'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 62f50c47c9a148f6b7629955f953b811
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.7.0, name={#BOARDNAME}])>80'
                  name: '{#BOARDNAME} slot {#SLOT}: Нагрузка более $1%'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: e34940bb2822451d91705dd93efbe18d
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.7.0, name={#BOARDNAME}])>90'
                  name: '{#BOARDNAME} slot {#SLOT}: Нагрузка более $1%'
                  priority: AVERAGE
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 3f77f0deeb1d46639aba9eeb2f8dba1c
              name: '{#BOARDNAME} slot {#SLOT}: Iout'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.8.0, name={#BOARDNAME}]'
              value_type: FLOAT
              units: A
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.001'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 362c1628c2b14ebe8d71aa9edeb9cbe9
              name: '{#BOARDNAME} slot {#SLOT}: no input'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.10.0, name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 237062443baf4428a6a0fd44d9bc740c
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.10.0, name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Низкое входное напряжение'
                  priority: AVERAGE
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: b122ae6d79fd4b67bafeebc56d808058
              name: '{#BOARDNAME} slot {#SLOT}: no output'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.12.0, name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 3fbd063ea3324a35bef6f440b07f36b3
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.12.0, name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Отсутствует напряжение 12 В'
                  priority: AVERAGE
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 2ecf559a194e47f2b6a27f30c556f6e4
              name: '{#BOARDNAME} slot {#SLOT}: reserv'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.18.0, name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: b061fe3891a5437b97dddf1f6cb1c58f
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.18.0, name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Переход на резерв'
                  priority: AVERAGE
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 6e76b7c9e1af4aea847e7f510ab6b16b
              name: '{#BOARDNAME} slot {#SLOT}: overload'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.20.0, name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 5d060f58f1334c6ab5f8b9494fcd4ab0
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.20.0, name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Перегрузка'
                  priority: AVERAGE
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 1b429fe1b40a4bd082605de746df0ca6
              name: '{#BOARDNAME} slot {#SLOT}: внутренняя температура'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.24.0, name={#BOARDNAME}]'
              units: °C
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 85e61172badd43b89512067d34dc9636
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.24.0, name={#BOARDNAME}])>70'
                  name: '{#BOARDNAME} slot {#SLOT}: Температура выше $1° C'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 65c036c791a441a3b8da0b78850f9f35
              name: '{#BOARDNAME} slot {#SLOT}: авария термодатчика'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.26.0, name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 6785c4c005b24d41820ae93f03e6a661
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.26.0, name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Авария термодатчика'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
          master_item:
            key: 'MCv2.boardlist[]'
        - uuid: 89290af3bb024add9f941fe1629b75ea
          name: PS-220/PS-48
          type: DEPENDENT
          key: boards-PS-220
          filter:
            conditions:
              - macro: '{#BOARDTYPE}'
                value: '^1[34]$'
          item_prototypes:
            - uuid: 34fcfd84143c4ca3b5ceeacf0421fb0d
              name: '{#BOARDNAME} slot {#SLOT}: Uin'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.5.0,name={#BOARDNAME}]'
              value_type: FLOAT
              units: V
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.1'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: cb598e20e9eb42cfb0321f5a11b69ff6
              name: '{#BOARDNAME} slot {#SLOT}: Uout'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.6.0,name={#BOARDNAME}]'
              value_type: FLOAT
              units: V
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.1'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 4afff0d3b26a43e7918e72f3a6764ac6
              name: '{#BOARDNAME} slot {#SLOT}: Iout'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.7.0,name={#BOARDNAME}]'
              value_type: FLOAT
              units: V
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.0001'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 3162c14e7c7d46578b2648fa2f91ced7
              name: '{#BOARDNAME} slot {#SLOT}: reserv'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.9.0,name={#BOARDNAME}]'
              delay: 10m
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 36d750d0ba8e47ddb7526caee5cdeb7e
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.9.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Переход на резерв'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 4dc1c38b6f804c229087b4f0650c548a
              name: '{#BOARDNAME} slot {#SLOT}: overload'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.10.0,name={#BOARDNAME}]'
              delay: 10m
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 60883c22acad4c7b8472f2c02a6947ae
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.10.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Загрузка 100%'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: e695fa6eb7e343b19930a0df10431b60
              name: '{#BOARDNAME} slot {#SLOT}: no output'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.11.0,name={#BOARDNAME}]'
              delay: 10m
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: acdcc5185c604f11b502d32301351991
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.11.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Отсутствует 12 В'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
          master_item:
            key: 'MCv2.boardlist[]'
        - uuid: f840b62a78a344ff9e0472109f49a20e
          name: RP-01/RP-400/RP-650
          type: DEPENDENT
          key: boards-RP-01
          filter:
            conditions:
              - macro: '{#BOARDTYPE}'
                value: ^(15|36|27)$
          item_prototypes:
            - uuid: c3cb045de8914f3db30221c2bde6bc63
              name: '{#BOARDNAME} slot {#SLOT}: Uin'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .5.0, name={#BOARDNAME} ]'
              value_type: FLOAT
              units: V
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.1'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 39d2bf98be6b4c8a92da4b859fde1f43
              name: '{#BOARDNAME} slot {#SLOT}: Iin'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .6.0, name={#BOARDNAME} ]'
              value_type: FLOAT
              units: A
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.0001'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 0535cca018b54ce69ded847a4171bace
              name: '{#BOARDNAME} slot {#SLOT}: Uout'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .7.0, name={#BOARDNAME} ]'
              value_type: FLOAT
              units: V
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.1'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 94dab6b7d9c94893840dbd209c29ebd7
              name: '{#BOARDNAME} slot {#SLOT}: Iout'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .8.0, name={#BOARDNAME} ]'
              value_type: FLOAT
              units: A
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.0001'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: e80456e10a7b4496bb36be25a8361720
              name: '{#BOARDNAME} slot {#SLOT}: Power off'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .9.0, name={#BOARDNAME} ]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: c1a9c86b78d940179612f12967b8164d
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .9.0, name={#BOARDNAME} ])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Power off'
                  priority: WARNING
                  manual_close: 'YES'
            - uuid: 32e8a5474ea94f1eb96c501067ae99a2
              name: '{#BOARDNAME} slot {#SLOT}: overload'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .10.0, name={#BOARDNAME} ]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 5854b5c72cf44195a775a79c1cf72c7a
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .10.0, name={#BOARDNAME} ])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: overload'
                  priority: AVERAGE
                  manual_close: 'YES'
            - uuid: 961edbf566254956bed1658763d679ae
              name: '{#BOARDNAME} slot {#SLOT}: High power'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .12.0, name={#BOARDNAME} ]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: c80149399203479694c83246040adb0c
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .12.0, name={#BOARDNAME} ])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: High power'
                  priority: HIGH
                  manual_close: 'YES'
            - uuid: 7b20727bb55e4d64b4f3ea51e979be83
              name: '{#BOARDNAME} slot {#SLOT}: Low power'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .13.0, name={#BOARDNAME} ]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: aafe2314f01c43039e4f374afa3e26c9
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .13.0, name={#BOARDNAME} ])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Low power'
                  priority: HIGH
                  manual_close: 'YES'
            - uuid: 490477960bf4480689e1ac3f1200c673
              name: '{#BOARDNAME} slot {#SLOT}: Температура'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .15.0, name={#BOARDNAME} ]'
              value_type: FLOAT
              units: '° C'
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      if(value > 128) value -= 256;
                      return value;
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 3bfc4eec49c34288b2e0b0635fc69b94
              name: '{#BOARDNAME} slot {#SLOT}: No input'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .16.0, name={#BOARDNAME} ]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: eea9e8748a60499dae6e5fa993819fce
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .16.0, name={#BOARDNAME} ])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Нет входного напряжения'
                  priority: HIGH
                  manual_close: 'YES'
            - uuid: 24203768dc9f47399b0e22fb21ced769
              name: '{#BOARDNAME} slot {#SLOT}: Ток утечки'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .18.0, name={#BOARDNAME} ]'
              value_type: FLOAT
              units: A
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      if(value > 100) value = 256 - (value & 255);
                      return value;
                - type: MULTIPLIER
                  parameters:
                    - '0.001'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: b7d09a49c4944a71acab0bd6a7f131f0
              name: '{#BOARDNAME} slot {#SLOT}: Отключение ДП по утечке'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .19.0, name={#BOARDNAME} ]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: b8cee1a076a342e8883150344c65b89d
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .19.0, name={#BOARDNAME} ])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Отключение ДП по утечке'
                  priority: HIGH
                  manual_close: 'YES'
            - uuid: 734883fa64e34badb3e968b14c63598e
              name: '{#BOARDNAME} slot {#SLOT}: Защита от утечек отключена'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .21.0, name={#BOARDNAME} ]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 11daeefb90084168a85f6e61fb656e2f
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .21.0, name={#BOARDNAME} ])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Защита от утечек отключена'
                  priority: WARNING
                  manual_close: 'YES'
          master_item:
            key: 'MCv2.boardlist[]'
        - uuid: 107fabeaa0ae43da9ea1ec69cb833b18
          name: SM
          type: DEPENDENT
          key: boards-SM
          filter:
            conditions:
              - macro: '{#BOARDTYPE}'
                value: ^(2|10|40)$
          item_prototypes:
            - uuid: 17f54f6a25a1438b87bb91a10fd19008
              name: '{#BOARDNAME} slot {#SLOT} DSLA: маска аварии'
              type: DEPENDENT
              key: 'dsla.mask[{#SLOT}]'
              trends: '0'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[2]'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .5.0, name={#BOARDNAME}, format=array]'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: e8f08350234646cc85bbe67145a8557a
              name: '{#BOARDNAME} slot {#SLOT} DSLB: маска аварии'
              type: DEPENDENT
              key: 'dslb.mask[{#SLOT}]'
              trends: '0'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[9]'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .5.0, name={#BOARDNAME}, format=array]'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 00d7ebf4ce5041158ac97e060c9944be
              name: '{#BOARDNAME} slot {#SLOT} E1: маска аварии'
              type: DEPENDENT
              key: 'e1.mask[{#SLOT}]'
              trends: '0'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[16]'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .5.0, name={#BOARDNAME}, format=array]'
              tags:
                - tag: Application
                  value: E1
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: bc3f4c7a2ef6444aad328fde7d3b83c0
              name: '{#BOARDNAME} slot {#SLOT}: config'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .5.0, name={#BOARDNAME}, format=array]'
              delay: 10m
              value_type: TEXT
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 64a6626b2deb4ec4bf88a912158a0789
              name: '{#BOARDNAME} slot {#SLOT} DSLA: LOS'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .11.0, name={#BOARDNAME}]'
              delay: 10m
              trends: '0'
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 0ae39be3263846da9d11e69e723b0787
              name: '{#BOARDNAME} slot {#SLOT} DSLB: LOS'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .12.0, name={#BOARDNAME}]'
              delay: 10m
              trends: '0'
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 586ce110fa2d4766bd3e73d1cd57c5d2
              name: '{#BOARDNAME} slot {#SLOT} DSLA: remote alarm'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .13.0, name={#BOARDNAME}]'
              delay: 10m
              trends: '0'
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: b55ce1f537ba4b569b1322d1a8a94dee
              name: '{#BOARDNAME} slot {#SLOT} DSLB: remote alarm'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .14.0, name={#BOARDNAME}]'
              delay: 10m
              trends: '0'
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: a4c5131445f54806a4f23d8db9570fcd
              name: '{#BOARDNAME} slot {#SLOT} E1: LOS'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .15.0, name={#BOARDNAME}]'
              delay: 10m
              trends: '0'
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Application
                  value: E1
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 28d2a75c8afd48d185166682e2ae171b
              name: '{#BOARDNAME} slot {#SLOT}: вскрытие НРП'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .16.0, name={#BOARDNAME}]'
              delay: 10m
              trends: '0'
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 8437ab0f225c4d9bbc3dd71e4c453463
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .16.0, name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: вскрытие НРП'
                  priority: HIGH
                  manual_close: 'YES'
          trigger_prototypes:
            - uuid: 33d018474ff7495e898289b4f50b549b
              expression: 'last(/Template MC04-DSL-3U/dsla.mask[{#SLOT}])=0 and last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .11.0, name={#BOARDNAME}])>0'
              name: '{#BOARDNAME} slot {#SLOT} DSLA: LOS'
              priority: HIGH
              manual_close: 'YES'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 6d7e7e38ff8a4210a74d325ba3b5e242
              expression: 'last(/Template MC04-DSL-3U/dsla.mask[{#SLOT}])=0 and last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .13.0, name={#BOARDNAME}])>0'
              name: '{#BOARDNAME} slot {#SLOT} DSLA: Авария удаленной стороны'
              priority: WARNING
              manual_close: 'YES'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: f326a22e21bf4ab5ad4ea792049c180e
              expression: 'last(/Template MC04-DSL-3U/dslb.mask[{#SLOT}])=0 and last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .12.0, name={#BOARDNAME}])>0'
              name: '{#BOARDNAME} slot {#SLOT} DSLB: LOS'
              priority: HIGH
              manual_close: 'YES'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 025e5c4b559449a39697fc9c7692ee46
              expression: 'last(/Template MC04-DSL-3U/dslb.mask[{#SLOT}])=0 and last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .14.0, name={#BOARDNAME}])>0'
              name: '{#BOARDNAME} slot {#SLOT} DSLB: Авария удаленной стороны'
              priority: WARNING
              manual_close: 'YES'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 96aab46caec14b5bb07a09b7ba373dd7
              expression: 'last(/Template MC04-DSL-3U/e1.mask[{#SLOT}])=0 and last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .15.0, name={#BOARDNAME}])>0'
              name: '{#BOARDNAME} slot {#SLOT} E1: LOS'
              priority: HIGH
              manual_close: 'YES'
              tags:
                - tag: Application
                  value: E1
                - tag: Board
                  value: '{#BOARDNAME}'
          master_item:
            key: 'MCv2.boardlist[]'
        - uuid: ca2ce2db0fa54c34985be63ba56f9e5c
          name: SW-01
          type: DEPENDENT
          key: boards-SW-01
          filter:
            conditions:
              - macro: '{#BOARDTYPE}'
                value: ^1$
          enabled_lifetime_type: DISABLE_AFTER
          enabled_lifetime: 1h
          item_prototypes:
            - uuid: 03b3ec2d7afe4384984fe3dcace964f8
              name: '{#BOARDNAME} slot {#SLOT}: CPU idle time'
              type: DEPENDENT
              key: 'cpu.idle[{#SLOT}]'
              value_type: FLOAT
              units: '%'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[3]'
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .14.1.0, name=SW-01]'
              tags:
                - tag: Application
                  value: CPU
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: f0bb814a9ac34ccfa46f6eb0ac181459
              name: '{#BOARDNAME} slot {#SLOT}: CPU iowait time'
              type: DEPENDENT
              key: 'cpu.iowait[{#SLOT}]'
              value_type: FLOAT
              units: '%'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[4]'
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .14.1.0, name=SW-01]'
              tags:
                - tag: Application
                  value: CPU
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 9ff9cad1569b4b07a12df1816dc85bef
              name: '{#BOARDNAME} slot {#SLOT}: CPU irq time'
              type: DEPENDENT
              key: 'cpu.irq[{#SLOT}]'
              value_type: FLOAT
              units: '%'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[5]'
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .14.1.0, name=SW-01]'
              tags:
                - tag: Application
                  value: CPU
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 86eb35b5bfac4be7ad4afba45cfb6b1a
              name: '{#BOARDNAME} slot {#SLOT}: CPU load average 1 min'
              type: DEPENDENT
              key: 'cpu.la1[{#SLOT}]'
              value_type: FLOAT
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[0]'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .14.2.0, name=SW-01]'
              tags:
                - tag: Application
                  value: CPU
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 57f7dfbe6076473bb59f6f92c40d1c05
                  expression: 'avg(/Template MC04-DSL-3U/cpu.la1[{#SLOT}],#2)>2.5'
                  name: 'SW-01 slot {#SLOT}: Загрузка CPU выше $1'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: CPU
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: e31fd0c8ca8047a79591fdc502a0113e
              name: '{#BOARDNAME} slot {#SLOT}: CPU load average 5 min'
              type: DEPENDENT
              key: 'cpu.la5[{#SLOT}]'
              value_type: FLOAT
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[1]'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .14.2.0, name=SW-01]'
              tags:
                - tag: Application
                  value: CPU
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 843b6407959847ffa4d33c27e82a8d81
              name: '{#BOARDNAME} slot {#SLOT}: CPU load average 15 min'
              type: DEPENDENT
              key: 'cpu.la15[{#SLOT}]'
              value_type: FLOAT
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[2]'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .14.2.0, name=SW-01]'
              tags:
                - tag: Application
                  value: CPU
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: c46291397a214c4f872b8cc7445a08bb
              name: '{#BOARDNAME} slot {#SLOT}: CPU nice time'
              type: DEPENDENT
              key: 'cpu.nice[{#SLOT}]'
              value_type: FLOAT
              units: '%'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[1]'
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .14.1.0, name=SW-01]'
              tags:
                - tag: Application
                  value: CPU
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 55d1c7aa810f48e8bfc15517dc9e99ca
              name: '{#BOARDNAME} slot {#SLOT}: CPU softirq time'
              type: DEPENDENT
              key: 'cpu.softirq[{#SLOT}]'
              value_type: FLOAT
              units: '%'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[6]'
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .14.1.0, name=SW-01]'
              tags:
                - tag: Application
                  value: CPU
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: e4ba16ad9bfc4dbd937c7b12b2bcd593
              name: '{#BOARDNAME} slot {#SLOT}: CPU system time'
              type: DEPENDENT
              key: 'cpu.system[{#SLOT}]'
              value_type: FLOAT
              units: '%'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[2]'
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .14.1.0, name=SW-01]'
              tags:
                - tag: Application
                  value: CPU
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 95690000a7ff4a6a8615637416d479ff
              name: '{#BOARDNAME} slot {#SLOT}: CPU user time'
              type: DEPENDENT
              key: 'cpu.user[{#SLOT}]'
              value_type: FLOAT
              units: '%'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[0]'
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .14.1.0, name=SW-01]'
              tags:
                - tag: Application
                  value: CPU
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 71c6de2564fc4feb9bacda84c3741bb8
              name: '{#BOARDNAME} slot {#SLOT} Eth port CPU: Traffic Rx'
              type: DEPENDENT
              key: 'ethCPU-octrx[{#SLOT}]'
              value_type: FLOAT
              units: pkt/s
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[3]'
                - type: CHANGE_PER_SECOND
                - type: MULTIPLIER
                  parameters:
                    - '8'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .13.0, name=SW-01]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: d420f1b0aec64984ae6bc6086678382e
              name: '{#BOARDNAME} slot {#SLOT} Eth port CPU: Traffic Tx'
              type: DEPENDENT
              key: 'ethCPU-octtx[{#SLOT}]'
              value_type: FLOAT
              units: pkt/s
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[2]'
                - type: CHANGE_PER_SECOND
                - type: MULTIPLIER
                  parameters:
                    - '8'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .13.0, name=SW-01]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 912c97e7dde845318de838d577f3176c
              name: '{#BOARDNAME} slot {#SLOT} Eth port CPU: Packets Rx'
              type: DEPENDENT
              key: 'ethCPU-pktrx[{#SLOT}]'
              value_type: FLOAT
              units: pkt/s
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[1]'
                - type: CHANGE_PER_SECOND
                - type: MULTIPLIER
                  parameters:
                    - '8'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .13.0, name=SW-01]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 3ec77c5f9ccd4e2a8d9445ef2a99c76e
              name: '{#BOARDNAME} slot {#SLOT} Eth port CPU: Packets Tx'
              type: DEPENDENT
              key: 'ethCPU-pkttx[{#SLOT}]'
              value_type: FLOAT
              units: pkt/s
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[0]'
                - type: CHANGE_PER_SECOND
                - type: MULTIPLIER
                  parameters:
                    - '8'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .13.0, name=SW-01]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: a387e33eea104616ad39408cc5a4afd5
              name: '{#BOARDNAME} slot {#SLOT}: SFP data'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .9.0, name=SW-01, format=array]'
              value_type: TEXT
              description: 'Идентификация и состояние модуля SFP'
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      if(value.length < 2 || value[0] != '[' || value[value.length - 1] != ']') throw 'Invalid SFP data';
                      var v = eval(value);
                      var sum = 0;
                      for(var i = 0; i < 63; i++) sum += v[i];
                      if((sum & 255) != v[63]) throw 'Incorrect base block checksum';
                      return value;
              tags:
                - tag: Application
                  value: SFP
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: b44837c1c242433dbf8412bef19c82be
              name: '{#BOARDNAME} slot {#SLOT}: isMaster'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .10.0, name=SW-01]'
              delay: 10m
              trends: '0'
              trigger_prototypes:
                - uuid: f284f8bd8940401a885db7014b8690ff
                  expression: 'min(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .10.0, name=SW-01],5m)>0 and {#SLOT}=10'
                  name: 'SW-01 slot {#SLOT}: плата в активном режиме'
                  priority: HIGH
                - uuid: d204c59bf091415896be40eb86766953
                  expression: 'max(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .10.0, name=SW-01],5m)=0 and {#SLOT}=9'
                  name: 'SW-01 slot {#SLOT}: плата не в активном режиме'
                  priority: HIGH
            - uuid: ad6e37af569043c5ac3462059ca61686
              name: '{#BOARDNAME} slot {#SLOT} Eth port CPU: EthStat'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .13.0, name=SW-01]'
              value_type: TEXT
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: cbfca98a67244f029df6e8376b16bbc0
              name: '{#BOARDNAME} slot {#SLOT}: CPU usage'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .14.1.0, name=SW-01]'
              value_type: TEXT
              tags:
                - tag: Application
                  value: CPU
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: c4f810a94ae544a99a466c16883e0621
              name: '{#BOARDNAME} slot {#SLOT}: CPU load average'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .14.2.0, name=SW-01]'
              value_type: TEXT
              tags:
                - tag: Application
                  value: CPU
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: a8dd6c552c1e470c8a49f1a93d13c733
              name: '{#BOARDNAME} slot {#SLOT}: Memory usage'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .14.3.0, name=SW-01]'
              value_type: TEXT
              tags:
                - tag: Application
                  value: Memory
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 7b84dcc46f1d4fae9efbe235fdc39101
              name: '{#BOARDNAME} slot {#SLOT}: SSL'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .20.0, name=SW-01]'
              delay: 10m
              trigger_prototypes:
                - uuid: 8f1c6e3192424e709c530c74a730f980
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .20.0, name=SW-01])=1'
                  name: 'SW-01 slot {#SLOT}: сертификат SSL протух'
                  priority: HIGH
                - uuid: af9ba467a8e74d5f8e97680f68e9d32e
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .20.0, name=SW-01])=2'
                  name: 'SW-01 slot {#SLOT}: сертификат SSL скоро протухнет'
                  priority: WARNING
            - uuid: 8df558b3bd4b4130ba822b5964c00fe1
              name: '{#BOARDNAME} slot {#SLOT}: Memory cached'
              type: DEPENDENT
              key: 'mem.cached[{#SLOT}]'
              units: B
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[3]'
                - type: MULTIPLIER
                  parameters:
                    - '1024'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .14.3.0, name=SW-01]'
              tags:
                - tag: Application
                  value: Memory
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 59473046c5e942708137cb84166f2f30
              name: '{#BOARDNAME} slot {#SLOT}: Memory free'
              type: DEPENDENT
              key: 'mem.free[{#SLOT}]'
              units: B
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[1]'
                - type: MULTIPLIER
                  parameters:
                    - '1024'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .14.3.0, name=SW-01]'
              tags:
                - tag: Application
                  value: Memory
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: dc174ae3f47b48f395b0261b9e4466e7
              name: '{#BOARDNAME} slot {#SLOT}: Memory total'
              type: DEPENDENT
              key: 'mem.total[{#SLOT}]'
              units: B
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[0]'
                - type: MULTIPLIER
                  parameters:
                    - '1024'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .14.3.0, name=SW-01]'
              tags:
                - tag: Application
                  value: Memory
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: b189d58834494b8a8e79ce068f2cccd0
              name: '{#BOARDNAME} slot {#SLOT}: Memory used'
              type: CALCULATED
              key: 'mem.used[{#SLOT}]'
              units: B
              params: 'last(//mem.total[{#SLOT}])-last(//mem.free[{#SLOT}])-last(//mem.cached[{#SLOT}])'
              tags:
                - tag: Application
                  value: Memory
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 955b1a1b9d3a4058b44f46892cc87b07
              name: '{#BOARDNAME} slot {#SLOT}: SFP alarm Flags'
              type: DEPENDENT
              key: 'SFPalarms[{#SLOT}]'
              description: 'Флаги аварий модуля SFP'
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      var v = eval(value);
                      return (v[368] << 8) | v[369];
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .9.0, name=SW-01, format=array]'
              tags:
                - tag: Application
                  value: SFP
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: f7c42cef375346349e4be06f01c724df
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPalarms[{#SLOT}]),32768)> 0'
                  name: 'SW-01 slot {#SLOT}: Высокая температура SFP'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: 1cf4dacefecb48fca913d3ee3e8dd9ea
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPalarms[{#SLOT}]),2048)> 0'
                  name: 'SW-01 slot {#SLOT}: Высокий ток накачки SFP'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: c51da8749ff9421fa5fa8646b56743e3
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPalarms[{#SLOT}]),128)> 0'
                  name: 'SW-01 slot {#SLOT}: Высокий уровень входного сигнала SFP'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: 247eb057bb4c48859064902f6cc488d9
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPalarms[{#SLOT}]),512)> 0'
                  name: 'SW-01 slot {#SLOT}: Высокий уровень передачи SFP'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: 7aa03c1a7112489c9e6eb13087a53487
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPalarms[{#SLOT}]),8192)> 0'
                  name: 'SW-01 slot {#SLOT}: Высокое напряжение питания SFP'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: 8cd8efd6fa7040e1b7ab91de57de8788
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPalarms[{#SLOT}]),16384)> 0'
                  name: 'SW-01 slot {#SLOT}: Низкая температура SFP'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: d0f051c282e44503a2210520b065129c
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPalarms[{#SLOT}]),1024)> 0'
                  name: 'SW-01 slot {#SLOT}: Низкий ток накачки SFP'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: 0bc2e559926a466ca7c1f47142a2d147
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPalarms[{#SLOT}]),64)> 0'
                  name: 'SW-01 slot {#SLOT}: Низкий уровень входного сигнала SFP'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: f56362c9b11e4da496bad5fb4e19c760
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPalarms[{#SLOT}]),256)> 0'
                  name: 'SW-01 slot {#SLOT}: Низкий уровень передачи SFP'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: 928e8419705847738385afb4cb889c70
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPalarms[{#SLOT}]),4096)> 0'
                  name: 'SW-01 slot {#SLOT}: Низкое напряжение питания SFP'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 11b66defdf4e45f093f99ba666c72c1e
              name: '{#BOARDNAME} slot {#SLOT}: SFP RX power'
              type: DEPENDENT
              key: 'SFPrxpower[{#SLOT}]'
              value_type: FLOAT
              units: mW
              description: 'Мощность сигнала на входе приемника'
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      var v = eval(value);
                      if(v.length < 512) throw 'No diagnostic data';
                      var buffer = new ArrayBuffer(20);
                      var view = new DataView(buffer);
                      for(var i = 0, j = 312; i < 20; i++, j++)
                          view.setUint8(i, v[j]);
                      var rxpwr = v[360] * 256 + v[361];
                      rxpwr = Math.pow(rxpwr,4) * view.getFloat32(0, false) +
                              Math.pow(rxpwr,3) * view.getFloat32(4, false) +
                              Math.pow(rxpwr,2) * view.getFloat32(8, false) +
                              rxpwr * view.getFloat32(12, false) +
                              view.getFloat32(16, false);
                      return rxpwr / 10000;
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .9.0, name=SW-01, format=array]'
              tags:
                - tag: Application
                  value: SFP
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 3aa0f4a8f9c04a49b189265dd5fa8b2b
              name: '{#BOARDNAME} slot {#SLOT}: SFP temperature'
              type: DEPENDENT
              key: 'SFPtemperature[{#SLOT}]'
              value_type: FLOAT
              units: '° C'
              description: 'Температура модуля'
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      var v = eval(value);
                      if(v.length < 512) throw 'No diagnostic data';
                      var x = v[352] * 256 + v[353];
                      if(x & 0x8000) x -= 65536;
                      var Ts = v[340] + v[341] / 256;
                      var To = v[342] * 256 + v[343];
                      if(To & 0x8000) To -= 65536;
                      x = x * Ts + To;
                      return x / 256;
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .9.0, name=SW-01, format=array]'
              tags:
                - tag: Application
                  value: SFP
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: d92d8623b7034c9888519fcfa9175c33
              name: '{#BOARDNAME} slot {#SLOT}: SFP TX bias'
              type: DEPENDENT
              key: 'SFPtxbias[{#SLOT}]'
              value_type: FLOAT
              units: mA
              description: 'Ток накачки лазера'
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      var v = eval(value);
                      if(v.length < 512) throw 'No diagnostic data';
                      var x = v[356] * 256 + v[357];
                      var Is = v[332] + v[333] / 256;
                      var Io = v[334] * 256 + v[335];
                      if(Io & 0x8000) Io -= 65536;
                      x = x * Is + Io;
                      return x / 500;
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .9.0, name=SW-01, format=array]'
              tags:
                - tag: Application
                  value: SFP
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: acb07988182d43adbb976a779ffd2569
              name: '{#BOARDNAME} slot {#SLOT}: SFP TX power'
              type: DEPENDENT
              key: 'SFPtxpower[{#SLOT}]'
              value_type: FLOAT
              units: mW
              description: 'Мощность сигнала на выходе передатчика'
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      var v = eval(value);
                      if(v.length < 512) throw 'No diagnostic data';
                      var x = v[358] * 256 + v[359];
                      var Ts = v[336] + v[337] / 256;
                      var To = v[338] * 256 + v[339];
                      if(To & 0x8000) To -= 65536;
                      x = x * Ts + To;
                      return x / 10000;
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .9.0, name=SW-01, format=array]'
              tags:
                - tag: Application
                  value: SFP
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 7faeae3000f4411397b2601e7698367e
              name: '{#BOARDNAME} slot {#SLOT}: SFP Warning Flags'
              type: DEPENDENT
              key: 'SFPwarnings[{#SLOT}]'
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      var v = eval(value);
                      return (v[372] << 8) | v[373];
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .9.0, name=SW-01, format=array]'
              tags:
                - tag: Application
                  value: SFP
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 48f233eb6c8e413e88b672774b04881c
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPwarnings[{#SLOT}]),32768)> 0'
                  name: 'SW-01 slot {#SLOT}: Высокая температура SFP'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: 445d8224e7384d89ac23d7ac36ac942d
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPwarnings[{#SLOT}]),2048)> 0'
                  name: 'SW-01 slot {#SLOT}: Высокий ток накачки SFP'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: 7784740f49fb4ed98af22c1f51eccd3a
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPwarnings[{#SLOT}]),128)> 0'
                  name: 'SW-01 slot {#SLOT}: Высокий уровень входного сигнала SFP'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: addddb1eef1040ebac1105ece3044b8c
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPwarnings[{#SLOT}]),512)> 0'
                  name: 'SW-01 slot {#SLOT}: Высокий уровень передачи SFP'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: 2f99d8d4076b4fea9a66e9f495d0e461
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPwarnings[{#SLOT}]),8192)> 0'
                  name: 'SW-01 slot {#SLOT}: Высокое напряжение питания SFP'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: 960a690a10124be7a5454edf8d57070f
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPwarnings[{#SLOT}]),16384)> 0'
                  name: 'SW-01 slot {#SLOT}: Низкая температура SFP'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: b6019a8288644be289d623608226ea8e
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPwarnings[{#SLOT}]),1024)> 0'
                  name: 'SW-01 slot {#SLOT}: Низкий ток накачки SFP'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: a4d7f7765c854a6a9361d6fe953bb804
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPwarnings[{#SLOT}]),64)> 0'
                  name: 'SW-01 slot {#SLOT}: Низкий уровень входного сигнала SFP'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: 3fe7492ccdd342fea94ed5d508c7dc84
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPwarnings[{#SLOT}]),256)> 0'
                  name: 'SW-01 slot {#SLOT}: Низкий уровень передачи SFP'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: aafe0016671244e583829cb6faba44e5
                  expression: 'bitand(last(/Template MC04-DSL-3U/SFPwarnings[{#SLOT}]),4096)> 0'
                  name: 'SW-01 slot {#SLOT}: Низкое напряжение питания SFP'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: SFP
                    - tag: Board
                      value: '{#BOARDNAME}'
          master_item:
            key: 'MCv2.boardlist[]'
        - uuid: 7958dc66200d4434abe10d4527d2b142
          name: VE-01/VE-02
          type: DEPENDENT
          key: boards-VE-01
          filter:
            conditions:
              - macro: '{#BOARDTYPE}'
                value: ^(20|37)$
          item_prototypes:
            - uuid: 822b11ae93c34bd7bfad9bbc82adcf7b
              name: '{#BOARDNAME} slot {#SLOT}: Channel mask'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .9.0, name={#BOARDNAME},format=array]'
              delay: 10m
              history: '0'
              value_type: TEXT
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 99c79b8a9fe94ebdb68dca74551d1a9f
              name: '{#BOARDNAME} slot {#SLOT}: Загрузка'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .19.0,name={#BOARDNAME}]'
              units: '%'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 509d629d569e41bc96eb5e4101f6e9bf
              name: '{#BOARDNAME} slot {#SLOT}: Активность'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .21.0,name={#BOARDNAME}]'
              units: '%'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: f10064f1d9844d419dc1430a53053771
              name: '{#BOARDNAME} slot {#SLOT}: LAN status bits'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .30.3.1.0,name={#BOARDNAME}]'
              trends: '0'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: dcdf9d8196064b3ca65c5375915b0248
              name: '{#BOARDNAME} slot {#SLOT}: LAN PoE voltage'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .30.4.1.0,name={#BOARDNAME}]'
              value_type: FLOAT
              units: V
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.00592'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 09c24a98153340a7b1bbcdd20a34d192
              name: '{#BOARDNAME} slot {#SLOT}: LAN PoE current'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .30.5.1.0,name={#BOARDNAME}]'
              value_type: FLOAT
              units: A
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '6.1035E-5'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 9bd4fcbda0e24511b8698ddd70bc1af6
              name: '{#BOARDNAME} slot {#SLOT}: LAN link status'
              type: DEPENDENT
              key: 've02.eth0[{#SLOT}]'
              valuemap:
                name: 'VE-02 eth0 link status'
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - 'return (value >> 8) & 7;'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .30.3.1.0,name={#BOARDNAME}]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: b9dd4b43b9af4fb9a605f48e38829479
              name: '{#BOARDNAME} slot {#SLOT}: LAN PoE status'
              type: DEPENDENT
              key: 've02.poe[{#SLOT}]'
              valuemap:
                name: 'PE-04 port status'
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - 'return value & 7;'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .30.3.1.0,name={#BOARDNAME}]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
          master_item:
            key: 'MCv2.boardlist[]'
        - uuid: 2e505511e907450496b1c4a743e83cbe
          name: sensor
          type: DEPENDENT
          key: 'bs-220-sensor[{#SLOT}]'
          item_prototypes:
            - uuid: f307869feefa473fba175a39fe350100
              name: '{#BOARDNAME} slot {#SLOT}: датчик {#S}'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .9.{#S}.1.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - '3600'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 229664958f704709802ee41eda057d31
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .9.{#S}.1.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Датчик {#S} активен'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: boards-BS-220
          master_item:
            key: 'MCv2.boardlist[]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - 'return ''{"data":[{"{#S}":1},{"{#S}":2},{"{#S}":3},{"{#S}":4},{"{#S}":5},{"{#S}":6}]}'';'
        - uuid: c9fe93724fe348b3aa2d22eb3835fde4
          name: thermometer
          type: DEPENDENT
          key: 'bs-220-term[{#SLOT}]'
          item_prototypes:
            - uuid: c856dcf4447e49cba6eaf14e7202ed79
              name: '{#BOARDNAME} slot {#SLOT} термометр {#T}: температура'
              type: CALCULATED
              key: 'BS-220.temperature[{#SLOT},{#T}]'
              value_type: FLOAT
              units: '° C'
              params: 'last(//MCv2.getvar[{#SLOT}, .26.{#T}.2.0,name={#BOARDNAME}]) + (last(//MCv2.getvar[{#SLOT}, .26.{#T}.4.0,name={#BOARDNAME}])=1) * (256 - 2 * last(//MCv2.getvar[{#SLOT}, .26.{#T}.2.0,name={#BOARDNAME}]))'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 63f0010c68a64b84a970cc22ea636564
              name: '{#BOARDNAME} slot {#SLOT} термометр {#T}: температура (raw)'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .26.{#T}.2.0,name={#BOARDNAME}]'
              value_type: FLOAT
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.01'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: f5f2da0ec0af40f5894308180983f3e9
              name: '{#BOARDNAME} slot {#SLOT} термометр {#T}: знак'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .26.{#T}.4.0,name={#BOARDNAME}]'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 7859c8f5175349009fb462d4bdbecf8e
              name: '{#BOARDNAME} slot {#SLOT} термометр {#T}: нижний порог'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .29.0, name={#BOARDNAME},{#T}]'
              delay: 10m
              value_type: FLOAT
              units: '° C'
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.01'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - '3600'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 41e8111cf48d424cbc94c14d42fc931f
              name: '{#BOARDNAME} slot {#SLOT} термометр {#T}: верхний порог'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .30.0, name={#BOARDNAME},{#T}]'
              delay: 10m
              value_type: FLOAT
              units: '° C'
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.01'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - '3600'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
          trigger_prototypes:
            - uuid: 9c9a54bf683f40feaa6c601b007c2534
              expression: 'last(/Template MC04-DSL-3U/BS-220.temperature[{#SLOT},{#T}])>last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .30.0, name={#BOARDNAME},{#T}])'
              name: '{#BOARDNAME} slot {#SLOT} термометр {#T}: Температуре выше порога'
              priority: WARNING
              manual_close: 'YES'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 09d53c84fa604393b9548308079b4f13
              expression: 'last(/Template MC04-DSL-3U/BS-220.temperature[{#SLOT},{#T}])<last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .29.0, name={#BOARDNAME},{#T}])'
              name: '{#BOARDNAME} slot {#SLOT} термометр {#T}: Температуре ниже порога'
              priority: WARNING
              manual_close: 'YES'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: boards-BS-220
          master_item:
            key: 'MCv2.boardlist[]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - 'return ''{"data":[{"{#T}":1},{"{#T}":2}]}'';'
        - uuid: 0716f132c9b04837a02c0acad5bc895b
          name: ports
          type: DEPENDENT
          key: 'em04.ports[{#SLOT}]'
          item_prototypes:
            - uuid: 6c48c52fcf7c4105b50b894670ea0b86
              name: '{#BOARDNAME} slot {#SLOT} port {#P}: CAS RX'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .6.{#P}.1.0, name={#BOARDNAME}]'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 33e30543ce2d4ca0a3290365bb4406aa
              name: '{#BOARDNAME} slot {#SLOT} port {#P}: CAS TX'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .6.{#P}.2.0, name={#BOARDNAME}]'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: boards-EM-04
          master_item:
            key: 'MCv2.boardlist[]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  var x = '{"data":[';
                  for(var p = 1; p <= 4; p++) {
                    if(p > 1) x += ',';
                    x += '{"{#P}":'+p+'}';
                  }
                  x += ']}';
                  return x;
        - uuid: 196e788e44fb4b1ea9e11167a67d8863
          name: 'Eth ports'
          type: DEPENDENT
          key: 'eth.ports[{#SLOT}]'
          item_prototypes:
            - uuid: 2c226674b58649769e9c617a50d5e721
              name: '{#BOARDNAME} slot {#SLOT} Eth port {#PORT}: Broadcast Rx'
              type: DEPENDENT
              key: 'eth.bcrx[{#SLOT},{#PORT}]'
              value_type: FLOAT
              units: pkt/s
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[6]'
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.{#OIDPORT}.3.0,name=SW-01]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 2e6bad806de9415da8efd913b4eba536
              name: '{#BOARDNAME} slot {#SLOT} Eth port {#PORT}: Broadcast Tx'
              type: DEPENDENT
              key: 'eth.bctx[{#SLOT},{#PORT}]'
              value_type: FLOAT
              units: pkt/s
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[19]'
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.{#OIDPORT}.3.0,name=SW-01]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 9c9564724a99472096dd1e36075aa2ad
              name: '{#BOARDNAME} slot {#SLOT} Eth port {#PORT}: Multicast Rx'
              type: DEPENDENT
              key: 'eth.mcrx[{#SLOT},{#PORT}]'
              value_type: FLOAT
              units: pkt/s
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[7]'
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.{#OIDPORT}.3.0,name=SW-01]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: fe9e576cae144b9baba4965e65a95333
              name: '{#BOARDNAME} slot {#SLOT} Eth port {#PORT}: Multicast Tx'
              type: DEPENDENT
              key: 'eth.mctx[{#SLOT},{#PORT}]'
              value_type: FLOAT
              units: pkt/s
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[18]'
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.{#OIDPORT}.3.0,name=SW-01]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: b493225d537341b094c84c203b3e7b11
              name: '{#BOARDNAME} slot {#SLOT} Eth port {#PORT}: Traffic Rx'
              type: DEPENDENT
              key: 'eth.octrx[{#SLOT},{#PORT}]'
              value_type: FLOAT
              units: bps
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      var x = eval(value);
                      return x[1] * 4294967296 + x[0];
                - type: CHANGE_PER_SECOND
                - type: MULTIPLIER
                  parameters:
                    - '8'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.{#OIDPORT}.3.0,name=SW-01]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: cc60be64ceec429d8ab093d6949e657e
              name: '{#BOARDNAME} slot {#SLOT} Eth port {#PORT}: Traffic Tx'
              type: DEPENDENT
              key: 'eth.octtx[{#SLOT},{#PORT}]'
              value_type: FLOAT
              units: bps
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      var x = eval(value);
                      return x[15] * 4294967296 + x[14];
                - type: CHANGE_PER_SECOND
                - type: MULTIPLIER
                  parameters:
                    - '8'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.{#OIDPORT}.3.0,name=SW-01]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: a004ebbd09c14376a7fa659696625d82
              name: '{#BOARDNAME} slot {#SLOT} Eth port {#PORT}: Unicast Rx'
              type: DEPENDENT
              key: 'eth.ucrx[{#SLOT},{#PORT}]'
              value_type: FLOAT
              units: pkt/s
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[4]'
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.{#OIDPORT}.3.0,name=SW-01]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 7fe132dfa47c4442ace334fe3a6326f7
              name: '{#BOARDNAME} slot {#SLOT} Eth port {#PORT}: Unicast Tx'
              type: DEPENDENT
              key: 'eth.uctx[{#SLOT},{#PORT}]'
              value_type: FLOAT
              units: pkt/s
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[16]'
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .11.{#OIDPORT}.3.0,name=SW-01]'
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: f749af733ed44ff284da4da9fcb8fa18
              name: '{#BOARDNAME} slot {#SLOT} Eth port {#PORT}: NO LINK'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .11.{#OIDPORT}.2.0, name=SW-01]'
              delay: 10m
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 9639d5abccaf4dd7864d8719d5d9dbe9
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .11.{#OIDPORT}.2.0, name=SW-01])>0'
                  name: '{#BOARDNAME} slot {#SLOT} Eth port {#PORT}: NO LINK'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: ethernet
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: e831196493cf474b822d89fb515eda3a
              name: '{#BOARDNAME} slot {#SLOT} Eth port {#PORT}: stats'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .11.{#OIDPORT}.3.0,name=SW-01]'
              value_type: TEXT
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: boards-SW-01
          master_item:
            key: 'MCv2.boardlist[]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - 'return ''{"data":[{"{#PORT}":0, "{#OIDPORT}":10},{"{#PORT}":1, "{#OIDPORT}":1},{"{#PORT}":2, "{#OIDPORT}":2},{"{#PORT}":3, "{#OIDPORT}":3},{"{#PORT}":4, "{#OIDPORT}":4},{"{#PORT}":5, "{#OIDPORT}":5},{"{#PORT}":6, "{#OIDPORT}":6},{"{#PORT}":7, "{#OIDPORT}":7},{"{#PORT}":8, "{#OIDPORT}":8},{"{#PORT}":9, "{#OIDPORT}":9}]}'';'
        - uuid: e5e4cd7b799044d489d29a38ef33c096
          name: ports
          type: DEPENDENT
          key: 'fo08.ports[{#SLOT}]'
          item_prototypes:
            - uuid: 3f02376ab24749d48211400063db2be8
              name: '{#BOARDNAME} slot {#SLOT} port {#P}: line'
              type: DEPENDENT
              key: 'fo08.line[{#SLOT},{#P}]'
              valuemap:
                name: 'FO-08 line state'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[1]'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - '3600'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .6.{#P}.1.0, name={#BOARDNAME},format=array]'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 450cfde470814441af85c4e2e04b130e
              name: '{#BOARDNAME} slot {#SLOT} port {#P}: state'
              type: DEPENDENT
              key: 'fo08.state[{#SLOT},{#P}]'
              valuemap:
                name: 'FO-08 port state'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[0]'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - '3600'
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .6.{#P}.1.0, name={#BOARDNAME},format=array]'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: b075daa899b245e5b8cbcef7710f0c65
                  expression: 'last(/Template MC04-DSL-3U/fo08.state[{#SLOT},{#P}])=3'
                  name: '{#BOARDNAME} slot {#SLOT} port {#P}: авария порта'
                  priority: HIGH
                - uuid: b66d295d320d4352ae25701e80f7faee
                  expression: 'last(/Template MC04-DSL-3U/fo08.state[{#SLOT},{#P}])=1'
                  name: '{#BOARDNAME} slot {#SLOT} port {#P}: инициализация порта'
                  priority: WARNING
            - uuid: 8dbff2a2c264409488d0f52cd2e074dc
              name: '{#BOARDNAME} slot {#SLOT} port {#P}: status'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .6.{#P}.1.0, name={#BOARDNAME},format=array]'
              history: '0'
              value_type: TEXT
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: boards-FO-08
          master_item:
            key: 'MCv2.boardlist[]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  var x = '{"data":[';
                  for(var p = 1; p <= 8; p++) {
                    if(p > 1) x += ',';
                    x += '{"{#P}":'+p+'}';
                  }
                  x += ']}';
                  return x;
        - uuid: 19d50104162c467aafc51d029419c32e
          name: ports
          type: DEPENDENT
          key: 'ge04.ports[{#SLOT}]'
          item_prototypes:
            - uuid: f140e4a7813b47c08c6abaf985c89a11
              name: '{#BOARDNAME} slot {#SLOT} port {#P}: NO LINK alarm'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .9.{#P}.1.0,name={#BOARDNAME}]'
              delay: 10m
              tags:
                - tag: Application
                  value: ethernet
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 5e7a7e51114a4db294cb366b9519b05d
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .9.{#P}.1.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT} port {#P}: NO LINK'
                  priority: HIGH
                  tags:
                    - tag: Application
                      value: ethernet
                    - tag: Board
                      value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: boards-GE-04
          master_item:
            key: 'MCv2.boardlist[]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  var x = '{"data":[';
                  for(var p = 1; p <= 4; p++) {
                    if(p > 1) x += ',';
                    x += '{"{#P}":'+p+'}';
                  }
                  x += ']}';
                  return x;
        - uuid: 6e570bfbb3564182bd43a8519f9facdd
          name: e1
          type: DEPENDENT
          key: 'ge12.e1[{#SLOT}]'
          item_prototypes:
            - uuid: 88bd2cd39dd54ad997b06730692ca744
              name: '{#BOARDNAME} slot {#SLOT} {#E1}E1: LOS'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .13.{#E1}.1.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Application
                  value: E1
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 4fad7c4e7a264e4bb884016558a19d4a
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .13.{#E1}.1.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT} {#E1}E1: LOS'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: da0d1a7928aa421e9a484d96ace48f9b
              name: '{#BOARDNAME} slot {#SLOT} {#E1}E1: LOF'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .13.{#E1}.2.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Application
                  value: E1
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 21190bd7a2724379944bf1b33f0d5dfe
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .13.{#E1}.2.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT} {#E1}E1: LOF'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 348cec60993249f7bef08cb2f1854821
              name: '{#BOARDNAME} slot {#SLOT} {#E1}E1: AIS'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .13.{#E1}.3.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Application
                  value: E1
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 2d82179690de4d129915617c9e89e010
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .13.{#E1}.3.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT} {#E1}E1: AIS'
                  priority: AVERAGE
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: boards-GE-12
          master_item:
            key: 'MCv2.boardlist[]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  var a = [];
                  for(var i = 1; i <= 16; i++) a.push('{"{#E1}":'+i+'}');
                  return '{"data":[' + a.join() + ']}';
        - uuid: c50c89be084447d09f8135c1f8348cfc
          name: optic
          type: DEPENDENT
          key: 'ge12.optic[{#SLOT}]'
          item_prototypes:
            - uuid: 5bb387a2c92d4f678eb269dc3afaf15b
              name: '{#BOARDNAME} slot {#SLOT} optic {#O}: LOS'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .17.{#O}.1.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 3772139aab204bf48d9508cc1c65767a
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .17.{#O}.1.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT} optic {#O}: LOS'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: boards-GE-12
          master_item:
            key: 'MCv2.boardlist[]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - 'return ''{"data":[{"{#O}":1},{"{#O}":2}]}'';'
        - uuid: 97e67d011fae4814882f05e41968806b
          name: port
          type: DEPENDENT
          key: 'ge12.port[{#SLOT}]'
          item_prototypes:
            - uuid: 33959f9e3afa4d5ba49875572cc6ce28
              name: '{#BOARDNAME} slot {#SLOT} port {#P}: NO LINK'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.9.{#P}.1.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: bbf0544c01984ff3942a7414d8f3c312
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.9.{#P}.1.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT} port {#P}: NO LINK'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: boards-GE-12
          master_item:
            key: 'MCv2.boardlist[]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - 'return ''{"data":[{"{#P}":1},{"{#P}":2},{"{#P}":3},{"{#P}":4},{"{#P}":5}]}'';'
        - uuid: 498a407229a145069ebdb7aaa01bf073
          name: E1
          type: ZABBIX_ACTIVE
          key: 'MCv2.getvar[{#SLOT}, .7.1.1.0, name={#BOARDNAME}]'
          delay: 10m
          item_prototypes:
            - uuid: 5fc0d6ad79be4dce884313236f6f911c
              name: '{#BOARDNAME} slot {#SLOT} E1: state'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .7.1.4.0, name={#BOARDNAME}]'
              valuemap:
                name: 'SM E1 state'
              tags:
                - tag: Application
                  value: E1
                - tag: Board
                  value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: boards-SM
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  if(value > 0) return '{"data":[{"{#P}":0}]}';
                  return '{"data":[]}';
        - uuid: 5c30876414c14c67bb94faeca974b06e
          name: sensor
          type: DEPENDENT
          key: 'ps-48d.sensor[{#SLOT}]'
          item_prototypes:
            - uuid: a9d96a346a4f408c896c48e735682887
              name: '{#BOARDNAME} slot {#SLOT}: датчик {#S}'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT},.9.{#S}.1.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: ed64231fcb45421aa30cdf1535aee10a
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT},.9.{#S}.1.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT}: Датчик {#S} активен'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: boards-PS-24D
          master_item:
            key: 'MCv2.boardlist[]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - 'return ''{"data":[{"{#S}":1},{"{#S}":2},{"{#S}":3},{"{#S}":4},{"{#S}":5},{"{#S}":6}]}'';'
        - uuid: beb82d5faf3d4af9bb6791b18b74dadc
          name: термометр
          type: DEPENDENT
          key: 'ps-48d.term[{#SLOT}]'
          item_prototypes:
            - uuid: 1e44bd31c4cd4a7b8a3df440526336ef
              name: '{#BOARDNAME} slot {#SLOT} термометр {#T}: температура (raw)'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .25.{#T}.2.0,name={#BOARDNAME}]'
              value_type: FLOAT
              units: '° C'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: e23d051ecb4a47c999d9f6a21ac528c9
              name: '{#BOARDNAME} slot {#SLOT} термометр {#T}: знак'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .25.{#T}.4.0,name={#BOARDNAME}]'
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '1'
                  error_handler: CUSTOM_VALUE
                  error_handler_params: '0'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 441b423866d14fc5a6b67192330707bd
              name: '{#BOARDNAME} slot {#SLOT} термометр {#T}: нижний порог'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .28.0,name={#BOARDNAME},{#T}]'
              delay: 10m
              value_type: FLOAT
              units: '° C'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 875dcb15fba74832ab32cf88a0fc4aa3
              name: '{#BOARDNAME} slot {#SLOT} термометр {#T}: верхний порог'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .29.0,name={#BOARDNAME},{#T}]'
              delay: 10m
              value_type: FLOAT
              units: '° C'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 8a9a2635299e45768d0a7bd3939c890d
              name: '{#BOARDNAME} slot {#SLOT} термометр {#T}: температура'
              type: CALCULATED
              key: 'ps-24d.temp[{#SLOT},{#T}]'
              value_type: FLOAT
              units: '° C'
              params: 'last(//MCv2.getvar[{#SLOT}, .25.{#T}.2.0,name={#BOARDNAME}]) - (last(//MCv2.getvar[{#SLOT}, .25.{#T}.4.0,name={#BOARDNAME}])=1) * 2 * last(//MCv2.getvar[{#SLOT}, .25.{#T}.2.0,name={#BOARDNAME}])'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
          trigger_prototypes:
            - uuid: 55c26754946b46cbaf9ab133d440e585
              expression: 'last(/Template MC04-DSL-3U/ps-24d.temp[{#SLOT},{#T}])>last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .29.0,name={#BOARDNAME},{#T}])'
              name: '{#BOARDNAME} slot {#SLOT} термометр {#T}: Температуре выше порога'
              priority: WARNING
              manual_close: 'YES'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 7da0c66e6a1442a4912a1f8c2283ce92
              expression: 'last(/Template MC04-DSL-3U/ps-24d.temp[{#SLOT},{#T}])<last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .28.0,name={#BOARDNAME},{#T}])'
              name: '{#BOARDNAME} slot {#SLOT} термометр {#T}: Температуре ниже порога'
              priority: WARNING
              manual_close: 'YES'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: boards-PS-24D
          master_item:
            key: 'MCv2.boardlist[]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - 'return ''{"data":[{"{#T}":1},{"{#T}":2}]}'';'
        - uuid: e8f28a870aac4440a613ac1766ceb6f4
          name: '{#BOARDNAME} slot {#SLOT} rg{#RGNR} if{#IF}: present'
          type: DEPENDENT
          key: 'sm.rg.if.present[{#SLOT},{#RGNR},{#IF},{#RG}]'
          item_prototypes:
            - uuid: f83f7d02385c43ba8abd9f63124b732a
              name: '{#BOARDNAME} slot {#SLOT} rg{#RGNR} iface{#IFACE}: state'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .8.{#RGNR}.7.{#IFACE}.4.0, name={#BOARDNAME},{#IF},{#RG}]'
              valuemap:
                name: 'Состояния интерфейсов DSL'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 0cdd30aab608491a8b1a3503f0df6326
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .8.{#RGNR}.7.{#IFACE}.4.0, name={#BOARDNAME},{#IF},{#RG}])=1'
                  name: '{#BOARDNAME} slot {#SLOT} rg{#RGNR} iface{#IFACE}: активация DSL'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: DSL
                    - tag: Board
                      value: '{#BOARDNAME}'
                - uuid: 4aa4f6412d104bc2ae9785409c717810
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .8.{#RGNR}.7.{#IFACE}.4.0, name={#BOARDNAME},{#IF},{#RG}])=3'
                  name: '{#BOARDNAME} slot {#SLOT} rg{#RGNR} iface{#IFACE}: потеря СЦС'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: DSL
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 631d522a08634c67931cce42d63a6ea1
              name: '{#BOARDNAME} slot {#SLOT} rg{#RGNR} iface{#IFACE}: SQ'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .8.{#RGNR}.7.{#IFACE}.6.0, name={#BOARDNAME},{#IF},{#RG}]'
              units: dB
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: c6b839e8014d4c2199253dcf65166509
              name: '{#BOARDNAME} slot {#SLOT} rg{#RGNR} iface{#IFACE}: LL'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .8.{#RGNR}.7.{#IFACE}.7.0, name={#BOARDNAME},{#RG},{#IF}]'
              units: dB
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
          trigger_prototypes:
            - uuid: e4fb56796a6c40ccafe0269aaab15b4c
              expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .8.{#RGNR}.7.{#IFACE}.4.0, name={#BOARDNAME},{#IF},{#RG}])>0 and last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .8.{#RGNR}.7.{#IFACE}.6.0, name={#BOARDNAME},{#IF},{#RG}])<4'
              name: '{#BOARDNAME} slot {#SLOT} rg{#RGNR} iface{#IFACE}: низкое качество линии'
              priority: WARNING
              manual_close: 'YES'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: 'sm.rg.if[{#SLOT},{#RGNR},{#RG}]'
          master_item:
            key: 'MCv2.getvar[{#SLOT}, .8.{#RGNR}.7.{#IF}.1.0, name={#BOARDNAME},{#RG}]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  if(value > 0) return '{"data":[{"{#IFACE}":{#IF}}]}';
                  return '{"data":[]}';
        - uuid: 95c31c4c6ef24271a182d8c647c7b403
          name: '{#BOARDNAME} slot {#SLOT} rg{#RGNR}: ifaces'
          type: DEPENDENT
          key: 'sm.rg.if[{#SLOT},{#RGNR},{#RG}]'
          item_prototypes:
            - uuid: 351f99bac17c43f6933164e3afe2bf48
              name: '{#BOARDNAME} slot {#SLOT} rg{#RGNR} iface{#IF}: PRESENT'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .8.{#RGNR}.7.{#IF}.1.0, name={#BOARDNAME},{#RG}]'
              delay: 10m
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: 'sm.rg.present[{#SLOT},{#RG}]'
          master_item:
            key: 'MCv2.getvar[{#SLOT}, .17.0, name={#BOARDNAME},format=array,{#RGNR},{#RG}]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - 'return ''{"data":[{"{#IF}":1},{"{#IF}":2},{"{#IF}":3},{"{#IF}":4}]}'';'
        - uuid: a2c12480c42a4b18b7e123aa28fe4407
          name: 'RG PRESENT'
          type: DEPENDENT
          key: 'sm.rg.present[{#SLOT},{#RG}]'
          item_prototypes:
            - uuid: 9e66a3c9d38045469a0946fad4af824e
              name: '{#BOARDNAME} slot {#SLOT} rg{#RGNR}: НРП датчик 1'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .8.{#RGNR}.5.0, name={#BOARDNAME},{#RG}]'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 0aec162901574f1381fa8b48b418ce9c
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .8.{#RGNR}.5.0, name={#BOARDNAME},{#RG}])>0'
                  name: '{#BOARDNAME} slot {#SLOT} rg{#RGNR}: сработал датчик 1 НРП'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: DSL
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 1f4d9bbc53164c12b37dcc683fa7c237
              name: '{#BOARDNAME} slot {#SLOT} rg{#RGNR}: НРП датчик 2'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .8.{#RGNR}.6.0, name={#BOARDNAME},{#RG}]'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: cbbb58f2568043848459e26ac5e75b21
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .8.{#RGNR}.6.0, name={#BOARDNAME},{#RG}])>0'
                  name: '{#BOARDNAME} slot {#SLOT} rg{#RGNR}: сработал датчик 2 НРП'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Application
                      value: DSL
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: fb7d6b3f93a84a8a9925fdf10933762d
              name: '{#BOARDNAME} slot {#SLOT} rg{#RGNR}: retime (all)'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .17.0, name={#BOARDNAME},format=array,{#RGNR},{#RG}]'
              history: '0'
              value_type: TEXT
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: 44ce8c67e7964570a779948621530e6e
              name: '{#BOARDNAME} slot {#SLOT} rg{#RGNR}: retime1'
              type: DEPENDENT
              key: 'sm.retime1[{#SLOT},{#RGNR},{#RG}]'
              value_type: FLOAT
              trends: '0'
              units: ppm
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      var data = eval(value);
                      var index = {#RGNR} * 2;
                      var x = data[index];
                      return x > 0 ? (x - 1) / 4 : 0;
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .17.0, name={#BOARDNAME},format=array,{#RGNR},{#RG}]'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
            - uuid: b662b45174b547a988c2a6b5ac856619
              name: '{#BOARDNAME} slot {#SLOT} rg{#RGNR}: retime2'
              type: DEPENDENT
              key: 'sm.retime2[{#SLOT},{#RGNR},{#RG}]'
              value_type: FLOAT
              trends: '0'
              units: ppm
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      var data = eval(value);
                      var index = {#RGNR} * 2 + 1;
                      var x = data[index];
                      return x > 0 ? (x - 1) / 4 : 0;
              master_item:
                key: 'MCv2.getvar[{#SLOT}, .17.0, name={#BOARDNAME},format=array,{#RGNR},{#RG}]'
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: 'sm.rg[{#SLOT}]'
          master_item:
            key: 'MCv2.getvar[{#SLOT}, .8.{#RG}.1.0, name={#BOARDNAME}]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  if(value > 0) return '{"data":[{"{#RGNR}":{#RG}}]}';
                  return '{"data":[]}';
        - uuid: fb506bcbbaf34170872f6136a5c31002
          name: RG
          type: DEPENDENT
          key: 'sm.rg[{#SLOT}]'
          item_prototypes:
            - uuid: 78c9ad9d247a4febb419021cef520b4f
              name: '{#BOARDNAME} slot {#SLOT} rg{#RG}: PRESENT'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .8.{#RG}.1.0, name={#BOARDNAME}]'
              delay: 10m
              tags:
                - tag: Application
                  value: DSL
                - tag: Board
                  value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: boards-SM
          master_item:
            key: 'MCv2.getvar[{#SLOT}, .5.0, name={#BOARDNAME}, format=array]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - 'return ''{"data":[{"{#RG}":1},{"{#RG}":2},{"{#RG}":3},{"{#RG}":4},{"{#RG}":5},{"{#RG}":6},{"{#RG}":7},{"{#RG}":8},{"{#RG}":9},{"{#RG}":10},{"{#RG}":11},{"{#RG}":12},{"{#RG}":13},{"{#RG}":14},{"{#RG}":15},{"{#RG}":16}]}'';'
        - uuid: 66c6dbe7a7bc4d338bee5ebf69fd4b6e
          name: channel
          type: DEPENDENT
          key: 've-01-ch[{#SLOT}]'
          item_prototypes:
            - uuid: 6eaebc4cd32641268ed766f6cd8435e5
              name: '{#BOARDNAME} slot {#SLOT} канал {#C}: LOS'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .10.{#C}.10.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: a254885749364d7a89e541d43d08d9a1
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .10.{#C}.10.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT} канал {#C}: RTP stream lost'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
            - uuid: 87e5d2ef23bd43cda626310dfaeaad63
              name: '{#BOARDNAME} slot {#SLOT} канал {#C}: Remote host down'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .10.{#C}.17.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: add51e2e1762438c8777ab60fbdf3699
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .10.{#C}.17.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT} канал {#C}: Remote host is down'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: boards-VE-01
          master_item:
            key: 'MCv2.getvar[{#SLOT}, .9.0, name={#BOARDNAME},format=array]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  var mask = eval(value);
                  var arr = [];
                  for(var i = 1; i <= 256; i++) {
                    var b = i >> 3;
                    var m = 1 << (i % 8);
                    if(mask[b] & m) {
                      arr.push('{"{#C}":'+i+'}');
                    }
                  }
                  return '{"data":[' + arr.join() + ']}';
        - uuid: d36f55f9278f47c6890985da74af84b6
          name: e1
          type: DEPENDENT
          key: 've-01-e1[{#SLOT}]'
          item_prototypes:
            - uuid: 66b2fe650a3a484ca006f7f92a52a74a
              name: '{#BOARDNAME} slot {#SLOT} E1 {#E1}: MF alignment lost'
              type: ZABBIX_ACTIVE
              key: 'MCv2.getvar[{#SLOT}, .14.{#E1}.2.0,name={#BOARDNAME}]'
              delay: 10m
              valuemap:
                name: 'MC04 board status'
              tags:
                - tag: Application
                  value: E1
                - tag: Board
                  value: '{#BOARDNAME}'
              trigger_prototypes:
                - uuid: 33f7fcb9dd13414a9b348b7ec3152556
                  expression: 'last(/Template MC04-DSL-3U/MCv2.getvar[{#SLOT}, .14.{#E1}.2.0,name={#BOARDNAME}])>0'
                  name: '{#BOARDNAME} slot {#SLOT} E1 {#E1}: MF alignment lost'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: Board
                      value: '{#BOARDNAME}'
          parent_discovery_rule:
            key: boards-VE-01
          master_item:
            key: 'MCv2.boardlist[]'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - 'return ''{"data":[{"{#E1}":1},{"{#E1}":2},{"{#E1}":3},{"{#E1}":4},{"{#E1}":5},{"{#E1}":6},{"{#E1}":7},{"{#E1}":8}]}'';'
      valuemaps:
        - uuid: 5af5eac483384ee693fb030c4d71b79a
          name: 'FO-08 line state'
          mappings:
            - value: '0'
              newvalue: разомкнут
            - value: '1'
              newvalue: вызов
            - value: '2'
              newvalue: замкнут
        - uuid: fbcaf0d2f2294f5780bc9e18f6ef102a
          name: 'FO-08 port state'
          mappings:
            - value: '0'
              newvalue: блокирован
            - value: '1'
              newvalue: инициализация
            - value: '2'
              newvalue: работа
            - value: '3'
              newvalue: авария
        - uuid: 5d118a209e144903887b086e8168cc3b
          name: 'GE-12 sync status'
          mappings:
            - value: '0'
              newvalue: LOCKED
            - value: '1'
              newvalue: TRACING
            - value: '2'
              newvalue: HOLD
            - value: '3'
              newvalue: FREERUN
        - uuid: 968dcd1ad02c41198538482c710de645
          name: 'MC04 board status'
          mappings:
            - value: '0'
              newvalue: OK
            - value: '1'
              newvalue: ALARM
            - type: GREATER_OR_EQUAL
              value: '2'
              newvalue: WARNING
        - uuid: 7bae412762454368b7f14f8cd785d038
          name: 'PE-04 port status'
          mappings:
            - value: '1'
              newvalue: Short
            - value: '3'
              newvalue: 'Too Low'
            - value: '4'
              newvalue: OK
            - value: '5'
              newvalue: 'Too High'
            - value: '6'
              newvalue: Open
        - uuid: fe18e1850db347aab075c0e410916f5c
          name: 'SM E1 state'
          mappings:
            - value: '1'
              newvalue: ALARM
            - value: '2'
              newvalue: OK
        - uuid: e12cb96c61634e33ba38ecddfc1aa523
          name: 'VE-02 eth0 link status'
          mappings:
            - value: '1'
              newvalue: 'NO LINK'
            - value: '2'
              newvalue: 1000/HD
            - value: '3'
              newvalue: 1000/FD
            - value: '4'
              newvalue: 100/HD
            - value: '5'
              newvalue: 100/FD
            - value: '6'
              newvalue: 10/HD
            - value: '7'
              newvalue: 10/FD
        - uuid: 8991d3b677f847e8bee9d99f0efb492f
          name: 'Состояния интерфейсов DSL'
          mappings:
            - value: '0'
              newvalue: Выкл
            - value: '1'
              newvalue: Иниц
            - value: '2'
              newvalue: OK
            - value: '3'
              newvalue: 'Нет СЦС'
