ZABBIX BUGS AND ISSUES
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-9279

Reduce amount of data retrieved by vmware collector

    Details

      Description

      Currently vmware collector retrieves object top level properties - for example overallStatus, name, vm, summary, parent, datastore are retrieved for hypervisors. However often we really need only a subset of retrieved data. For example we aren't using summary/runtime, which is quite large. So instead of retrieving whole summary property we should specify detalized property paths:

                  <urn:propSet>
                     <urn:type>HostSystem</urn:type>
                     <urn:pathSet>overallStatus</urn:pathSet>
                     <urn:pathSet>name</urn:pathSet>
                     <urn:pathSet>vm</urn:pathSet>
                     <urn:pathSet>summary.quickStats</urn:pathSet>
                     <urn:pathSet>summary.config</urn:pathSet>
                     <urn:pathSet>summary.hardware</urn:pathSet>
                     <urn:pathSet>parent</urn:pathSet>
                     <urn:pathSet>datastore</urn:pathSet>
                  </urn:propSet>
      

      The attached patch provides simple optimization, recuding the amount of retrieved data by 50%

        Activity

        Hide
        Andris Zeila added a comment - - edited

        (1) In vmware_service_update_perf() function entities vector is initialized in two places. The first zbx_vector_ptr_create(&entities) should be removed.

        RESOLVED

        Alexander Vladishev CLOSED

        Show
        Andris Zeila added a comment - - edited (1) In vmware_service_update_perf() function entities vector is initialized in two places. The first zbx_vector_ptr_create(&entities) should be removed. RESOLVED Alexander Vladishev CLOSED
        Hide
        Andris Zeila added a comment -

        Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-9279

        Show
        Andris Zeila added a comment - Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-9279
        Hide
        Alexander Vladishev added a comment - - edited

        (2) vmware.hv.status[{$URL},{HOST.HOST}] reports different data

        Before the fix:

        • gray (0)

        After:

        • green (1)

        Related issue: ZBX-7446

        Alexander Vladishev REOPENED

        Andris Zeila RESOLVED in r52063

        Alexander Vladishev CLOSED

        Show
        Alexander Vladishev added a comment - - edited (2) vmware.hv.status[{$URL},{HOST.HOST}] reports different data Before the fix: gray (0) After: green (1) Related issue: ZBX-7446 Alexander Vladishev REOPENED Andris Zeila RESOLVED in r52063 Alexander Vladishev CLOSED
        Hide
        Andris Zeila added a comment - - edited

        (3) Memory leak during first authentication at vmware.c:958:

        		if (NULL == (*error = zbx_xml_read_value(page.data, ZBX_XPATH_FAULTSTRING())))
        

        Andris Zeila RESOLVED in r52064

        Alexander Vladishev CLOSED

        Show
        Andris Zeila added a comment - - edited (3) Memory leak during first authentication at vmware.c:958: if (NULL == (*error = zbx_xml_read_value(page.data, ZBX_XPATH_FAULTSTRING()))) Andris Zeila RESOLVED in r52064 Alexander Vladishev CLOSED
        Hide
        Andris Zeila added a comment -

        Released in:

        • pre-2.2.9rc1 r52083
        • pre-2.4.4rc1 r52084
        • pre-2.5.0 r52086
        Show
        Andris Zeila added a comment - Released in: pre-2.2.9rc1 r52083 pre-2.4.4rc1 r52084 pre-2.5.0 r52086
        Hide
        Andris Zeila added a comment - - edited

        (4) Documentation:

        Andris Zeila RESOLVED

        Alexander Vladishev CLOSED

        Show
        Andris Zeila added a comment - - edited (4) Documentation: 2.2.9 what's new 2.4.4 what's new Andris Zeila RESOLVED Alexander Vladishev CLOSED

          People

          • Assignee:
            Unassigned
            Reporter:
            Andris Zeila
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: