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.

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.4
    • Fix Version/s: 1.6.6, 1.9.0 (alpha)
    • Component/s: Agent (G)
    • Labels:
      None
    • Environment:
      zabbix server : IBM X336 / CentOS 5.3 / zabbix 1.6.4
      zabbix agentd : DEL optiplex 745 / WindowsXP / zabbix 1.6.4

      Description

      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;
      }
      //////////////////////////////////////////////////////////////////////////////////////////////////

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: