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

wmi.get doesn't process queries with utf8 correctly

XMLWordPrintable

      Recently there was in ZBX-9877 for returned value, I can confirm it on win xp and win 8.1.

      But if for example I need to test a query with not-ascii characters included - it doesn't work.
      Confirmed for any Cyrillic and some Spanish specific characters like á, ó, é etc.

      The easiest way to test it is rename a network interface to a "Ethernet ?????????" or so and use queries like these:

      $ zabbix_get -s 192.168.3.225 -k "wmi.get[root\cimv2,select NetConnectionID from Win32_NetworkAdapter where NetConnectionID like '%Ethernet %']"
      Ethernet ?????????
      $ zabbix_get -s 192.168.3.225 -k "wmi.get[root\cimv2,select NetConnectionID from Win32_NetworkAdapter where NetConnectionID like '%Ethernet ?%']"
      ZBX_NOTSUPPORTED: Cannot obtain WMI information.
      
      
      $ zabbix_get -s 192.168.3.225 -k "wmi.get[root\cimv2,select NetConnectionID from Win32_NetworkAdapter where NetConnectionID like '%Ethernet %']"
      Ethernet á
      $ zabbix_get -s 192.168.3.225 -k "wmi.get[root\cimv2,select NetConnectionID from Win32_NetworkAdapter where NetConnectionID like '%Ethernet á%']"
      ZBX_NOTSUPPORTED: Cannot obtain WMI information.
      

      agent in this example includes the ZBX-9877 fix.

            Unassigned Unassigned
            zalex_ua Oleksii Zagorskyi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: