In the file /src/libs/zbxsysinfo/osf/cpu.c
//////////////////////////REPLACE////////////////////////////////////////////
zbx_snprintf(cpuname, sizeof(cpuname)"all");
}
if(strncmp(cpuname, "all", sizeof(cpuname)))
{
return SYSINFO_RET_FAIL;
}
if(get_param(param, 2, type, sizeof(type)) != 0)
{
type[0] = '\0';
}
if(type[0] == '\0')
{
/* default parameter */
zbx_snprintf(type, sizeof(tupe), "user");
}
/////////////////////////////WITH////////////////////////////////////
zbx_snprintf(cpuname, sizeof(cpuname),"all");
}
if(strncmp(cpuname, "all", sizeof(cpuname)))
{
return SYSINFO_RET_FAIL;
}
if(get_param(param, 2, type, sizeof(type)) != 0)
{
type[0] = '\0';
}
if(type[0] == '\0')
{
/* default parameter */
zbx_snprintf(type, sizeof(type), "user");
}
//////////////////////////REPLACE////////////////////////////////////////////
zbx_snprintf(cpuname, sizeof(cpuname)"all");
}
if(strncmp(cpuname, "all", sizeof(cpuname)))
{
return SYSINFO_RET_FAIL;
}
if(get_param(param, 2, type, sizeof(type)) != 0)
{
type[0] = '\0';
}
if(type[0] == '\0')
{
/* default parameter */
zbx_snprintf(type, sizeof(tupe), "user");
}
/////////////////////////////WITH////////////////////////////////////
zbx_snprintf(cpuname, sizeof(cpuname),"all");
}
if(strncmp(cpuname, "all", sizeof(cpuname)))
{
return SYSINFO_RET_FAIL;
}
if(get_param(param, 2, type, sizeof(type)) != 0)
{
type[0] = '\0';
}
if(type[0] == '\0')
{
/* default parameter */
zbx_snprintf(type, sizeof(type), "user");
}
Comment