Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-20168

Missing basename, pathname, dirname for vfs.file.get, Windows, agent 2

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Minor Minor
    • None
    • 6.0.0alpha5
    • Agent2 plugin (N)
    • None
    • Team A
    • Sprint 84 (Jan 2022)

      Data for directory:

      C:\TEMP
      │   input.json
      │
      └───data

      When querying C:\temp\input.json properties, it does not show details per basename, pathname, dirname:

      zabbix_get -s 127.0.0.1 -p 10050 -k "vfs.file.get[C:\temp\input.json]" | jq .
      {
        "basename": "",
        "pathname": "",
        "dirname": "",
        "type": "file",
        "user": "AKADIKIS-840-G2\\aigars",
        "SID": "S-1-5-21-341453538-698488186-381249278-1001",
        "size": 43,
        "time": {
          "access": "2021-11-03T09:44:02.509768+02:00",
          "modify": "2021-10-20T00:17:25.5844868+03:00",
          "change": "2021-10-20T00:17:25.5844868+03:00"
        },
        "timestamp": {
          "access": 1635925442,
          "modify": 1634678245,
          "change": 1634678245
        }
      } 

      However, with 'vfs.dir.get' it works fine:

      zabbix_get -s 127.0.0.1 -p 10050 -k "vfs.dir.get[C:\temp]" | jq .
      [
        {
          "basename": "data",
          "pathname": "C:\\temp\\data",
          "dirname": "C:\\temp",
          "type": "dir",
          "user": "AKADIKIS-840-G2\\aigars",
          "SID": "S-1-5-21-341453538-698488186-381249278-1001",
          "size": 0,
          "time": {
            "access": "",
            "modify": "",
            "change": ""
          },
          "timestamp": {
            "access": 1635925433,
            "modify": 1635925433,
            "change": 1635925433
          }
        },
        {
          "basename": "input.json",
          "pathname": "C:\\temp\\input.json",
          "dirname": "C:\\temp",
          "type": "file",
          "user": "AKADIKIS-840-G2\\aigars",
          "SID": "S-1-5-21-341453538-698488186-381249278-1001",
          "size": 43,
          "time": {
            "access": "",
            "modify": "",
            "change": ""
          },
          "timestamp": {
            "access": 1635925442,
            "modify": 1634674645,
            "change": 1635925442
          }
        }
      ]

      Agent version:

      zabbix_get -s 127.0.0.1 -p 10050 -k "agent.version"
      6.0.0alpha5

      It's Zabbix agent 2.

            dgoloscapov Dmitrijs Goloscapovs
            aigars.kadikis Aigars Kadikis
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: