Ad Widget

Collapse

proc_info problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fsauro
    Junior Member
    • Apr 2010
    • 4

    #1

    proc_info problem

    I installed zabbix agent 1.8.2 on a windows terminal server 2003.
    When I run tasklist command in a cmd session more processes "OUTLOOK.EXE" of different users are present.

    But then running
    c:\zabbix\zabbix_agentd.exe -t proc_info[OUTLOOK.EXE,vmsize,max]
    the result is
    proc_info[OUTLOOK.EXE,vmsize,max] [d|0.000000].

    If the test is about any administrator processes the result is ok.
    For example
    proc_info[svchost.exe,vmsize,avg] [d|16068.666667]

    Is a bug or a configuration error?

    Thanks
    Last edited by fsauro; 23-04-2010, 13:20.
  • fsauro
    Junior Member
    • Apr 2010
    • 4

    #2
    Looking at zabbix source (source_zabbix-1.8.2.tar\zabbix-1.8.2\src\libs\zbxsysinfo\win32\proc.c) I saw that

    int PROC_INFO(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result)

    call

    EnumProcesses(procList, sizeof(DWORD) * MAX_PROCESSES, &dwSize);


    In the web the are some pages that describe a problem when calling
    EnumProcess :
    http://www.codeguru.com/forum/showpo...30&postcount=9


    Is a priviledge problem?
    My Zabbix agent is running with NT Authority System user.

    Can anyone help me?
    Thanks

    Comment

    • fsauro
      Junior Member
      • Apr 2010
      • 4

      #3
      Maybe this can help:

      with a normal user
      c:\zabbix\zabbix_agentd.exe -t proc_info[OUTLOOK.EXE,vmsize,max]
      the result is
      proc_info[OUTLOOK.EXE,vmsize,max] [d|1720.650000].
      and the value showed is calculated considering ALL the OUTLOOK.EXE processes.

      If I run the same test with an admin user the result is [0|0.000000].

      Anyone got any ideas for this problem?

      Comment

      • Tractorboy
        Member
        • Oct 2010
        • 98

        #4
        Process with a space

        can proc_info deal with processes that have spaces?

        Comment

        Working...