-
Type:
Problem report
-
Resolution: Unresolved
-
Priority:
Trivial
-
None
-
Affects Version/s: 8.0.0
-
Component/s: Agent (G)
-
None
Environment:
- Zabbix Agent: 8.0.0 (classic agent, zabbix_agentd)
- Revision: c81e276e505
- OS: Ubuntu 16.04.7 LTS (Xenial Xerus)
- Kernel: 4.4.0-210-generic
- Architecture: x86_64
- Virtualization: VMware
Steps to reproduce:
- Install Zabbix Agent 8.0.0 on a Linux system where the kernel exposes 11-field block device statistics.
- Verify the number of fields in the block device statistics:
awk '{print FILENAME, "fields=" NF, $0}' /sys/class/block/*/stat - Execute the following command:
sudo -u zabbix zabbix_agentd -t 'vfs.dev.get[disk_stats,.*]' - Inspect the command output and the returned JSON data.
No additional agent configuration changes are required to reproduce the issue.
Result:
The agent generates repeated errors and backtraces for block devices:
{{ERROR [file and function: diskio.c:677,dev_stats_add,
revision:c81e276e505] Something unexpected has just happened.}}
The backtrace contains the following functions:
{{zbx_backtrace
vfs_dev_get
zbx_execute_agent_check}}
Although the item successfully returns JSON data, the io_time_ms metric is incorrectly set to zero for all detected block devices.
For example, /sys/class/block/sda/stat contains:
29110 127 1822192 12212 3429879 3174520 162009152 1227408 0 183472 1238808
The returned JSON contains:
{{
{ "name": "sda", "stats": \{ "reads_completed": 29110, "bytes_read": 932962304, "writes_completed": 3429905, "bytes_written": 82948894720, "io_time_ms": 0 }}}}
The same errors occur during normal active check processing, repeatedly generating backtraces in the Zabbix Agent log.
Expected:
- vfs.dev.get should correctly parse Linux block device statistics containing 11 fields.
- No errors or backtraces should be generated when processing valid disk statistics.
- The io_time_ms metric should reflect the actual I/O time reported by the Linux kernel.
- Disk utilization metrics and related triggers should work correctly.
Impact:
This issue is not limited to excessive error logging. Incorrect io_time_ms values may cause disk utilization metrics to report 0% even when disks are actively processing I/O, potentially preventing disk utilization triggers from detecting actual performance issues.