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.

Setup:

1. Install Zabbix agent 2 and Smartmontools 7.1 or newer.

2. Ensure the path to the "smartctl" executable is correctly specified. You can either provide the full path to the executable (e.g., "/usr/sbin/smartctl" on Linux or "C:\Program Files\smartctl\smartctl.exe" on Windows) in the configuration file or ensure that the folder containing the "smartctl" executable is added to the system's environment variables ("PATH"). This applies to both Linux and Windows systems.

Example for Linux:      
Plugins.Smart.Path=/usr/sbin/smartctl

Example for Windows:
Plugins.Smart.Path="C:\Program Files\smartctl\smartctl.exe"

3. Grant Zabbix agent 2 super/admin user privileges for the "smartctl" utility (not required for Windows). Example for Linux (add the line that grants execution of the "smartctl" utility without the password):

- Run the "visudo" command to edit the "sudoers" file:
sudo visudo

- Add the permission line and save the changes:
zabbix ALL=(ALL) NOPASSWD:/usr/sbin/smartctl

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

Generated by official Zabbix template tool "Templator"