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

    • Icon: Change Request Change Request
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.2.10, 2.4.6
    • Agent (G)
    • Microsoft Windows

      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?)?

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

              Created:
              Updated:
              Resolved: