Xymon Mailing List Archive search

Xen Hobbit Monitoring Script

5 messages in this thread

list Andrew Rankin · Mon, 24 Sep 2007 10:36:10 -0400 ·
Hello,

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: http://eiknet.com/mi-vt.py.bz2

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:

Virtual Machine Status

State: Blocked
HostServerMemUsed: 49.99%
MaxMemSet: 2048 MB
CurMemSet: 2047 MB
VCPUs: 2
Dom0: hostname


It also reports information about all DomUs on behalf of the Dom0:

Virtual Machine Status

Host Server Specs
MB Memory: 8191
Num CPUs: 2
Num Cores: 4
CPU MHz: 2666

hostname01
State: Blocked
HostServerMemUsed: 12.49%
MaxMemSet: 1024 MB
CurMemSet: 1023 MB
VCPUs: 2

hostname02
State: Blocked
HostServerMemUsed: 24.99%
MaxMemSet: 2048 MB
CurMemSet: 2047 MB
VCPUs: 2

hostname03
State: Blocked
HostServerMemUsed: 24.99%
MaxMemSet: 2048 MB
CurMemSet: 2047 MB
VCPUs: 2

hostname04
State: Blocked
HostServerMemUsed: 6.24%
MaxMemSet: 512 MB
CurMemSet: 511 MB
VCPUs: 2


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.

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.

Andrew Rankin
Systems Engineer
McClatchy Interactive
list Charles Jones · Mon, 24 Sep 2007 10:37:05 -0700 ·
Nice...can you send this to TheShire?
quoted from Andrew Rankin

Andrew Rankin wrote:
Hello,

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: http://eiknet.com/mi-vt.py.bz2

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:
list Martin Flemming · Mon, 24 Sep 2007 20:30:33 +0200 (CEST) ·
That's an good idea ...

.. and how to configure or debug it ...

my 
clientlaunch.cfg looks like 

[vt]
ENVFILE /usr/lib/hobbit/client/etc/hobbitclient.cfg
CMD /usr/lib/hobbit/client/ext/mi-vt.py
LOGFILE $HOBBITCLIENTHOME/logs/xen.log
INTERVAL 5m


but i've got no logfile or something else, nothing to see ..

cheers,
             martin
quoted from Charles Jones

On Mon, 24 Sep 2007, Charles Jones wrote:
Nice...can you send this to TheShire?

Andrew Rankin wrote:
Hello,

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: http://eiknet.com/mi-vt.py.bz2

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:
Gruss

       Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid
list Andrew Rankin · Mon, 24 Sep 2007 16:33:44 -0400 ·
Charles -

I went ahead and sent the same email to the "theshire-developers" list on
source forge.

---

Martin -

Your client config looks fine - It won't have any console output unless its
failing somewhere.   Make sure you've set bbhome, domain & hobbit_server in
the script.
quoted from Martin Flemming

---

Andrew Rankin
Systems Engineer
McClatchy Interactive


On 9/24/07, Martin Flemming <user-f286aaa49a76@xymon.invalid> wrote:

That's an good idea ...

.. and how to configure or debug it ...

my
clientlaunch.cfg looks like

[vt]
ENVFILE /usr/lib/hobbit/client/etc/hobbitclient.cfg
CMD /usr/lib/hobbit/client/ext/mi-vt.py
LOGFILE $HOBBITCLIENTHOME/logs/xen.log
INTERVAL 5m


but i've got no logfile or something else, nothing to see ..

cheers,
             martin

On Mon, 24 Sep 2007, Charles Jones wrote:
Nice...can you send this to TheShire?

Andrew Rankin wrote:
Hello,

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: http://eiknet.com/mi-vt.py.bz2

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:
Gruss

       Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid

list Galen Johnson · Wed, 26 Sep 2007 01:28:24 -0400 ·
Posted on The Shire.

=G=
quoted from Andrew Rankin

Andrew Rankin wrote:
Charles -

I went ahead and sent the same email to the "theshire-developers" list 
on source forge.

---

Martin -

Your client config looks fine - It won't have any console output 
unless its failing somewhere.   Make sure you've set bbhome, domain & 
hobbit_server in the script.

---

Andrew Rankin
Systems Engineer
McClatchy Interactive


On 9/24/07, *Martin Flemming* < user-f286aaa49a76@xymon.invalid 
<mailto:user-f286aaa49a76@xymon.invalid>> wrote:


    That's an good idea ...

    .. and how to configure or debug it ...

    my
    clientlaunch.cfg looks like

    [vt]
    ENVFILE /usr/lib/hobbit/client/etc/hobbitclient.cfg
    CMD /usr/lib/hobbit/client/ext/mi-vt.py
    LOGFILE $HOBBITCLIENTHOME/logs/xen.log
    INTERVAL 5m


    but i've got no logfile or something else, nothing to see ..

    cheers,
                 martin

    On Mon, 24 Sep 2007, Charles Jones wrote:
Nice...can you send this to TheShire?

Andrew Rankin wrote:
Hello,

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: http://eiknet.com/mi-vt.py.bz2

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:
    Gruss

           Martin Flemming


    Martin Flemming
    DESY / IT          office : Building 2b / 008a
    Notkestr. 85       phone  : XXX - XXXX - XXXX
    22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid