I know this would seem like an easy thing and you might not give it a second thought. But if you’ve ever had an alarm that just wont clear and the virtual machine is no longer suffering from the event that caused it. Then you might benefit from the following suggestions that I came across. As always I recommend that you investigate each alarm and make sure that your are not ignoring any serious issues before clearing any alarms.
Sure alarms can alert you to some pretty serious events, but many are triggered by short term or non-reoccurring events. You might get an event for excessive CPU utilization due to something crazy happening on a Windows server. It passes or was dealt with by the SA and does not return. But that nagging alarm keeps staring you down each time you visit vCenter. Sure you have acknowledged the alarm and plenty of time has passed without a re-occurrence. But that little red diamond alarm still remains.
Option #1 is the simplest way and will not cause any interruptions to any tasks. This method will clear the alarms but it will clear them for all hosts, VMs, datastores or whatever you are clearing the alarm for. Also you must do this at the level that the alarm was created on, for example if the alarm was created at the Datacenter level then it will clear the alarm for every object in that Datacenter for the specific alarm that you are modifying. Once you located the correct alarm at the proper level you need to edit the alarm and uncheck the Enable this Alarm setting. Give it a few seconds for the command to complete then you can re-edit the alarm and enable it again. This will clear all occurrences of this alarm at this level and below.
Option #2 is a more manual way but will also only clear alarms on a specific host. With this method you need to be able to restart services on the host. I will usually just use Putty and SSH to the host and run from the command line. You the command that I have listed just below to restart the VPXA service and this should clear All alarms on this ESX host. Just be sure that you have looked at the cause of all alarms for this host before clearing them.
# service vmware-vpxa restart
If there are any other good options for clearing these alarms feel free to drop a note in the comments and I will update the post.
About Brian
Brian is a Technical Architect for a VMware partner and owner of this website. He is active in the VMware community and is helps lead the Chicago VMUG group. This blog Virtualize Tips was started to document and remember things that I come across while working with tech.
Mail | Web | Twitter | LinkedIn | More Posts (170)





Pingback: How to Clear Alarms in VCenter VShpere 4 « xombe