WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Monitoring XEN hardware resources utilization.

To: glior@xxxxx
Subject: Re: [Xen-users] Monitoring XEN hardware resources utilization.
From: Thomas Halinka <lists@xxxxxxxxx>
Date: Tue, 31 Mar 2009 17:52:34 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 31 Mar 2009 08:53:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49D215D3.8080408@xxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <49D215D3.8080408@xxxxx>
Reply-to: lists@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Lior,

Am Dienstag, den 31.03.2009, 17:08 +0400 schrieb Lior Goikhburg:
> Hello.
> 
> How do people here used to monitor their XEN server resources ? (I mean 
> not Dom0 or DomU resources which I have no problem monitoring via SNMP, 
> but the physical resources of the hardware: CPU, Disk and Network 
> utilization etc.)
> 
> I have an rrd graphing system (similar to cacti) and I need to get the 
> following data:
> Total % of CPU, Disk and Network utilization (hardware wise)
> I will then feed this data to the rrd system.

I've written a Nagios-Plugin for XEN, which throws CPU, IO, Traffic,
Uptime etc to be continued, which satisfys my need.

Should be no Problem to adopt this for rrd-graphing.


Interested? Could PM this to you :-)

> 
> I tried the following tools (xm top, xenmon, virt-top) all of them are 
> not informative and no flexible enough to use with scripts.

hmpf? i used xm top....

TIME=`sudo xm list | grep $DOM | awk '{ print $6/60 }'`
CPU=`sudo xentop -b -i 1 | grep $DOM | awk '{print $4 }'`
VCPU=`sudo xm list | grep $DOM | awk '{print $4}'`
VBD=`sudo xentop -b -i 1 | grep $DOM | awk '{print $13}'`
MEM=`sudo xm list | grep $DOM | awk '{print $3}'`
TRAFF_IN=`sudo xentop -b -i 1 | grep $DOM | awk '{printf "%.2f",
 $11/1024}'`
TRAFF_OUT=`sudo xentop -b -i 1 | grep $DOM | awk '{printf "%.2f"
, $12/1024}'`
TRAFF=`sudo xentop -b -i 1 | grep $DOM | awk '{ printf "%.2f", (
$11+$12)/1024 }'`

and so on....

> Also if I'm thinking about writing my own daemon Python or PERL. Where 
> can I read the info I need, xend ? /sys ?

puuh - no Idea - maybe /proc?

> 
> Thanks in advance for taking time to answer.
> 
> Lior.


hth,

Thomas


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>