-
Problem report
-
Resolution: Fixed
-
Trivial
-
3.0.13, 4.0.0alpha1, 4.0 (plan)
-
Sprint 23, Sprint 24, Sprint 25
-
0.5
I would like AIX to also make the following fixes supported by Zabbix 1.8.11.
https://www.zabbix.com/documentation/1.8/manual/about/what_s_new_1.8.11
Command line arguments that exceed 2KB are now supported in proc.num and proc.mem checks on Linux
/include/common.h
#define MAX_ID_LEN 21 #define MAX_STRING_LEN 2048 #define MAX_BUFFER_LEN 65536
/src/libs/zbxsysinfo/aix/proc.c
static int check_procargs(struct procentry64 *procentry, const char *proccomm)
{
int i;
char procargs[MAX_STRING_LEN];
if (0 != getargs(procentry, (int)sizeof(*procentry), procargs, (int)sizeof(procargs)))
return FAIL;
for (i = 0; i < sizeof(procargs) - 1; i++)
{
if ('\0' == procargs[i])
{
if ('\0' == procargs[i + 1])
break;
procargs[i] = ' ';
}
}
if (i == sizeof(procargs) - 1)
procargs[i] = '\0';
return NULL != zbx_regexp_match(procargs, proccomm, NULL) ? SUCCEED : FAIL;
}
- is duplicated by
-
ZBX-17134 AIX procfs parsing is reading truncated information about cmdline
-
- Closed
-