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

Retrieval of multiple WMI values in single wmi.get[] query

    XMLWordPrintable

    Details

    • Type: Change Request
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.2.10, 2.4.6
    • Fix Version/s: None
    • Component/s: Agent (G)
    • Environment:
      Microsoft Windows

      Description

      Ability to query WMI is really powerful method when it comes to getting data from Windows.

      It would be really nice to be able to control what Zabbix agent (or maybe server) does with retrieved WMI values, if there are more than one. One real life use case would be slightly simplified method of getting FQDN on Windows without cmd/PowerShell woo-doo (ZBXNEXT-2106), for example, extending wmi.get[] item with optional parameters like this

      Concatenating retrieved columns by using dot (".") symbol
      wmi.get[root\CIMV2,"SELECT DNSHostName,Domain FROM Win32_ComputerSystem",.]
      

      Different use case probably requiring different approach/implementation would be to retrieve WMI values, which actually are arrays like OperationalStatus in Msvm_ComputerSystem class. Currently there are no way to retrieve 2nd array element from this class (besides using "system.run[ powershell ....]", which is different story (ZBXNEXT-1101)).

      While at it, but this probably is worth its own ticket, maybe it is feasible that Zabbix agent/server would format retrieved WMI tables to JSON for use in LLD (wmi.discovery[] item?)?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              marcis Mārcis Lielturks
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: