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

Extend vfs.file.exists capabilities to test file properties

    XMLWordPrintable

    Details

    • Type: New Feature Request
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.4.6
    • Fix Version/s: None
    • Component/s: Agent (G), Frontend (F)
    • Labels:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              qix Raymond Kuiper
              Votes:
              6 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated: