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

Error message is incorrect for PdhMakeCounterPath()

XMLWordPrintable

      the variable "counterpath" is not defined for log error output in zbx_PdhMakeCounterPath()

      src/libs/zbxwin32/perfmon.c

      PDH_STATUS      zbx_PdhMakeCounterPath(const char *function, 
              if (ERROR_SUCCESS != (pdh_status = PdhMakeCounterPath(cpe, wcounterPath, &dwSize, 0)))
              {
                      zabbix_log(LOG_LEVEL_ERR, "%s(): cannot make counterpath '%s': %s",
                                      function, counterpath, strerror_from_module(pdh_status, L"PDH.DLL"));
              }
      
              zbx_unicode_to_utf8_static(wcounterPath, counterpath, PDH_MAX_COUNTER_PATH);
      }
      

      It seems that the error output shows incorrect counter path.

            Unassigned Unassigned
            kodai Kodai Terashima
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: