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-devel

Re: [Xen-devel] Is there a way to get notification, when a domain shutd

Subject: Re: [Xen-devel] Is there a way to get notification, when a domain shutdown/restarts
From: Bruce Edge <bruce.edge@xxxxxxxxx>
Date: Mon, 21 Sep 2009 09:39:10 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 21 Sep 2009 09:39:39 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:cc:content-type; bh=7eNrh2hiA0tWrDc18P6gQ1ynPNz+lkCuTstj3T0NkJ0=; b=Ot27cVp8lMUzFAnX9hdi8llRikRndcUnmv9zi8sT/x79/a9uP+qONeTgcROH3GEl+1 LToQfZpcsM9FKy5p0spCw3htZarApmUPqNgTrjep6aY/CBbH5SJsii6/MMxh/CtGjCzH 8NE+e0CkNjDSFB0uAWpKxkjXqlG3/V02qRovk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; b=gxPIJZUVLrAj0UrLkeoKOf52QgSIkpRf+tZMld7cNG8BVG3I8apIOJSlxfKbkN9guj QdXET9S5mFqjUGFoSz8ml0IHxk85LO7EqmiqroKWYohKrV8vGHUfqLCYCfuiRSaYnTkz T4QGSIRbxq4Jv1CshCd5vejyjgQZgOYneW4bo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8686c3cd0909210425v367b1a73t907e98c9df539352@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <8686c3cd0909160651s663c75f2i1fe7c23efb25ca56@xxxxxxxxxxxxxx> <4AB2E9E7.6010704@xxxxxxxxxx> <8686c3cd0909210425v367b1a73t907e98c9df539352@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
You could use something like the monit package to monitor the domU through a variety of methods, ping, socket connect, etc. The config allows one to specify multiple rules to detect and take action based upon events.
It would be trivial to monitor a domU via ping and restart it if it stopper responding.

It's also less code you have to maintain yourself :-)

-Bruce

On Mon, Sep 21, 2009 at 4:25 AM, Tom Rotenberg <tom.rotenberg@xxxxxxxxx> wrote:
Well, i was looking for a solution, which won't require me to modify
teh code, but to use an already-built mechaism for this, but i guess
none exists, so i'll modify the code for this.

Thanks!


On Fri, Sep 18, 2009 at 5:01 AM, Michal Novotny <minovotn@xxxxxxxxxx> wrote:
> On 09/16/2009 03:51 PM, Tom Rotenberg wrote:
>>
>> Hi,
>>
>> I would like to write a script, which will run, every time my
>> (specific) domain reboots or shutdown. Is there any way, to "catch"
>> those events, or to be notified when it happens?
>>
>> Tom
>>
>
> Hi Tom,
> I am not sure about that but you can modify python script to call this
> script in this event. There should be some method to be called every time
> the domain reboots/shuts down. There you can add a call to you script or
> write it purely in python. I think it's somewhere in XendDomainInfo.py file
> somewhere in python site-packages directory.
>
> Michal
>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-devel
>>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>