Solved

VMotion Notification

Posted on 2013-06-10
8
630 Views
Last Modified: 2014-01-29
One of my vmware hosts is giving me issues and shutting down randomly.  As a result the VM's on this host are getting automatically vmotioned.  I spent a few hours on the phone with Tech Support and applied a fix, so now I just need to monitor and make sure it doesn't happen anymore.  That being said I would like to setup an email notification anytime any of my VM's get vmotioned.  

Does anyone have detailed instructions on how to set this up?  My other notifications work fine, I just need to detailed instructions on setting up the notification for vmotioned vm's.  We are currently on vmware esxi 4.1 Thanks in advanced!
0
Comment
Question by:jmarti80
8 Comments
 
LVL 28

Assisted Solution

by:asavener
asavener earned 143 total points
Comment Utility
Is this machine part of a high availability (HA) cluster?  If so, it's unlikely that the guests are being vMotioned.  Instead, they're probably being rebooted.

If they're being vMotioned, then it sounds like something else is happening.  Is someone putting it in maintenance mode?  Are the management agents failing?



DRS will vMotion guests in order to balance the load, but you have to be licensed for it and it has to be enabled on the cluster. You should be able to see a list of DRS events if you select the cluster and then select tasks and events.
0
 
LVL 23

Assisted Solution

by:Nagendra Pratap Singh
Nagendra Pratap Singh earned 72 total points
Comment Utility
Why are you not monitoring that promblematic host first?

Also, a crashing host cannot vmotion. It is mostly probably restarted using HA. In this case your monitoring system should tell you that a reboot has occured. Normally it would be done by monitoring uptime.

I have never seen anyone getting alerts for vmotion.
0
 
LVL 117

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) earned 143 total points
Comment Utility
If your host was going off, the VMs would have been restarted on the other host, using VMware HA, this is not a vMotion event.
0
 
LVL 19

Assisted Solution

by:vmwarun - Arun
vmwarun - Arun earned 71 total points
Comment Utility
A custom alarm can be created at the cluster level for vMotion. I suggest that you put the problematic host in maintenance mode first and identify the root cause. I agree with other experts that the VMs may be restarted on the other hosts in the cluster, not vMotioned.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 5

Author Comment

by:jmarti80
Comment Utility
Ok, so the VM's were NOT vmotioned but rather moved over using HA.  Can anyone give me detailed instructions on how to setup an email notification for when my VM's are shutdown and migrated via HA?
0
 
LVL 117

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) earned 143 total points
Comment Utility
There is one alarm worth enabling in VMware vSphere vCenter Server

vSphere HA failover in progress
Default alarm to alert when vSphere HA is in the process of failing over virtual machines

This is enabled by selecting your vCenter Server Name in the vSphere Client, and select the Alarms Tab.

scroll down, and enable the actions, you would like it to perform, e.g. email.
0
 
LVL 28

Assisted Solution

by:asavener
asavener earned 143 total points
Comment Utility
You also have to set up Mail/SMTP settings for the vCenter server.

Open the VI Client, then select the Administration menu -> vCenter server settings -> Mail.  You will have to configure an SMTP server address, and a sender E-mail address.

Then select the vCenter server, select the Alarms tab, then the Definitions button.

I would advise configuring E-mail alerts for Host error, virtual machine high availability error, host connection and power state, and Cluster high availability error.
0
 
LVL 19

Accepted Solution

by:
compdigit44 earned 71 total points
Comment Utility
You could create a task via "Task Scheduler" on your vCenter server that could email you the follow vMotion history daily. This will show you all of the servers that were vmotion in a given time periond and where

http://www.lucd.info/2010/06/22/events-part-8-vmotion-history/
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Suggested Solutions

David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now