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

Native WMI support on Windows agent

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Fixed
    • Icon: Major Major
    • 2.1.6
    • 1.8.5
    • Agent (G)
    • Windows 32bit

      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]

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

              Created:
              Updated:
              Resolved: