* Is there a way to get notification, when a domain shutdown/restarts @ 2009-09-16 13:51 Tom Rotenberg 2009-09-18 2:01 ` Michal Novotny 0 siblings, 1 reply; 4+ messages in thread From: Tom Rotenberg @ 2009-09-16 13:51 UTC (permalink / raw) To: xen-devel 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is there a way to get notification, when a domain shutdown/restarts 2009-09-16 13:51 Is there a way to get notification, when a domain shutdown/restarts Tom Rotenberg @ 2009-09-18 2:01 ` Michal Novotny 2009-09-21 11:25 ` Tom Rotenberg 0 siblings, 1 reply; 4+ messages in thread From: Michal Novotny @ 2009-09-18 2:01 UTC (permalink / raw) To: xen-devel 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@lists.xensource.com > http://lists.xensource.com/xen-devel > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is there a way to get notification, when a domain shutdown/restarts 2009-09-18 2:01 ` Michal Novotny @ 2009-09-21 11:25 ` Tom Rotenberg 2009-09-21 16:39 ` Bruce Edge 0 siblings, 1 reply; 4+ messages in thread From: Tom Rotenberg @ 2009-09-21 11:25 UTC (permalink / raw) To: Michal Novotny; +Cc: xen-devel 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@redhat.com> 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@lists.xensource.com >> http://lists.xensource.com/xen-devel >> > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is there a way to get notification, when a domain shutdown/restarts 2009-09-21 11:25 ` Tom Rotenberg @ 2009-09-21 16:39 ` Bruce Edge 0 siblings, 0 replies; 4+ messages in thread From: Bruce Edge @ 2009-09-21 16:39 UTC (permalink / raw) Cc: xen-devel [-- Attachment #1.1: Type: text/plain, Size: 1893 bytes --] 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@gmail.com>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@redhat.com> > 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@lists.xensource.com > >> http://lists.xensource.com/xen-devel > >> > > > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > [-- Attachment #1.2: Type: text/html, Size: 2873 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-09-21 16:39 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-09-16 13:51 Is there a way to get notification, when a domain shutdown/restarts Tom Rotenberg 2009-09-18 2:01 ` Michal Novotny 2009-09-21 11:25 ` Tom Rotenberg 2009-09-21 16:39 ` Bruce Edge
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.