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

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • None
    • Agent2 plugin (N)
    • None
    • 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), Sprint 84 (Jan 2022), Sprint 85 (Feb 2022), Sprint 86 (Mar 2022), Sprint 87 (Apr 2022)

      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
      [root@ip-172-16-0-20 ~]# 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
      [root@ip-172-16-0-20 ~]# 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.

            asestakovs Aleksejs Sestakovs
            kt_eng06 Keita Higa
            Team B
            Votes:
            7 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: