zabbix_export:
  version: '6.4'
  template_groups:
    - uuid: 2ee8731419b849d39ac7268779867739
      name: Templates/BRL
  templates:
    - uuid: bb22870b98de450f809b02165eecdd6c
      template: 'Template BRL HwMon'
      name: 'Template BRL HwMon'
      groups:
        - name: Templates/BRL
      items:
        - uuid: fef4ba7e337e47aca02fc223058e7f80
          name: hwmon_bat_volt
          type: DEPENDENT
          key: hwmon_bat_volt
          delay: '0'
          history: 7d
          value_type: FLOAT
          units: V
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.bat_volt
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
          master_item:
            key: 'system.run["powershell.exe -NoLogo -ExecutionPolicy ByPass -NonInteractive -NoProfile -File \"C:\\Program Files\\ZA\\scripts\\zabbix-hwmon.ps1\""]'
        - uuid: eca981ce33d84f8b9f417d044e6d78ee
          name: hwmon_cpu_maxt
          type: DEPENDENT
          key: hwmon_cpu_maxt
          delay: '0'
          history: 7d
          units: C
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.cpu_maxt
              error_handler: DISCARD_VALUE
          master_item:
            key: 'system.run["powershell.exe -NoLogo -ExecutionPolicy ByPass -NonInteractive -NoProfile -File \"C:\\Program Files\\ZA\\scripts\\zabbix-hwmon.ps1\""]'
        - uuid: 577cf13619924a7a83929b7e32b271e5
          name: hwmon_cpu_name
          type: DEPENDENT
          key: hwmon_cpu_name
          delay: '0'
          history: 7d
          trends: '0'
          value_type: TEXT
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.cpu_name
              error_handler: DISCARD_VALUE
          master_item:
            key: 'system.run["powershell.exe -NoLogo -ExecutionPolicy ByPass -NonInteractive -NoProfile -File \"C:\\Program Files\\ZA\\scripts\\zabbix-hwmon.ps1\""]'
        - uuid: 82b24b57b5704acfb0c9e57f961f1f57
          name: hwmon_cpu_temp
          type: DEPENDENT
          key: hwmon_cpu_temp
          delay: '0'
          history: 7d
          units: C
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.cpu_temp
              error_handler: DISCARD_VALUE
          master_item:
            key: 'system.run["powershell.exe -NoLogo -ExecutionPolicy ByPass -NonInteractive -NoProfile -File \"C:\\Program Files\\ZA\\scripts\\zabbix-hwmon.ps1\""]'
        - uuid: 46abf4226ee849a89e02e05c305c3318
          name: hwmon_fan_rpms
          type: DEPENDENT
          key: hwmon_fan_rpms
          delay: '0'
          history: 7d
          units: RPM
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.fan_rpms
              error_handler: DISCARD_VALUE
          master_item:
            key: 'system.run["powershell.exe -NoLogo -ExecutionPolicy ByPass -NonInteractive -NoProfile -File \"C:\\Program Files\\ZA\\scripts\\zabbix-hwmon.ps1\""]'
        - uuid: fa4f47e507214cedacfd38cd65743220
          name: hwmon_mb_name
          type: DEPENDENT
          key: hwmon_mb_name
          delay: '0'
          history: 7d
          trends: '0'
          value_type: TEXT
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.mb_name
              error_handler: DISCARD_VALUE
          master_item:
            key: 'system.run["powershell.exe -NoLogo -ExecutionPolicy ByPass -NonInteractive -NoProfile -File \"C:\\Program Files\\ZA\\scripts\\zabbix-hwmon.ps1\""]'
        - uuid: 93b3baac0b74460289796413ab7a92fe
          name: hwmon_p12_volt
          type: DEPENDENT
          key: hwmon_p12_volt
          delay: '0'
          history: 7d
          units: V
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.p12_volt
              error_handler: DISCARD_VALUE
          master_item:
            key: 'system.run["powershell.exe -NoLogo -ExecutionPolicy ByPass -NonInteractive -NoProfile -File \"C:\\Program Files\\ZA\\scripts\\zabbix-hwmon.ps1\""]'
        - uuid: c7758919cd11456989c4492eb22c9b3d
          name: hwmon_version
          type: DEPENDENT
          key: hwmon_version
          delay: '0'
          history: 7d
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.version
              error_handler: DISCARD_VALUE
          master_item:
            key: 'system.run["powershell.exe -NoLogo -ExecutionPolicy ByPass -NonInteractive -NoProfile -File \"C:\\Program Files\\ZA\\scripts\\zabbix-hwmon.ps1\""]'
        - uuid: f24a0a444c004fd9ba28d3a2f1574a2a
          name: HwMon
          type: ZABBIX_ACTIVE
          key: 'system.run["powershell.exe -NoLogo -ExecutionPolicy ByPass -NonInteractive -NoProfile -File \"C:\\Program Files\\ZA\\scripts\\zabbix-hwmon.ps1\""]'
          delay: 1h
          history: '0'
          trends: '0'
          value_type: TEXT
      macros:
        - macro: '{$BATTERY_EXCLUDE_MB}'
          value: '^(PEGATRON CORPORATION H81-M4 1.02|HP 8768 A \(SMVB\)|HP 86E9 A \(SMVB\)|HP 86E9 A|MSI H110M PRO-VH PLUS \(MS-7A15\) 1.0|MSI H61M-P31/W8 \(MS-7788\) 1.0|MSI H61M-P32/W8 \(MS-7788\) 4.0|ECS H410H6-M7 V3.1 3.1|INTECH PRO H410H6-R7 3.1|ASRock H81M-DGS R2.0|ASRock B85M-GL|Micro-Star International Co., Ltd. H310M PRO-VDH \(MS-7B29\) 1.0|ASRock H81M-GL|MSI H110M PRO-VD PLUS \(MS-7A15\) 1.0|ASRock H81M-VG4 R2.0|HP 834F 1.00|HP 82B4 KBC Version 06.15|HP 8948 A \(SMVB\)|ASRock H81M-DGS R2.0|ASRock H81M-VG4 R2.0|ASRock B85M-GL|ASRock H81M-GL)$'
          description: 'Motherboard name RegExp'
        - macro: '{$BATTERY_VOLT_WARN}'
          value: '2.75'
          description: Voltage
        - macro: '{$FAN_EXCLUDE_MB}'
          value: '^(PEGATRON CORPORATION H81-M4 1.02|HP 8768 A \(SMVB\)|HP 86E9 A \(SMVB\)|HP 86E9 A|HP 8329 23.47|HP 834F 1.00|HP 832B 23.70|HP 8329 23.51|HP 8329 23.46)$'
          description: 'Motherboard name RegExp'
        - macro: '{$FAN_SPEED_WARN}'
          value: '400'
          description: RPM
    - uuid: a0b8821c7a5a400ea0a137c5f9f91d08
      template: 'Template BRL SMART by Zabbix agent 2'
      name: 'Template BRL SMART by Zabbix agent 2'
      description: |
        The template for monitoring S.M.A.R.T. attributes of physical disk that works without any external scripts. It collects metrics by Zabbix agent 2 version 5.0 and later with Smartmontools version 7.1 and later. Disk discovery LLD rule finds all HDD, SSD, NVMe disks with S.M.A.R.T. enabled. Attribute discovery LLD rule have pre-defined Vendor Specific Attributes for each disk, and will be discovered if attribute is present.
        
        You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/415662-discussion-thread-for-official-zabbix-smart-disk-monitoring
        
        Template tooling version used: 0.41
      groups:
        - name: Templates/BRL
      discovery_rules:
        - uuid: fdedeb991bb546fcb20e560cd8640af0
          name: 'Disk discovery'
          key: smart.disk.discovery
          delay: 1d
          filter:
            evaltype: AND
            conditions:
              - macro: '{#NAME}'
                value: '{$SMART.DISK.NAME.MATCHES}'
                formulaid: A
              - macro: '{#NAME}'
                value: '{$SMART.DISK.NAME.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: B
          lifetime: 3d
          description: 'Discovery SMART disks.'
          item_prototypes:
            - uuid: ce3cae2be109480fa302f0c2cb8b8f26
              name: 'SMART [{#NAME}]: Bad_Block_Rate'
              type: DEPENDENT
              key: 'smart.disk.attribute.bad_block_rate[{#NAME}]'
              delay: '0'
              history: 7d
              discover: NO_DISCOVER
              description: 'Percentage of used reserve blocks divided by total reserve blocks.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.bad_block_rate.value
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: attribute
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: 18cc2ed6c4764e61b3a486aa70338f23
              name: 'SMART [{#NAME}]: Current_Pending_Sector'
              type: DEPENDENT
              key: 'smart.disk.attribute.Current_Pending_Sector[{#NAME}]'
              delay: '0'
              history: 7d
              discover: NO_DISCOVER
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.current_pending_sector.value
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: attribute
                - tag: component
                  value: Critical_attribute
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: 044755629e8248e4963d03a9b1baf57d
              name: 'SMART [{#NAME}]: End_to_End_Error'
              type: DEPENDENT
              key: 'smart.disk.attribute.End_to_End_Error[{#NAME}]'
              delay: '0'
              history: 7d
              discover: NO_DISCOVER
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$.[''end-to-end_error''].value'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: attribute
                - tag: component
                  value: Critical_attribute
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: c675a77b3385435480bae1207a4bd180
              name: 'SMART [{#NAME}]: Erase_fail_count_total'
              type: DEPENDENT
              key: 'smart.disk.attribute.erase_fail_count_total[{#NAME}]'
              delay: '0'
              history: 7d
              discover: NO_DISCOVER
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.erase_fail_count_total.value
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: attribute
                - tag: component
                  value: Critical_attribute
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: cadf241e74714edeb33219c9e30ddbcf
              name: 'SMART [{#NAME}]: Offline_Uncorrectable'
              type: DEPENDENT
              key: 'smart.disk.attribute.offline_uncorrectable[{#NAME}]'
              delay: '0'
              history: 7d
              discover: NO_DISCOVER
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.offline_uncorrectable.value
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: attribute
                - tag: component
                  value: Critical_attribute
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: f5bbaf5d6147467ba784384ef38419cd
              name: 'SMART [{#NAME}]: Power_Cycle_Count'
              type: DEPENDENT
              key: 'smart.disk.attribute.power_cycle_count[{#NAME}]'
              delay: '0'
              history: 7d
              discover: NO_DISCOVER
              description: 'This attribute indicates the count of full hard disk power on/off cycles.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.power_cycle_count.value
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: attribute
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: 51e26a6ba16146f88236dec1360deae1
              name: 'SMART [{#NAME}]: Program_Fail_Cnt_Total'
              type: DEPENDENT
              key: 'smart.disk.attribute.program_fail_cnt_total[{#NAME}]'
              delay: '0'
              history: 7d
              discover: NO_DISCOVER
              description: 'The total number of flash program operation failures since the drive was deployed.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.program_fail_cnt_total.value
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: attribute
                - tag: component
                  value: Critical_attribute
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: 8ba332988ab343b2baa64aa52d5bbb3e
              name: 'SMART [{#NAME}]: Raw_Read_Error_Rate'
              type: DEPENDENT
              key: 'smart.disk.attribute.raw_read_error_rate[{#NAME}]'
              delay: '0'
              history: 7d
              discover: NO_DISCOVER
              description: 'Stores data related to the rate of hardware read errors that occurred when reading data from a disk surface. The raw value has different structure for different vendors and is often not meaningful as a decimal number. For some drives, this number may increase during normal operation without necessarily signifying errors.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.raw_read_error_rate.value
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: attribute
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: 0e865728933648acbe32e10d7693af88
              name: 'SMART [{#NAME}]: Reallocated_Sector_Ct'
              type: DEPENDENT
              key: 'smart.disk.attribute.reallocated_sector_ct[{#NAME}]'
              delay: '0'
              history: 7d
              discover: NO_DISCOVER
              description: 'Disk discovered attribute.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.reallocated_sector_ct.value
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: attribute
                - tag: component
                  value: Critical_attribute
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: 54bd576753e14e2d8ba22831f01deb47
              name: 'SMART [{#NAME}]: Reported_Uncorrect'
              type: DEPENDENT
              key: 'smart.disk.attribute.reported_uncorrect[{#NAME}]'
              delay: '0'
              history: 7d
              discover: NO_DISCOVER
              description: 'The count of errors that could not be recovered using hardware ECC.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.reported_uncorrect.value
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: attribute
                - tag: component
                  value: Critical_attribute
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: 615fc2ca87424882880fadf4551b15dc
              name: 'SMART [{#NAME}]: Seek_Error_Rate'
              type: DEPENDENT
              key: 'smart.disk.attribute.seek_error_rate[{#NAME}]'
              delay: '0'
              history: 7d
              discover: NO_DISCOVER
              description: 'Rate of seek errors of the magnetic heads. If there is a partial failure in the mechanical positioning system, then seek errors will arise. Such a failure may be due to numerous factors, such as damage to a servo, or thermal widening of the hard disk. The raw value has different structure for different vendors and is often not meaningful as a decimal number. For some drives, this number may increase during normal operation without necessarily signifying errors.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.seek_error_rate.value
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: attribute
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: d90c2e35a8a6434c9a7a65ac0fb8259f
              name: 'SMART [{#NAME}]: Spin_Up_Time'
              type: DEPENDENT
              key: 'smart.disk.attribute.spin_up_time[{#NAME}]'
              delay: '0'
              history: 7d
              discover: NO_DISCOVER
              description: 'Average time of spindle spin up (from zero RPM to fully operational [milliseconds]).'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.spin_up_time.value
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: attribute
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: 1f825b60e856469aa26aabfc10431a95
              name: 'SMART [{#NAME}]: Start_Stop_Count'
              type: DEPENDENT
              key: 'smart.disk.attribute.start_stop_count[{#NAME}]'
              delay: '0'
              history: 7d
              discover: NO_DISCOVER
              description: 'A tally of spindle start/stop cycles. The spindle turns on, and hence the count is increased, both when the hard disk is turned on after having before been turned entirely off (disconnected from power source) and when the hard disk returns from having previously been put to sleep mode.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.start_stop_count.value
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: attribute
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: 0851c97f63394e419a38bb7c75e3d76b
              name: 'SMART [{#NAME}]: Critical warning'
              type: DEPENDENT
              key: 'smart.disk.critical_warning[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'This field indicates critical warnings for the state of the controller.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.critical_warning
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: 47f7bd8df2f24f3a871e57312a393d9f
              name: 'SMART [{#NAME}]: Smartctl error'
              type: DEPENDENT
              key: 'smart.disk.error[{#NAME}]'
              delay: '0'
              history: 7d
              trends: '0'
              value_type: TEXT
              description: 'This metric will contain smartctl errors.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.error
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: d4e9e9ab2c9245d2b02995877bc26410
              name: 'SMART [{#NAME}]: Exit status'
              type: DEPENDENT
              key: 'smart.disk.es[{#NAME}]'
              delay: '0'
              history: 7d
              description: |
                The exit statuses of smartctl are defined by a bitmask but in decimal value. The eight different bits in the exit status have the following  meanings  for  ATA disks; some of these values may also be returned for SCSI disks.
                Bit 0: Command line did not parse.
                Bit 1: Device  open failed, device did not return an IDENTIFY DEVICE structure, or device is in a low-power mode (see '-n' option above).
                Bit 2: Some SMART or other ATA command to the disk failed, or there was a checksum error in a SMART data  structure  (see '-b' option above).
                Bit 3: SMART status check returned "DISK FAILING".
                Bit 4: We found prefail Attributes <= threshold.
                Bit 5: SMART  status  check returned "DISK OK" but we found that some (usage or prefail) Attributes have been <= threshold at some time in the past.
                Bit 6: The device error log contains records of errors.
                Bit 7: The device self-test log contains records of errors. [ATA only] Failed self-tests outdated by a newer successful extended self-test are ignored.
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.exit_status
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
              trigger_prototypes:
                - uuid: 15dba6a469a94e3e9407cd8ddf05926d
                  expression: |
                    ( count(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),8) = 8 )
                    or ( bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),8) = 8
                    and bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),8) > bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2),8) )
                  recovery_mode: NONE
                  name: 'SMART [{#NAME}]: Check returned "DISK FAILING"'
                  priority: HIGH
                  description: 'SMART status check returned "DISK FAILING".'
                  manual_close: 'YES'
                - uuid: 359b267c98ef4c009e6049da7bb050a7
                  expression: |
                    ( count(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),1) = 1 )
                    or ( bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),1) = 1
                    and bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),1) > bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2),1) )
                  recovery_mode: NONE
                  name: 'SMART [{#NAME}]: Command line did not parse'
                  priority: HIGH
                  description: 'Command line did not parse.'
                  manual_close: 'YES'
                - uuid: f00ba3d839134990b1ec7498169bbc97
                  expression: |
                    ( count(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),2) = 2 )
                    or ( bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),2) = 2
                    and bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),2) > bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2),2) )
                  recovery_mode: NONE
                  name: 'SMART [{#NAME}]: Device open failed'
                  priority: HIGH
                  description: 'Device open failed, device did not return an IDENTIFY DEVICE structure, or device is in a low-power mode.'
                  manual_close: 'YES'
                - uuid: 4aa7cee387634467b59bff685d0a0f46
                  expression: |
                    ( count(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),64) = 64 )
                    or ( bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),64) = 64
                    and bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),64) > bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2),64) )
                  recovery_mode: NONE
                  name: 'SMART [{#NAME}]: Error log contains records'
                  priority: HIGH
                  description: 'The device error log contains records of errors.'
                  manual_close: 'YES'
                - uuid: 3bab51c6213242fcbc16f32d5431741e
                  expression: |
                    ( count(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),128) = 128 )
                    or ( bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),128) = 128
                    and bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),128) > bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2),128) )
                  recovery_mode: NONE
                  name: 'SMART [{#NAME}]: Self-test log contains records'
                  priority: HIGH
                  description: 'The device self-test log contains records of errors. [ATA only] Failed self-tests outdated by a newer successful extended self-test are ignored.'
                  manual_close: 'YES'
                - uuid: b1a1f5457d2249a5beb6111a4a18c6c6
                  expression: |
                    ( count(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),32) = 32 )
                    or ( bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),32) = 32
                    and bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),32) > bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2),32) )
                  recovery_mode: NONE
                  name: 'SMART [{#NAME}]: Some Attributes have been <= threshold'
                  priority: HIGH
                  description: 'SMART status check returned "DISK OK" but we found that some (usage or prefail) Attributes have been <= threshold at some time in the past.'
                  manual_close: 'YES'
                - uuid: d6adea12cd204eb5b6de9fc9582641c8
                  expression: |
                    ( count(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),4) = 4 )
                    or ( bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),4) = 4
                    and bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),4) > bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2),4) )
                  recovery_mode: NONE
                  name: 'SMART [{#NAME}]: Some command to the disk failed'
                  priority: HIGH
                  description: 'Some SMART or other ATA command to the disk failed, or there was a checksum error in a SMART data structure.'
                  manual_close: 'YES'
                - uuid: b7030f63dad74781a9dbe9c43a339c7c
                  expression: |
                    ( count(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2) = 1 and bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),16) = 16 )
                    or ( bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),16) = 16
                    and bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}]),16) > bitand(last(/Template BRL SMART by Zabbix agent 2/smart.disk.es[{#NAME}],#2),16) )
                  recovery_mode: NONE
                  name: 'SMART [{#NAME}]: Some prefail Attributes <= threshold'
                  priority: HIGH
                  description: 'We found prefail Attributes <= threshold.'
                  manual_close: 'YES'
            - uuid: d2b415be2d0e4d598b8844d77010ace2
              name: 'SMART [{#NAME}]: Firmware Version'
              type: DEPENDENT
              key: 'smart.disk.firmvare_version[{#NAME}]'
              delay: '0'
              history: 7d
              trends: '0'
              value_type: CHAR
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.firmware_version
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: inventory
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: e01fc447462247a8bc31491c4422f338
              name: 'SMART [{#NAME}]: Get disk attributes'
              type: ZABBIX_ACTIVE
              key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              delay: 12h
              history: '0'
              trends: '0'
              value_type: TEXT
              tags:
                - tag: component
                  value: raw
                - tag: component
                  value: storage
            - uuid: d671288f7ce8403dbfecadb1ec0002e5
              name: 'SMART [{#NAME}]: Power on hours'
              type: DEPENDENT
              key: 'smart.disk.hours[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'Count of hours in power-on state. The raw value of this attribute shows total count of hours (or minutes, or seconds, depending on manufacturer) in power-on state. "By default, the total expected lifetime of a hard disk in perfect condition is defined as 5 years (running every day and night on all days). This is equal to 1825 days in 24/7 mode or 43800 hours." On some pre-2005 drives, this raw value may advance erratically and/or "wrap around" (reset to zero periodically). https://en.wikipedia.org/wiki/S.M.A.R.T.#Known_ATA_S.M.A.R.T._attributes'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.power_on_time
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: 430a964221e04061ac6f33d4d7dc7644
              name: 'SMART [{#NAME}]: Media errors'
              type: DEPENDENT
              key: 'smart.disk.media_errors[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'Contains the number of occurrences where the controller detected an unrecovered data integrity error. Errors such as uncorrectable ECC, CRC checksum failure, or LBA tag mismatch are included in this field.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.media_errors
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: 05d726405f324b31a909ee272a23f7e6
              name: 'SMART [{#NAME}]: Device model'
              type: DEPENDENT
              key: 'smart.disk.model[{#NAME}]'
              delay: '0'
              history: 7d
              trends: '0'
              value_type: CHAR
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.model_name
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: inventory
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: ca62b29bdcba4232bd07f35a1ffcda09
              name: 'SMART [{#NAME}]: Percentage used'
              type: DEPENDENT
              key: 'smart.disk.percentage_used[{#NAME}]'
              delay: '0'
              history: 7d
              units: '%'
              description: 'Contains a vendor specific estimate of the percentage of NVM subsystem life used based on the actual usage and the manufacturer''s prediction of NVM life. A value of 100 indicates that the estimated endurance of the NVM in the NVM subsystem has been consumed, but may not indicate an NVM subsystem failure. The value is allowed to exceed 100. Percentages greater than 254 shall be represented as 255. This value shall be updated once per power-on hour (when the controller is not in a sleep state).'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.percentage_used
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: storage
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
            - uuid: 740c7d1a10014089b1b2ab7e96c9c9f4
              name: 'SMART [{#NAME}]: Serial number'
              type: DEPENDENT
              key: 'smart.disk.sn[{#NAME}]'
              delay: '0'
              history: 7d
              trends: '0'
              value_type: CHAR
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.serial_number
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: inventory
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
              trigger_prototypes:
                - uuid: 30adad74387a4732bbed4de486574779
                  expression: 'last(/Template BRL SMART by Zabbix agent 2/smart.disk.sn[{#NAME}],#1)<>last(/Template BRL SMART by Zabbix agent 2/smart.disk.sn[{#NAME}],#2) and length(last(/Template BRL SMART by Zabbix agent 2/smart.disk.sn[{#NAME}]))>0'
                  name: 'SMART [{#NAME}]: Disk has been replaced'
                  event_name: 'SMART [{#NAME}]: Disk has been replaced (new serial number received)'
                  priority: INFO
                  description: 'Device serial number has changed. Ack to close.'
                  manual_close: 'YES'
            - uuid: 78ddc824e8e3416caf3a1b4f429a8d23
              name: 'SMART [{#NAME}]: Temperature'
              type: DEPENDENT
              key: 'smart.disk.temperature[{#NAME}]'
              delay: '0'
              history: 7d
              units: °C
              description: 'Current drive temperature.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.temperature
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: temperature
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
              trigger_prototypes:
                - uuid: 2d9c5e2384f84f3dba0214e0b07c06f7
                  expression: 'avg(/Template BRL SMART by Zabbix agent 2/smart.disk.temperature[{#NAME}],5m)>{$SMART.TEMPERATURE.MAX.CRIT}'
                  name: 'SMART [{#NAME}]: Average disk temperature is critical'
                  event_name: 'SMART [{#NAME}]: Average disk temperature is critical (over {$SMART.TEMPERATURE.MAX.CRIT}°C for 5m)'
                  priority: AVERAGE
                - uuid: c7ea6a2d3f74456aa3080396d8a10c35
                  expression: 'avg(/Template BRL SMART by Zabbix agent 2/smart.disk.temperature[{#NAME}],5m)>{$SMART.TEMPERATURE.MAX.WARN}'
                  name: 'SMART [{#NAME}]: Average disk temperature is too high'
                  event_name: 'SMART [{#NAME}]: Average disk temperature is too high (over {$SMART.TEMPERATURE.MAX.WARN}°C for 5m)'
                  priority: WARNING
                  dependencies:
                    - name: 'SMART [{#NAME}]: Average disk temperature is critical'
                      expression: 'avg(/Template BRL SMART by Zabbix agent 2/smart.disk.temperature[{#NAME}],5m)>{$SMART.TEMPERATURE.MAX.CRIT}'
            - uuid: 4f733dbee97f4d0ebc6df3d6dd7c5cc1
              name: 'SMART [{#NAME}]: Self-test passed'
              type: DEPENDENT
              key: 'smart.disk.test[{#NAME}]'
              delay: '0'
              history: 7d
              trends: '0'
              value_type: CHAR
              description: 'The disk is passed the SMART self-test or not.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.self_test_passed
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              master_item:
                key: 'smart.disk.get[{#PATH},"{#RAIDTYPE}"]'
              tags:
                - tag: component
                  value: health
                - tag: diskname
                  value: '{#NAME}'
                - tag: disktype
                  value: '{#DISKTYPE}'
              trigger_prototypes:
                - uuid: 30fb40a6b4d04b62a7dc46554e89b24a
                  expression: 'last(/Template BRL SMART by Zabbix agent 2/smart.disk.test[{#NAME}])="false"'
                  name: 'SMART [{#NAME}]: Disk self-test is not passed'
                  priority: HIGH
                  tags:
                    - tag: helpdesk
                      value: smart
          trigger_prototypes:
            - uuid: c4a5abf244d84d8ea4fa8254e123d0de
              expression: '(last(/Template BRL SMART by Zabbix agent 2/smart.disk.hours[{#NAME}])>43800)or (0=1 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.model[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.sn[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.firmvare_version[{#NAME}])=0)'
              name: 'Power on hours drive for more than 5 years'
              priority: WARNING
              description: '"By default, the total expected lifetime of a hard disk in perfect condition is defined as 5 years (running every day and night on all days). This is equal to 1825 days in 24/7 mode or 43800 hours." On some pre-2005 drives, this raw value may advance erratically and/or "wrap around" (reset to zero periodically). https://en.wikipedia.org/wiki/S.M.A.R.T.#Known_ATA_S.M.A.R.T._attributes'
              manual_close: 'YES'
            - uuid: feaf0bcb7cfe4829b5c3de6d52c5f61c
              expression: '(last(/Template BRL SMART by Zabbix agent 2/smart.disk.attribute.Current_Pending_Sector[{#NAME}])>{$SMART.NOT_NULL_ATTRIBUTE.WARN})or (0=1 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.model[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.sn[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.firmvare_version[{#NAME}])=0)'
              name: 'SMART [{#NAME}]: Attribute is failed: Current_Pending_Sector'
              priority: HIGH
              tags:
                - tag: helpdesk
                  value: smart
            - uuid: 06c98faf5e8342e397a55143e4908e8f
              expression: '(last(/Template BRL SMART by Zabbix agent 2/smart.disk.attribute.End_to_End_Error[{#NAME}])>{$SMART.NULL_ATTRIBUTE.WARN})or (0=1 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.model[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.sn[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.firmvare_version[{#NAME}])=0)'
              name: 'SMART [{#NAME}]: Attribute is failed: End_to_End_Error'
              priority: HIGH
              tags:
                - tag: helpdesk
                  value: smart
            - uuid: 7d70f1d4548c45c8ae5f0d084dd4394c
              expression: '(last(/Template BRL SMART by Zabbix agent 2/smart.disk.attribute.erase_fail_count_total[{#NAME}])>{$SMART.NULL_ATTRIBUTE.WARN})or (0=1 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.model[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.sn[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.firmvare_version[{#NAME}])=0)'
              name: 'SMART [{#NAME}]: Attribute is failed: Erase_fail_count_total'
              priority: HIGH
              tags:
                - tag: helpdesk
                  value: smart
            - uuid: 50ce93c5a25f4a37aaf227c661b85e54
              expression: '(last(/Template BRL SMART by Zabbix agent 2/smart.disk.attribute.offline_uncorrectable[{#NAME}])>{$SMART.NULL_ATTRIBUTE.WARN})or (0=1 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.model[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.sn[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.firmvare_version[{#NAME}])=0)'
              name: 'SMART [{#NAME}]: Attribute is failed: Offline_Uncorrectable'
              priority: HIGH
              tags:
                - tag: helpdesk
                  value: smart
            - uuid: 00dedc8c30404942b8a6f847912fc7bc
              expression: '(last(/Template BRL SMART by Zabbix agent 2/smart.disk.attribute.program_fail_cnt_total[{#NAME}])>{$SMART.NULL_ATTRIBUTE.WARN})or (0=1 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.model[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.sn[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.firmvare_version[{#NAME}])=0)'
              name: 'SMART [{#NAME}]: Attribute is failed: Program_Fail_Cnt_Total'
              priority: HIGH
              tags:
                - tag: helpdesk
                  value: smart
            - uuid: 431797bbcd824a46a4f96bd3e947d6bb
              expression: '(last(/Template BRL SMART by Zabbix agent 2/smart.disk.attribute.reallocated_sector_ct[{#NAME}])>{$SMART.NOT_NULL_ATTRIBUTE.WARN})or (0=1 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.model[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.sn[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.firmvare_version[{#NAME}])=0)'
              name: 'SMART [{#NAME}]: Attribute is failed: Reallocated_Sector_Ct'
              priority: HIGH
              tags:
                - tag: helpdesk
                  value: smart
            - uuid: 03585436f9a64b39b874c9e20bca089d
              expression: '(last(/Template BRL SMART by Zabbix agent 2/smart.disk.attribute.reported_uncorrect[{#NAME}])>{$SMART.NULL_ATTRIBUTE.WARN})or (0=1 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.model[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.sn[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.firmvare_version[{#NAME}])=0)'
              name: 'SMART [{#NAME}]: Attribute is failed: Reported_Uncorrect'
              priority: HIGH
              tags:
                - tag: helpdesk
                  value: smart
            - uuid: cca0ac0d931b4f6abc7284446ce7c119
              expression: '(last(/Template BRL SMART by Zabbix agent 2/smart.disk.percentage_used[{#NAME}])>90)or (0=1 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.model[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.sn[{#NAME}])=0 and last(/Template BRL SMART by Zabbix agent 2/smart.disk.firmvare_version[{#NAME}])=0)'
              name: 'SMART [{#NAME}]: NVMe disk percentage using is over 90% of estimated endurance'
              priority: AVERAGE
              tags:
                - tag: helpdesk
                  value: smart
          overrides:
            - name: End_to_End_Error
              step: '1'
              filter:
                conditions:
                  - macro: '{#ATTRIBUTES}'
                    value: End-to-End_Error
                    formulaid: A
              operations:
                - operationobject: ITEM_PROTOTYPE
                  operator: REGEXP
                  value: End_to_End_Error
                  status: ENABLED
                  discover: DISCOVER
            - name: Self-test
              step: '2'
              filter:
                conditions:
                  - macro: '{#DISKTYPE}'
                    value: nvme
                    formulaid: A
              operations:
                - operationobject: ITEM_PROTOTYPE
                  operator: LIKE
                  value: Self-test
                  status: ENABLED
                  discover: NO_DISCOVER
            - name: 'Not NVMe'
              step: '3'
              filter:
                conditions:
                  - macro: '{#DISKTYPE}'
                    value: nvme
                    operator: NOT_MATCHES_REGEX
                    formulaid: A
              operations:
                - operationobject: ITEM_PROTOTYPE
                  operator: REGEXP
                  value: Media|Percentage|Critical
                  status: ENABLED
                  discover: NO_DISCOVER
            - name: Raw_Read_Error_Rate
              step: '4'
              filter:
                conditions:
                  - macro: '{#ATTRIBUTES}'
                    value: Raw_Read_Error_Rate
                    formulaid: A
              operations:
                - operationobject: ITEM_PROTOTYPE
                  operator: REGEXP
                  value: Raw_Read_Error_Rate
                  status: ENABLED
                  discover: DISCOVER
            - name: Spin_Up_Time
              step: '5'
              filter:
                conditions:
                  - macro: '{#ATTRIBUTES}'
                    value: Spin_Up_Time
                    formulaid: A
              operations:
                - operationobject: ITEM_PROTOTYPE
                  operator: REGEXP
                  value: Spin_Up_Time
                  status: ENABLED
                  discover: DISCOVER
            - name: Start_Stop_Count
              step: '6'
              filter:
                conditions:
                  - macro: '{#ATTRIBUTES}'
                    value: Start_Stop_Count
                    formulaid: A
              operations:
                - operationobject: ITEM_PROTOTYPE
                  operator: REGEXP
                  value: Start_Stop_Count
                  status: ENABLED
                  discover: DISCOVER
            - name: Power_Cycle_Count
              step: '7'
              filter:
                conditions:
                  - macro: '{#ATTRIBUTES}'
                    value: Power_Cycle_Count
                    formulaid: A
              operations:
                - operationobject: ITEM_PROTOTYPE
                  operator: REGEXP
                  value: Power_Cycle_Count
                  status: ENABLED
                  discover: DISCOVER
            - name: Reported_Uncorrect
              step: '8'
              filter:
                conditions:
                  - macro: '{#ATTRIBUTES}'
                    value: Reported_Uncorrect
                    formulaid: A
              operations:
                - operationobject: ITEM_PROTOTYPE
                  operator: REGEXP
                  value: Reported_Uncorrect
                  status: ENABLED
                  discover: DISCOVER
            - name: Seek_Error_Rate
              step: '9'
              filter:
                conditions:
                  - macro: '{#ATTRIBUTES}'
                    value: Seek_Error_Rate
                    formulaid: A
              operations:
                - operationobject: ITEM_PROTOTYPE
                  operator: REGEXP
                  value: Seek_Error_Rate
                  status: ENABLED
                  discover: DISCOVER
            - name: Bad_Block_Rate
              step: '10'
              filter:
                conditions:
                  - macro: '{#ATTRIBUTES}'
                    value: Bad_Block_Rate
                    formulaid: A
              operations:
                - operationobject: ITEM_PROTOTYPE
                  operator: REGEXP
                  value: Bad_Block_Rate
                  status: ENABLED
                  discover: DISCOVER
            - name: Program_Fail_Cnt_Total
              step: '11'
              filter:
                conditions:
                  - macro: '{#ATTRIBUTES}'
                    value: Program_Fail_Cnt_Total
                    formulaid: A
              operations:
                - operationobject: ITEM_PROTOTYPE
                  operator: REGEXP
                  value: Program_Fail_Cnt_Total
                  status: ENABLED
                  discover: DISCOVER
            - name: Reallocated_Sector_Ct
              step: '12'
              filter:
                conditions:
                  - macro: '{#ATTRIBUTES}'
                    value: Reallocated_Sector_Ct
                    formulaid: A
              operations:
                - operationobject: ITEM_PROTOTYPE
                  operator: REGEXP
                  value: Reallocated_Sector_Ct
                  status: ENABLED
                  discover: DISCOVER
            - name: Current_Pending_Sector
              step: '13'
              filter:
                conditions:
                  - macro: '{#ATTRIBUTES}'
                    value: Current_Pending_Sector
                    formulaid: A
              operations:
                - operationobject: ITEM_PROTOTYPE
                  operator: REGEXP
                  value: Current_Pending_Sector
                  status: ENABLED
                  discover: DISCOVER
            - name: Offline_Uncorrectable
              step: '14'
              filter:
                conditions:
                  - macro: '{#ATTRIBUTES}'
                    value: Offline_Uncorrectable
                    formulaid: A
              operations:
                - operationobject: ITEM_PROTOTYPE
                  operator: REGEXP
                  value: Offline_Uncorrectable
                  status: ENABLED
                  discover: DISCOVER
      macros:
        - macro: '{$SMART.DISK.NAME.MATCHES}'
          value: '^.*$'
          description: 'This macro is used in the filter of attribute and disk discoveries. It can be overridden on the host or linked on the template level.'
        - macro: '{$SMART.DISK.NAME.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'This macro is used in the filter of attribute and disk discoveries. It can be overridden on the host or linked on the template level.'
        - macro: '{$SMART.NOT_NULL_ATTRIBUTE.WARN}'
          value: '2'
        - macro: '{$SMART.NULL_ATTRIBUTE.WARN}'
          value: '0'
        - macro: '{$SMART.TEMPERATURE.MAX.CRIT}'
          value: '65'
          description: 'This macro is used for trigger expression. It can be overridden on the host or linked on the template level.'
        - macro: '{$SMART.TEMPERATURE.MAX.WARN}'
          value: '50'
          description: 'This macro is used for trigger expression. It can be overridden on the host or linked on the template level.'
    - uuid: da15496ba5914735970b18f590e65785
      template: 'Template BRL Workstation Laptop'
      name: 'Template BRL Workstation Laptop'
      templates:
        - name: 'Template BRL HwMon'
        - name: 'Template BRL Zabbix version'
      groups:
        - name: Templates/BRL
    - uuid: e06980ce08d2456cb6fbbc8da9e93593
      template: 'Template BRL Zabbix version'
      name: 'Template BRL Zabbix version'
      groups:
        - name: Templates/BRL
      items:
        - uuid: f05cea59653147fb8b4acb3507e92f28
          name: 'Version of Zabbix agent running'
          type: ZABBIX_ACTIVE
          key: agent.version
          delay: 6h
          history: 7d
          trends: '0'
          value_type: CHAR
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 12h
  triggers:
    - uuid: 40d86eb2d45a488488aa4792847b8da8
      expression: 'last(/Template BRL HwMon/hwmon_bat_volt)<{$BATTERY_VOLT_WARN} and count(/Template BRL HwMon/hwmon_mb_name,#1,"regexp","{$BATTERY_EXCLUDE_MB}")=0'
      name: 'Battery voltage is low (<{$BATTERY_VOLT_WARN}V)'
      priority: AVERAGE
    - uuid: c3f33f131e5a4efca708d366b1980991
      expression: 'last(/Template BRL HwMon/hwmon_cpu_temp)>last(/Template BRL HwMon/hwmon_cpu_maxt)'
      name: 'CPU temperature too high'
      priority: AVERAGE
    - uuid: 6a3df57baeab4a2b891fc3dcc51dc695
      expression: 'last(/Template BRL HwMon/hwmon_fan_rpms)<{$FAN_SPEED_WARN} and count(/Template BRL HwMon/hwmon_mb_name,#1,"regexp","{$FAN_EXCLUDE_MB}")=0'
      name: 'Fan speed is slow (<{$FAN_SPEED_WARN}RPM)'
      priority: AVERAGE
