Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-2923

New item type: vfs.file.owner

XMLWordPrintable

    • 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.

            MVekslers Michael Veksler
            qix Raymond Kuiper
            Team B
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: