Hello,<br><br>I work with Tom Georgoulias over at McClatchy Interactive, he suggested that I share a python Xen VM Monitoring script I wrote for our systems.  I've uploaded it to: <a href="http://eiknet.com/mi-vt.py.bz2">
http://eiknet.com/mi-vt.py.bz2</a><br><br>This script is handy in that it sends information from the Dom0 on behalf of the DomUs.  This way VM data shows up in hobbit with the rest of the DomU host information, giving you the following information updated correctly even if you migrate/move the DomU to another Dom0:
<br><br><pre>Virtual Machine Status<br><br>State: Blocked<br>HostServerMemUsed: 49.99%<br>MaxMemSet: 2048 MB<br>CurMemSet: 2047 MB<br>VCPUs: 2<br>Dom0: hostname</pre><br>It also reports information about all DomUs on behalf of the Dom0:
<br><br><pre>Virtual Machine Status<br><br>Host Server Specs<br>MB Memory: 8191<br>Num CPUs: 2<br>Num Cores: 4<br>CPU MHz: 2666<br><br>hostname01<br>State: Blocked<br>HostServerMemUsed: 12.49%<br>MaxMemSet: 1024 MB<br>CurMemSet: 1023 MB
<br>VCPUs: 2<br><br>hostname02<br>State: Blocked<br>HostServerMemUsed: 24.99%<br>MaxMemSet: 2048 MB<br>CurMemSet: 2047 MB<br>VCPUs: 2<br><br>hostname03<br>State: Blocked<br>HostServerMemUsed: 24.99%<br>MaxMemSet: 2048 MB<br>
CurMemSet: 2047 MB<br>VCPUs: 2<br><br>hostname04<br>State: Blocked<br>HostServerMemUsed: 6.24%<br>MaxMemSet: 512 MB<br>CurMemSet: 511 MB<br>VCPUs: 2</pre><br>The scripts turns yellow on the system being paused, and red on the system being crashed, dying or in shutdown states.  You only need to be running this on the Dom0 and there is, of course, some minor setup to be done by you in the top of the script.
<br><br>If you have comments, questions or suggestions feel free to pass them along, especially if you are well vested in python since this was my first attempt at using it.<br><br>Andrew Rankin<br>Systems Engineer<br>McClatchy Interactive
<br>