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