Process monitoring with pw.py

From Olpcaustria

(Redirected from Process-watching with pw.py)
Jump to: navigation, search
  • pw.py is a tool to monitor a single process with its cpu and memory load
  • Source (3 files): tar.gz zip tree
  • Existing plugins:
    • pw-plugin-console.py ....... Console text output (cpu < 0.4%)
    • pw-plugin-gtk_graph.py ... a simple graph with gtk (cpu < 1.3%)
  • Planned plugins:
    • pw-plugin-rrd-collect.py ... collect data for rrd and send over network
    • pw-plugin-rrd_tool.py ...... receive data and draw graph with rrd
  • Feedback: chris (at) linuxuser (dot) at
  • Usage:
pw.py process_id/name/part_of_name
Examples:
  1. 'pw.py fire' ... possibly capture firefox
  2. 'pw.py 8285' ... watch process with pid 8285
  3. 'pw.py pw.py' .. watch last pw.py
  • Screenshots:
Monitoring Firefox:
Image:Pw_fire.png
GTK Graph (mem=grey, cpu=white):
Image:Pw_fire_gtk.png

Capturing the pw.py which is monitoring firefox
Image:Pw_pw.png

Capturing the Journal:
Image:Xo-journal.png

Another Graph on the xo:
Image:Xo-graph.png
Personal tools
Navigation
Toolbox
-->