Two Liner to Add VMware email alerts

Just a quick one today, use the following two lines of Powershell / PowerCLI to add full email alerting to VMware Vcenter

Get-AlarmDefinition | New-AlarmAction -Email -To SysAdmins@company.local

Now to include Amber warning we also need to run

Get-AlarmDefinition | Get-AlarmAction | New-AlarmActionTrigger -StartStatus ‘Green’ -EndStatus ‘Yellow’

This will enable email alerting for all alarms from Green to Amber and Amber to Red to the email specified

Published by

Tom

I'm a Senior System Admin for a large multinational company, currently focusing on Windows Server Administration & VMware Virtualisation.