I created two items for a host to measure the size of two directories (including subdirectories):
vfs.dir.size[c:\path\to\dir1]
vfs.dir.size[c:\path\to\dir2]
The directories are about 4 and 20 GB respectively.
In the configuration file I set the timeout to 30 seconds.
The first item works as expected.
From the agent log file, it seems as though the second item also functions as expected:
As seen in the log it takes 14 seconds to get the directory size and send the result. Well within the timeout of 30 seconds.
So I would assume I should get a result also for the second item, but I get this:
Also when trying to test on the agent...
...after only 3 seconds or so I get the timeout error.
What am I missing?
vfs.dir.size[c:\path\to\dir1]
vfs.dir.size[c:\path\to\dir2]
The directories are about 4 and 20 GB respectively.
In the configuration file I set the timeout to 30 seconds.
The first item works as expected.
From the agent log file, it seems as though the second item also functions as expected:
Code:
... 2564:20220105:111137.666 Requested [vfs.dir.size[c:\path\to\dir2]] 2564:20220105:111137.667 In zbx_execute_threaded_metric() key:'vfs.dir.size' 3444:20220105:111137.668 executing in data thread for key:'vfs.dir.size' 13932:20220105:111138.300 In send_buffer() host:'1.2.3.4' port:10051 entries:0/100 13932:20220105:111138.301 End of send_buffer():SUCCEED 6804:20220105:111138.318 In collect_perfstat() 6804:20220105:111138.322 End of collect_perfstat() 13932:20220105:111139.302 In send_buffer() host:'1.2.3.4' port:10051 entries:0/100 13932:20220105:111139.303 End of send_buffer():SUCCEED ... 6804:20220105:111151.393 In collect_perfstat() 6804:20220105:111151.397 End of collect_perfstat() 2564:20220105:111151.710 End of zbx_execute_threaded_metric():SYSINFO_SUCCEED '' 2564:20220105:111151.711 Sending back [20965308530] 13932:20220105:111152.340 In send_buffer() host:'1.2.3.4' port:10051 entries:0/100 13932:20220105:111152.341 End of send_buffer():SUCCEED ...
So I would assume I should get a result also for the second item, but I get this:
| Name | Key | Type | Status | Info |
| dir1 | vfs.dir.size[c:\path\to\dir1] | Zabbix Agent | Enabled | |
| dir2 | vfs.dir.size[c:\path\to\dir2] | zabbix Agent | Not supported | Timeout while waiting for data |
Code:
zabbix_agentd -t vfs.dir.size[c:\path\to\dir2]
What am I missing?
Comment