[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: JPEG File wait_report.jpg    
Issue Links:
Duplicate
duplicates ZBX-12757 Add comment for vfs.dir.size item to ... Closed

 Description   

There is problem when you try to get size of big folder (1TB in my case)
When you use SATA drives and folder contains a lot of files size measurement take some time, but zabbix already report a timeout issue in this situation.
We should have an option to set this timeout when we use vfs.dir.size

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 ZBX-12757.

Closing this issue as Won't fix.

Comment by gaj [ 2019 Jul 03 ]

Steps to reproduce:

  1. i change Tmeout in zabbix_agentd.win.cong in zabbix client
  2. i run zabbix_get -s ip -k vfs.dir.size[C:/Windows/]

Result:

Expected:

i want a to monitore size of this folder "c:/Windows"

Generated at Tue Apr 08 11:47:12 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.