I would like to create an alert that triggers when a VM moves to a different host.I am running HCO 2023.3.x
Thanks,Richard
I'm assuming you want this as near to real-time as possible. If that's the case, you'll want to work with the Log alerting and not the other alerting engine. Below is from the Rule Builder for Logs as shown in the online demo.
The above can be linked to regular alert actions (send an email, write a log, etc.) just like you'd want.
Hi Kevin,
I've set this up as suggested.
Thanks!
I am using an email trigger when the alert triggers.Only thing I can't find is the variable to use for the name of the VM host. or the Log Entry MessageThere may be some trickery to finding this as the trigger comes from Log Analyzer.
No luck with these variables: VM: ${N=SwisEntity;M=DisplayName} ${N=SwisEntity;M=Caption}
From the online demo, it looks like the syntax is slightly different since it's coming from the log manager.
I don't have any ESX servers on which to play at the moment, so I'm taking educated guesses here. Regardless, here are a few things I'd try.
${N=OLM.AlertingMacros;M=OLM.AlertMessage.NodeID}
${N=OLM.AlertingMacros;M=OLM.AlertMessage.VbData1}
${N=OLM.AlertingMacros;M=OLM.AlertMessage.VbName1}
${N=SWQL;M=SELECT HostName FROM Orion.VIM WHERE HostID = ${N=OLM.AlertingMacros;M=OLM.AlertMessage.NodeID}}
You may also want to ask about Alert Variables in the Log Analyzer Forum within the [mention:eb1ed9b3ef304923be835419c3dad295:23b05a61c3e5445190d9bfa00453bce4] product group.