[ZBX-14876] Can't exclude directory with regex_excl in vfs.dir.size Created: 2018 Sep 19 Updated: 2021 Apr 28 Resolved: 2021 Apr 28 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 3.4.14 |
Fix Version/s: | 4.0.4rc1, 4.2.0alpha2, 4.2 (plan) |
Type: | Problem report | Priority: | Trivial |
Reporter: | Roman | Assignee: | Andris Mednis |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Debian 9 |
Issue Links: |
|
||||||||
Team: | Team A | ||||||||
Sprint: | Sprint 43, Sprint 44, Sprint 45, Sprint 46, Nov 2018, Sprint 47, Dec 2018, Sprint 74 (Mar 2021) | ||||||||
Story Points: | 3 |
Description |
I'm trying to get size of specified directory but exclude size of one subdirectory and files inside it. Directory structure looks like this:
logs/ archive/ 01.log 02.log 01.log 02.log
I want to exclude whole 'archive' folder and all files in it. Based on documentation regex_excl is what I need.
But using regex_excl with directory name only excludes size of directory file itself (i.e. 4096 bytes) but not whole subtree size. Steps to reproduce:
Result:
Expected: |
Comments |
Comment by Viktors Tjarve [ 2018 Dec 20 ] |
Released in:
Updated documentation: |
Comment by MATSUDA Daiki [ 2019 Feb 05 ] |
You should update Web front online help (frontends/php/include/classes/items/CHelpItems.php) and online manual (https://www.zabbix.com/documentation/4.0/manual/config/items/itemtypes/zabbix_agent). |
Comment by richlv [ 2019 Feb 07 ] |
Missing documentation, mentioned above, reported as |