Ad Widget

Collapse

invidividual process cpu load

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • reds
    Junior Member
    • Jul 2007
    • 12

    #1

    invidividual process cpu load

    I need to come up with an item to check the load an individual process puts on the CPU. Also, there are 8 processes with the same name, I would like to monitor all 8 of them. As well as how much network traffic they generate and memory usage as well.

    I've been poking around, but I'm having a real hard time figuring this out. Could anyone lend me a hand with this please?
    Last edited by reds; 01-08-2007, 21:52.
  • dreas
    Member
    • Aug 2007
    • 89

    #2
    UserParameter

    You can add a UserParameter.

    For example:

    UserParameter=cpu.topprocess,ps aux | sort -k +3 | tail -n2 | head -n1 | tr --squeeze-repeats ' ' | cut -f3 -d ' ' | grep -o [0-9]* -m 1 || echo 99999

    This results the value of the top CPU load caused by a single process. It also ensures you get an integer back (or 99999) to avoid any unsupported items notifications if something would fail. My command may be not optimal but it seems to work You should be able to come up with something like that yourself.

    Comment

    • reds
      Junior Member
      • Jul 2007
      • 12

      #3
      This will need to be run on Windows Server 2003.

      Comment

      Working...