Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support CPU Monitoring on Windows

  • CPU Monitoring on Windows

    Posted by allentiak on October 4, 2006 at 02:56

    I know that it is possible to monitor the CPU load on Linux Systems, but I have unable to find a way under windows (at least, not in the documentation). Is there any way of doing it?
    I am using pandora 1.2b2

    allentiak replied 17 years, 12 months ago 4 Members · 5 Replies
  • 5 Replies
  • raul

    Member
    October 4, 2006 at 03:34
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    The problem is the Operating System, I don’t know any tool included in it to make it posible from the command line.

    Edit: That tool exists (tasklist.exe) if you use Windows XP and rpc service is enabled.

    Try http://www.sysinternals.com/Utilities/PsTools.html, maybe pslist can help you. Try running it, for example something like:

    [code:1]pslist -s -r 1

    The output is something like:

    1:28:30 04/10/2006 Process information for PC:
    
    Name                Pid CPU Thd  Hnd   Priv        CPU Time    Elapsed Time
    Idle                     0 100   2    0      0    58:08:47.765    30:14:40.937
    smss                  524   0   3   18    168     0:00:00.015    30:14:40.937
    csrss                 608   0  10  299   1852     0:00:39.953    30:14:38.531
    winlogon            660   0  18  469   6908     0:00:00.828    30:14:36.468
    System                 4   0  57  392      0     0:00:35.062    30:14:40.937
    services            736   0  14  235   1844     0:00:09.781    30:14:34.609
    lsass                 748   0  13  269   2036     0:00:01.656    30:14:34.437
    svchost             992   0   8  215   1760     0:00:00.531    30:14:30.796
    svchost            1092   0  31  808  15572     0:00:05.734    30:14:30.421
    svchost            1124   0   6   95   1564     0:00:00.312    30:14:30.265
    svchost            1256   0   1   55    984     0:00:00.046    30:14:29.250
    explorer           1400   0  23  771  15064     0:00:44.703    30:14:28.125
    TSVNCache       1528   0   7   87   7736     0:01:00.312    30:14:24.500
    sshd               3220   0  26  49   4980     0:01:05.500    30:02:53.515
    firefox            660824   0   8  255 103448     0:02:50.812     5:06:15.515
    cmd               510928   0   1   31   1964     0:00:00.046     0:19:32.984
    procexp          515972   0   2  171   6060     0:00:01.859     0:18:38.171
    cmd               520712   0   1   30   1912     0:00:00.062     0:16:22.625
    cmd               526648   0   1   28   1892     0:00:00.031     0:13:35.265
    pslist              554576   0   3   72    680     0:00:00.046     0:00:04.031
    

    As you can see, there is a CPU column.

    You can redirect this to a file, and search the information you want. For this you can use the GNU utilities at the %Pandora_agent_home%binutil directory.

    Raul

    I know that it is possible to monitor the CPU load on Linux Systems, but I have unable to find a way under windows (at least, not in the documentation). Is there any way of doing it?
    I am using pandora 1.2b2

  • allentiak

    Member
    October 4, 2006 at 03:43
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thanks. I’ll try that.

  • anonymous

    Member
    October 4, 2006 at 13:00
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Pandora Agent for Windows 1.2 has its own module to show that.

  • Sancho

    Administrator
    October 4, 2006 at 13:12
    2212 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    I know that it is possible to monitor the CPU load on Linux Systems, but I have unable to find a way under windows (at least, not in the documentation). Is there any way of doing it?
    I am using pandora 1.2b2

    Yes, in the newest agent (now in beta3), that you can download from SVN repository, you have an specific module to take CPU usage. This is an extract of latest documentation (also placed in SVN, at

    https://svn.sourceforge.net/svnroot/pandora/trunk/pandora_doc/en/pandora.pdf

    2.4.4.2.8. module_cpuusage cpu id (Win32 Only)

    Returns CPU usage on CPU number cpu. If you only have one cpu, use 0 as value.

    Examples:

    module_begin
    module_name CPU_Usage
    module_type generic_data
    module_cpuusage 0
    module_description usage % for CPU #0
    module_end

    I hope you will be able to download beta3 from SVN, if you have any problems about SVN usage, plese read documentation about SVN usage in Openideas.info wiki (at this moment only in spanish), or use another SVN reference (there are many, including a short one in Sourceforge).

  • allentiak

    Member
    October 4, 2006 at 19:41
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Yes, in the newest agent (now in beta3), that you can download from SVN repository, you have an specific module to take CPU usage.

    I’m downloading it. Thanks