-
Incident report
-
Resolution: Fixed
-
Trivial
-
None
-
5.0.22, 5.4.6
-
None
-
Host: Windows 10 or Windows Server 2019. Smartmontools 7.2. Zabbix agent 2 5.2.7 or 5.4.3.
Zabbix server: 5.2.7 or 5.4.3
Steps to reproduce:
- Install zabbix agent 2 (tested on 5.2.7 and 5.4.3) on target Windows 10 or Windows server 2019 host.
- Install smartmontools latest version.
- Add host to zabbix with template smart by zabbix agent 2 (or smart by zabbix agent 2 active).
- Wait for item update.
Result:
Items related to smart monitoring show error:
> Failed to scan for devices: Cannot unmarshal JSON: invalid character '\u00ad' after top-level value..
Manually added test item "system.run[C:\zabbix\smartmontools\bin\smartctl.exe --scan-open]" returns correct result:
> /dev/sda -d nvme # /dev/sda, NVMe device
Manually running smartctl.exe from command line also return correct results.
So it is not a permission problem. Tests show that there is no difference if smartmontools installed to default path (C:\Program Files\smartmontools) or to any other directory.
Side problem: smartmontools not adding itself into PATH (despite it has default-on option in installer). After adding smartctl to PATH manually, error changes to:
- Smartctl failed to get device data: unknown error from smartctl.
Expected:
Working smart monitoring.