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

On AIX the proc.num command line has a 2 KB limit.

XMLWordPrintable

    • Team A
    • 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;
      }
      

            viktors.tjarve Viktors Tjarve
            kazuo.ito Kazuo Ito
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: