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
    • 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:
            3 Start watching this issue

            Dates

              Created:
              Updated: