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

proc_info get value is different from value of Windows Task Manager.

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.6.6, 1.9.0 (alpha)
    • 1.6.4
    • Agent (G)
    • None
    • zabbix server : IBM X336 / CentOS 5.3 / zabbix 1.6.4
      zabbix agentd : DEL optiplex 745 / WindowsXP / zabbix 1.6.4

      proc_info get value is different from value of Windows Task Manager.

      compare "proc_info[<process>,wkset,sum]" and Memory Usage of Windows Task Manager.
      For example, in monitoring "proc_info[AcroRd32.exe,wkset,sum]", ZABBIX displayed the value as 7,056k, but the real value was 3,528k.
      3,528 + 3,528 = 7,056

      variable "count" in the case of 1, sets variable "value" in variable "*lastValue".
      after processing add variable [value] to variable [*lastValue], two times of values are added to only the first process.

      In src\libs\zbxsysinfo\win32\proc.c there is following code.(1.7 is the same)
      //////////////////////////////////////////////////////////////////////////////////////////////////
      /* Recalculate final value according to selected type */
      if (count==1) /* First instance */

      { *lastValue = value; /* HERE!! value WAS SET *lastValue WHEN count==1 */ }

      switch(type)

      { case 0: /* min */ *lastValue = min((*lastValue),value); break; case 1: /* max */ *lastValue = max((*lastValue),value); break; case 2: /* avg */ *lastValue = ((*lastValue) * (count-1) + value) / count; break; case 3: /* sum */ *lastValue = (*lastValue) + value; /* HERE!! value WAS ADDED TO *lastValue */ break; default: return SYSINFO_RET_FAIL; }

      return SYSINFO_RET_OK;
      }
      //////////////////////////////////////////////////////////////////////////////////////////////////

        1. proc_info_01.jpg
          proc_info_01.jpg
          141 kB
        2. proc_info_02.jpg
          proc_info_02.jpg
          66 kB
        3. zbx164_proc_info.diff.tar.gz
          0.4 kB
        4. 8214-zabbix-1.6.6.patch
          2 kB

            sasha Alexander Vladishev
            kaz Kazuo Ito
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: