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

ZabbixAgent2 crashes when certain WQLs are used in wmi.getall

    XMLWordPrintable

Details

    • Problem report
    • Status: Elaborating
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • Team INT
    • Sprint 77 (Jun 2021), Sprint 78 (Jul 2021), Sprint 79 (Aug 2021), Sprint 80 (Sep 2021), Sprint 81 (Oct 2021)

    Description

      Case:
      ZabbixAgent2 force close when executing certain WQL.
      Confirmed that ZabbixAgent does not force-quit.

      Steps to reproduce:
      Envriment:
      ZabbixAgent2 5.0.12 and 5.0.8
      WindowsServer 2019

      ItemSample:
      Itemkey wmi.getall[root\MSCluster,select * from MSCluster_Resource]

      Logs:

      Using ZabbixAgent2
      [[email protected] ~]# zabbix_get -s 172.16.0.10 -k "wmi.getall[root\MSCluster,select * from MSCluster_Resource]"
      zabbix_get [5004]: Get value error: ZBX_TCP_READ() failed: [104] Connection reset by peer
      zabbix_get [5004]: Check access restrictions in Zabbix agent configuration
      
      zabbix_agent2.log
      2021/06/22 01:35:16.427575 received passive check request: 'wmi.getall[root\MSCluster,select * from MSCluster_Resource]' from '172.16.0.20'
      2021/06/22 01:35:16.427575 [1] processing update request (1 requests)
      2021/06/22 01:35:16.443173 [1] adding new request for key: 'wmi.getall[root\MSCluster,select * from MSCluster_Resource]'
      2021/06/22 01:35:16.443173 [1] created direct exporter task for plugin 'Wmi' itemid:0 key 'wmi.getall[root\MSCluster,select * from MSCluster_Resource]'
      2021/06/22 01:35:16.443173 executing direct exporter task for key 'wmi.getall[root\MSCluster,select * from MSCluster_Resource]'
      
      Using ZabbixAgent
      [[email protected] ~]# zabbix_get -s 172.16.0.10 -k "wmi.getall[root\MSCluster,select * from MSCluster_Resource]"
      ZBX_NOTSUPPORTED: Cannot convert WMI property 'PrivateProperties' of type 13 to VT_BSTR
      
      zabbix_agent.log
        6004:20210622:014014.242 Requested [wmi.getall[root\MSCluster,select * from MSCluster_Resource]]
        6004:20210622:014014.322 Sending back [ZBX_NOTSUPPORTED: Cannot convert WMI property 'PrivateProperties' of type 13 to VT_BSTR]
        3860:20210622:014014.562 In send_buffer() host:'172.16.0.20' port:10051 entries:0/100
        3860:20210622:014014.588 End of send_buffer():SUCCEED
      

      Result:
      ZabbixAgent2 force close.
      ZabbixAgent was not close.

      Expected:
      Fixed to not force close. Be able to retrieve values.

      Attachments

        Issue Links

          Activity

            People

              esneiders Eriks Sneiders
              kt_eng06 Keita Higa
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: