-
New Feature Request
-
Resolution: Duplicate
-
Trivial
-
None
-
Sprint 77 (Jun 2021), Sprint 78 (Jul 2021), Sprint 79 (Aug 2021)
-
1
Create an item type that returns the ownership of a file.
A positional argument should be used to select user or group ownership and numerical (id) or textual output (name). Id and user should be the defaults.
e.g. :
vfs.file.owner['/tmp/test.txt'] => 1001
vfs.file.owner['/tmp/test.txt',user,id] => 1001
vfs.file.owner['/tmp/test.txt',,id] => 1001
vfs.file.owner['/tmp/test.txt',user,name] => zabbix
vfs.file.owner['/tmp/test.txt',,name] => zabbix
vfs.file.owner['/tmp/test.txt',group] => 100
vfs.file.owner['/tmp/test.txt',group,id => 100
vfs.file.owner['/tmp/test.txt',group,name] => users
In case the file doesn't exist or something else goes wrong reading the file ownership, return ZBX_NOTSUPPORTED.
- depends on
-
ZBXNEXT-6688 New items for Agent and Agent2
- Closed
- mentioned in
-
Page Loading...