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

Native WMI support on Windows agent

    XMLWordPrintable

    Details

    • Type: New Feature Request
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.5
    • Fix Version/s: 2.1.6
    • Component/s: Agent (G)
    • Labels:
    • Environment:
      Windows 32bit

      Description

      Hello,
      this is the patch to add support for WMI queries in Zabbix Agent. It will add "wmi.get" key. I have tested it only with Win32 agent, no support for x64 so far.

      Parameters:
      1 - mandatory. WMI root. for example: root\cimv2
      2 - mandatory. WMI query. for example: select * from Win32_DiskDrive where Name like '%PHYSICALDRIVE0%'
      3 - mandatory. Property to return. for example: Status
      4 - optional. Data type to convert value into. Supported types are: int64 and text . This is needed because WMI sometimes returns numeric values as text.

      Some examples where it can be used:
      Get status of the physical disk:
      wmi.get[root\cimv2,select * from Win32_DiskDrive where Name like '%PHYSICALDRIVE0%',Status]
      Get status of the NLB cluster member:
      wmi.get[root\microsoftnlb,select StatusCode from MicrosoftNLB_Node,StatusCode]

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            zkrapavickas Zilvinas Krapavickas
            Votes:
            18 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: