Running CENTOS 5.9 with XEN KERNEL need a script to check Domain running

I am running CENTOS 5.9 with XEN Kernel. When you launch Virt-Manager you can see that I have  a copy of Windows running. What I need is a script that can run in a cron job to notify me by email if that specific Domain is not running. Thanks for all help.
Who is Participating?
serialbandConnect With a Mentor Commented:
It's been a while since I've run xen, but you should be able to use xm list to list the servers and grep from the server in question and check the state of the virtual machine.  Is that what you want.?
Exactly what do you mean by 'specific Domain is not running'?
georgopanosAuthor Commented:
yes i think that will work thanks
All Courses

From novice to tech pro — start learning today.