For years, VMware has stated that PowerCLI is the best way to automate vSphere. VMware administrators can also use PowerCLI to save time when managing vCenter alarms.
Good security requires proper and in-depth monitoring of IT infrastructure. In a complex system such as vCenter, it might seem daunting to monitor services, ESXi hosts and hardware, in addition to all the other parts of the ecosystem. Fortunately, vCenter creates many alarms by default to keep you aware of anything that might need your attention.
To read the entire article, please click on https://searchvmware.techtarget.com/tip/How-to-use-PowerCLI-for-alarm-automation-in-vCenter