Suspected bug in vfs.dir.count, specifically max_depth.
Zabbix version 6.0.6
Windows Zabbix Agent 2 version 6.4.0
Proxy is used but I don't think it is relevant as I am setting up an active check.
Item configured using the following key:
vfs.dir.count["C:\\Temp\\Test",,,file,,0,,,,,]
Parsed variables for readability:
Expected behaviour is that only files explicitly in C:\Temp\Test should be counted as max_depth is 0.
Actual behaviour is that files in sub-folders (2 levels deep) are also counted, as if max_depth is -1.
max_depth tested using a value of 1 and that also counts incorrectly.
regex_incl works as expected, I can filter on XML files and a test TXT file in the folder was not counted.
Is this a known issue, or have I fudged up the parameters in some way?
Zabbix version 6.0.6
Windows Zabbix Agent 2 version 6.4.0
Proxy is used but I don't think it is relevant as I am setting up an active check.
Item configured using the following key:
vfs.dir.count["C:\\Temp\\Test",,,file,,0,,,,,]
Parsed variables for readability:
- dir = "C:\Temp\Test"
- regex incl = null
- regex excl = nul
- types incl = file
- types excl = null
- max depth = 0 (no descending into subdirectories)
- min size = null
- max size = null
- min age = null
- max age = null
- regex excl dir = null
Expected behaviour is that only files explicitly in C:\Temp\Test should be counted as max_depth is 0.
Actual behaviour is that files in sub-folders (2 levels deep) are also counted, as if max_depth is -1.
max_depth tested using a value of 1 and that also counts incorrectly.
regex_incl works as expected, I can filter on XML files and a test TXT file in the folder was not counted.
Is this a known issue, or have I fudged up the parameters in some way?