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.