Description: An error occurs when attempting to fetch SMART data for NVMe drives due to a JSON unmarshal issue. The problem is that the media_errors field in the JSON exceeds the allowable range for the int type in Go.
Steps to Reproduce:
- Ensure that NVMe drives are installed in the system.
- Open Zabbix and navigate to the disk monitoring section.
- Attempt to fetch SMART data for NVMe drives.
- Note the error that appears during data processing.
Changes in Configuration:
- Zabbix Agent 2 Version: 5.0+
- Operating System: Windows 10 +
Result:
- The following error appears: {{Cannot fetch data: Cannot
unmarshal JSON: json: cannot unmarshal number 44165379128716145574543360
into Go struct field
healthLog.nvme_smart_health_information_log.media_errors of type int.}}