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] Python script to collect domU stats

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Python script to collect domU stats
From: "Diego Woitasen" <diegows@xxxxxxxxxxxx>
Date: Sun, 4 May 2008 19:22:49 -0300 (ART)
Delivery-date: Sun, 04 May 2008 15:09:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
Importance: Normal
In-reply-to: <VA.000031c4.01589030@xxxxxxxxxxxxxxxxxx>
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: <20080502012634.GA6600@xxxxxxxxxxxxxxxxxxxxxx> <VA.000031c4.01589030@xxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: SquirrelMail/1.4.7
On Fri, May 2, 2008 11:16 am, Kai Schaetzl wrote:
> Diego Woitasen wrote on Thu, 1 May 2008 22:26:34 -0300:
>
>> I've attached a python script that collects stats from DomUs (HVM and
>> PVM). I hope this would be useful for somebody else.
>
> Thanks for sharing the script. I tried it on my CentoS 5.1 with Xen 3.2
> and it fails with
> Traceback (most recent call last):
>   File "/root/bin/xen-stats.py", line 97, in ?
>     domains = xend.domains_with_state(True, 'all', True)
>   File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__
>     return self.__send(self.__name, args)
>   File "/usr/lib/python2.4/site-packages/xen/util/xmlrpcclient.py", line
> 118, in __request
>     response = xmlrpclib.ServerProxy.__request(self, methodname, params)
>   File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request
>     verbose=self.__verbose
>   File "/usr/lib/python2.4/xmlrpclib.py", line 1129, in request
>     self.send_content(h, request_body)
>   File "/usr/lib/python2.4/xmlrpclib.py", line 1243, in send_content
>     connection.endheaders()
>   File "/usr/lib/python2.4/httplib.py", line 798, in endheaders
>     self._send_output()
>   File "/usr/lib/python2.4/httplib.py", line 679, in _send_output
>     self.send(msg)
>   File "/usr/lib/python2.4/httplib.py", line 646, in send
>     self.connect()
>   File "/usr/lib/python2.4/httplib.py", line 630, in connect
>     raise socket.error, msg
> socket.error: (111, 'Connection refused')
>
> You write it's for 3.1.*, so that might be the reason. However, the
> refused rpc connection looks more like a portmap/tcpwrapper configuration
> problem. portmap is on and running and nfs is working for instance. What
> would I need to allow to accept that specific connection?
>
> Kai
>
> --
> Kai Schätzl, Berlin, Germany
> Get your web at Conactive Internet Services: http://www.conactive.com
>
>
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>

Ups, I forgot a detail. You need to uncomment these two lines in
xend-config.sxp:

(xend-tcp-xmlrpc-server yes)
(xen-tcp-xmlrpc-server-port 8006)


-- 
Diego Woitasen
XTECH - Soluciones Linux para empresas
(54) 011 5219-0678


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

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