Solved

VMotion Notification

Posted on 2013-06-10
8
657 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
ID: 39236625
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
ID: 39236745
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 119

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 143 total points
ID: 39236899
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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 19

Assisted Solution

by:vmwarun - Arun
vmwarun - Arun earned 71 total points
ID: 39237339
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
 
LVL 5

Author Comment

by:jmarti80
ID: 39237993
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 119

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 143 total points
ID: 39238046
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
ID: 39238778
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
ID: 39254309
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

786 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