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] xen usage monitoring (munin plugin)

To: Tim Freeman <tfreeman@xxxxxxxxxxx>
Subject: Re: [Xen-users] xen usage monitoring (munin plugin)
From: Anand <xen.mails@xxxxxxxxx>
Date: Tue, 10 Jan 2006 12:28:50 +0530
Cc: Goetz Bock <bock@xxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 10 Jan 2006 07:05:17 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=S5xyIYPgWRE/v131PHBSDRxlNMs11hYf1+siuiA3EHtsFIXsAIINWDXHX2czSu+1bcZDUCxzZKlNXtywNLHjMSMBAi9sPSn+lDzDC86HO7L85qwHxpMSbHrIU5bXkGNUQ6wNJtpchHK04D/s6Pt6JDRWiJQGxqyDZ8n8Sq+1MsE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20060109152834.0c3bb093.tfreeman@xxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20060107193351.GJ4735@xxxxxxxxxxxxxxxxx> <20060109152834.0c3bb093.tfreeman@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thanks for the update on xenstats. xenupdate.py runs fine and creates the rrd files. However when running xengraph.py, it gives the following error:

--imgformat PNG --unit % --vertical-label CPU%  DEF:id0raw=/home/anand/root/xen-development/xen-graphs/Domain- 0.rrd:cpu:LAST CDEF:id0percent=id0raw,10,/ CDEF:id0zero=id0percent,DUP,UN,EXC,0,EXC,IF DEF:id1raw=/home/anand/root/xen-development/xen-graphs/vm01.rrd:cpu:LAST CDEF:id1percent=id1raw,10,/ CDEF:id1zero=id1percent,DUP,UN,EXC,0,EXC,IF AREA:id0zero#000000:Domain-0 GPRINT:id0percent:AVERAGE:"Average CPU usage\: %02.0lf%%\j" STACK:id1zero#FF0000:vm01 GPRINT:id1percent:AVERAGE:"Average CPU usage\: %02.0lf%%\j"
ERROR: unknown option '--unit'
--imgformat PNG --unit % --vertical-label CPU%  DEF:id0raw=/home/anand/root/xen-development/xen-graphs/Domain-0.rrd:cpu:LAST CDEF:id0percent=id0raw,10,/ CDEF:id0zero=id0percent,DUP,UN,EXC,0,EXC,IF DEF:id1raw=/home/anand/root/xen-development/xen-graphs/vm01.rrd:cpu:LAST CDEF:id1percent=id1raw,10,/ CDEF:id1zero=id1percent,DUP,UN,EXC,0,EXC,IF AREA:id0zero#000000:Domain-0 GPRINT:id0percent:AVERAGE:"Average CPU usage\: %02.0lf%%\j" STACK:id1zero#FF0000:vm01 GPRINT:id1percent:AVERAGE:"Average CPU usage\: %02.0lf%%\j"
ERROR: unknown option '--unit'
--imgformat PNG --unit % --vertical-label CPU%  DEF:id0raw=/home/anand/root/xen-development/xen-graphs/Domain-0.rrd:cpu:LAST CDEF:id0percent=id0raw,10,/ CDEF:id0zero=id0percent,DUP,UN,EXC,0,EXC,IF DEF:id1raw=/home/anand/root/xen-development/xen-graphs/vm01.rrd:cpu:LAST CDEF:id1percent=id1raw,10,/ CDEF:id1zero=id1percent,DUP,UN,EXC,0,EXC,IF AREA:id0zero#000000:Domain-0 GPRINT:id0percent:AVERAGE:"Average CPU usage\: %02.0lf%%\j" STACK:id1zero#FF0000:vm01 GPRINT:id1percent:AVERAGE:"Average CPU usage\: %02.0lf%%\j"
ERROR: unknown option '--unit'
--imgformat PNG --unit % --vertical-label CPU%  DEF:id0raw=/home/anand/root/xen-development/xen-graphs/Domain-0.rrd:cpu:LAST CDEF:id0percent=id0raw,10,/ CDEF:id0zero=id0percent,DUP,UN,EXC,0,EXC,IF DEF:id1raw=/home/anand/root/xen-development/xen-graphs/vm01.rrd:cpu:LAST CDEF:id1percent=id1raw,10,/ CDEF:id1zero=id1percent,DUP,UN,EXC,0,EXC,IF AREA:id0zero#000000:Domain-0 GPRINT:id0percent:AVERAGE:"Average CPU usage\: %02.0lf%%\j" STACK:id1zero#FF0000:vm01 GPRINT:id1percent:AVERAGE:"Average CPU usage\: %02.0lf%%\j"
ERROR: unknown option '--unit'
--imgformat PNG --unit % --vertical-label CPU%  DEF:id0raw=/home/anand/root/xen-development/xen-graphs/Domain-0.rrd:cpu:LAST CDEF:id0percent=id0raw,10,/ CDEF:id0zero=id0percent,DUP,UN,EXC,0,EXC,IF DEF:id1raw=/home/anand/root/xen-development/xen-graphs/vm01.rrd:cpu:LAST CDEF:id1percent=id1raw,10,/ CDEF:id1zero=id1percent,DUP,UN,EXC,0,EXC,IF AREA:id0zero#000000:Domain-0 GPRINT:id0percent:AVERAGE:"Average CPU usage\: %02.0lf%%\j" STACK:id1zero#FF0000:vm01 GPRINT:id1percent:AVERAGE:"Average CPU usage\: %02.0lf%%\j"
ERROR: unknown option '--unit'

Its complaining about --unit. Any help would be appreciated.

On 1/10/06, Tim Freeman < tfreeman@xxxxxxxxxxx> wrote:
On Sat, 7 Jan 2006 20:33:51 +0100
Goetz Bock < bock@xxxxxxxxxxx> wrote:

> Dear list,
>
> as my Xen3 server is finaly becomming ready for production I was
> wondering if anyone has written a xen usage monitoring/logging tool?
>
> Something like xm top, but with continuose logging to a (rr)database.

There is this for CPU time -> rrd
http://skaya.enix.org/wiki/XenStats

I needed to change a tiny something to get it working in Xen3:

diff xenupdate.py modified.xenupdate.py
16c16
<     name,id,mem,cpu,state,cputime,console=re.split ("[\t ]+",domain)
---
>     name,id,mem,cpu,state,cputime=re.split("[\t ]+",domain)


Tim



>
> Or a munin plugin?
>
> I can't remember seeing anything simmilar on the list.
>
> BTW: where does xm top get the NETTX(k) and NETRX(k) from?
>
> For a munin plugin I'd imagin two modes:
>
> - just monitor cpu usage off all domains (dom0 and domU) in one graph.
>   This can be parsed from xm list, or as suggested 2004/12/xx using some
>   more low level xen api. But I don't know how to figure out which of
>   the real CPU was used, otoh this information might not be relevant at
>   all.
> - monitor just one domain. But all data, like xm top does.
> --
> /"\ Goetz Bock at blacknet dot de  --  secure mobile Linux everNETting
> \ /       (c) 2006 Creative Commons, Attribution-ShareAlike 2.0 de
>  X   [ 1. Use descriptive subjects - 2. Edit a reply for brevity -  ]
> / \  [ 3. Reply to the list - 4. Read the archive *before* you post ]
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>

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



--

regards,

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