[ZBX-12737] vfs.dir.size timeouts on slow drives Created: 2017 Sep 17 Updated: 2019 Jul 03 Resolved: 2017 Sep 26 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 3.4.1 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Minor |
Reporter: | Andrey Shpak | Assignee: | Unassigned |
Resolution: | Won't fix | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Windows 2012 R2 client with 64 Zabbix agent and SATA drives. |
Attachments: |
![]() |
||||||||
Issue Links: |
|
Description |
There is problem when you try to get size of big folder (1TB in my case) Problem screenshot included. The actual full folder size is 686 GB with 68136 files. I will test same on linux on our backup servers (SATA too), but on work week. |
Comments |
Comment by Andrey Shpak [ 2017 Sep 21 ] |
Oh, remark here. I did not see any problems on my side with this. But I am not sure why. Maybe because amount of files dropped by 30% (but size increased). maybe, because I set Timeout option on zabbix agent to 15 seconds. Timeout=15 Anyway if timeout option works - it should be documented in item description. Thanks. |
Comment by Ingus Vilnis [ 2017 Sep 21 ] |
Hi, The vfs.dir.size relies on the same Timeout setting in zabbix_server.conf and zabbix_agentd.conf files as any other standard agent item. Getting the data for directory sizes takes the same amount of time as du -sb dir executed from the command line. The more directories have to be counted the more time it takes. You may either limit the number of directories counted, limit the depth or increase the Timeout setting in the configuration files. To see how much time does it actually take to return a value you may execute the following command from your Zabbix server's command line: time zabbix_get -s <IP or DNS of the agent> -k vfs.dir.size[<directory>] After seeing the results set the Timeout setting, restart the services and now you should be able to monitor directories as expected. |
Comment by Ingus Vilnis [ 2017 Sep 21 ] |
Apparently we were posting comments at the same time and you had already found the right solution. The timeout applies to all agent items not only this one, but agreed that this item is likely more affected than others. Suggestion about the documentation noted. |
Comment by Ingus Vilnis [ 2017 Sep 26 ] |
The vfs.dir.size item is dependent on the timeout setting. There is nothing we can do to override this behavior as this applies to all Zabbix agent items. Steps to troubleshoot have been provided. Additionally, notes on the documentation have been added under Closing this issue as Won't fix. |
Comment by gaj [ 2019 Jul 03 ] |
Steps to reproduce:
Result: Expected: i want a to monitore size of this folder "c:/Windows" |