PDA

View Full Version : PATCH: 1.4.4 OSF1 (Tru64)


amadriga
22-01-2008, 21:42
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");

}

jgordor
23-01-2008, 08:37
I allready fill a bug/fix report on:
https://support.zabbix.com/browse/ZBX-273