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

Agent 1 wmi.getall[] doesn't detect invalid WMI query

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 5.0.8, 5.2.4, 5.4.0alpha2
    • Fix Version/s: None
    • Component/s: Agent (G)
    • Labels:
      None
    • Sprint:
      Sprint 73 (Feb 2021), Sprint 74 (Mar 2021), Sprint 75 (Apr 2021), Sprint 76 (May 2021), Sprint 77 (Jun 2021)
    • Story Points:
      0.5

      Description

      Steps to reproduce:

      Run invalid WMI query with zabbix_get against latest zabbix_agentd.exe:

      C:\Zabbix\run\bin>zabbix_get.exe -s localhost -k "wmi.getall[root\cimv2,select banana]"
      ZBX_NOTSUPPORTED: Empty WMI search result. 
      

      Result:

      ZBX_NOTSUPPORTED: Empty WMI search result.

      Expected:

      An message indicating that the query is invalid.

      zabbix_agent2 works as expected:

      C:\Zabbix\run\bin>zabbix_get.exe -s localhost -k "wmi.getall[root\cimv2,select banana]"
      ZBX_NOTSUPPORTED: Exception occurred. (Invalid query )  
      

        Attachments

          Activity

            People

            Assignee:
            zabbix.dev Zabbix Development Team
            Reporter:
            Kalimulin Alex Kalimulin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: