VMware Cloud Community
DyJohnnY
Enthusiast
Enthusiast
Jump to solution

How to: Create an alarm when a VM (or VMs) is migrated?

Hi,

Has anyone tried to create an alarm in vCenter where you would get notified when a specific VM is vmotioned?

I know there are some rules related to migration, but I could not get them to work.

I want to use these alarms as a way to keep track of a specific set of virtual machines (Nexus VSM modules). (i will configure the alarm to send me an email). Ideally i'm hoping to the email would contain the new location for the VM.

Thanks,

ionut

IonutN
Reply
0 Kudos
1 Solution

Accepted Solutions
MauroBonder
VMware Employee
VMware Employee
Jump to solution

Click in TOP vcenter > Alarms > Definitions > New Alarm

ALARM TYPE

Monitor: Virtual Machines

Monitor for specific event occuring on this object, for example, VM Power On

In Triggers

Event = DRS VM migrated

Status Normal

ACTIONS

Add Actions > Send a notification email

Test it. and post a result here

Good Luck

*Please, don't forget the awarding points for "helpful" and/or "correct" answers. *Por favor, não esqueça de atribuir os pontos se a resposta foi útil ou resolveu o problema.* Thank you/Obrigado

View solution in original post

Reply
0 Kudos
2 Replies
MauroBonder
VMware Employee
VMware Employee
Jump to solution

Click in TOP vcenter > Alarms > Definitions > New Alarm

ALARM TYPE

Monitor: Virtual Machines

Monitor for specific event occuring on this object, for example, VM Power On

In Triggers

Event = DRS VM migrated

Status Normal

ACTIONS

Add Actions > Send a notification email

Test it. and post a result here

Good Luck

*Please, don't forget the awarding points for "helpful" and/or "correct" answers. *Por favor, não esqueça de atribuir os pontos se a resposta foi útil ou resolveu o problema.* Thank you/Obrigado
Reply
0 Kudos
DyJohnnY
Enthusiast
Enthusiast
Jump to solution

Yep, it works, I tested it with VM Migrated condition, DRS may not always migrate the VM.

Also tested if this condition covers DRS case (put host in maintenance mode), and it...does not trigger.

So you have to put 2 triggers, one for manual vmotion, other one for DRS.

thanks for the help.

IonutN
Reply
0 Kudos