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.
georgopanosAsked:
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.?

http://www.cyberciti.biz/tips/linux-xen-server-vps-monitoring-commands.html
http://linux.die.net/man/1/xm
0
 
MazdajaiCommented:
Exactly what do you mean by 'specific Domain is not running'?
0
 
georgopanosAuthor Commented:
yes i think that will work thanks
0
All Courses

From novice to tech pro — start learning today.