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

New item type: vfs.file.owner

    XMLWordPrintable

    Details

    • Type: New Feature Request
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            qix Raymond Kuiper
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: