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

    • Problem report
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 5.0.8, 5.2.4, 5.4.0alpha2
    • None
    • Agent (G)
    • None
    • Sprint 73 (Feb 2021), Sprint 74 (Mar 2021), Sprint 75 (Apr 2021), Sprint 76 (May 2021), Sprint 77 (Jun 2021), Sprint 78 (Jul 2021), Sprint 79 (Aug 2021), Sprint 80 (Sep 2021), Sprint 81 (Oct 2021), Sprint 82 (Nov 2021), Sprint 83 (Dec 2021)
    • 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

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

            Dates

              Created:
              Updated: