-
New Feature Request
-
Resolution: Duplicate
-
Trivial
-
None
-
2.4.6
-
Sprint 77 (Jun 2021), Sprint 78 (Jul 2021)
It would be useful if the agent in addition to just reporting if a file exists, it meets certain requirements if it indeed exists.
Things I can come up with:
- is the file a directory/file/symlink/block device/character device?
- does the file have the proper permissions (possibly using some kind of wildcard to just check the permissions of the owner, group or others)
- is the file ownership correct? (via uid/gid or names)
- is the file readable/writeable/executable by the user running the agent?
In my usecase, permissions and ownership would be the most important tests.
The manual page for the 'test' utility might provide some other inspiration as well.
These things could be assigned to vfs.file.exists as positional parameters to retain compatibility with the current functionality.
- caused by
-
ZBXNEXT-6688 New items for Agent and Agent2
- Closed
- depends on
-
ZBXNEXT-6688 New items for Agent and Agent2
- Closed
- is duplicated by
-
ZBXNEXT-3223 Extend vfs.file.exists
- Closed
-
ZBXNEXT-3369 vfs.file.exists[file,<mode>]
- Closed